Operating System Simulator Plugin  3.5.1
Unreal Engine plugin that simulates an Operating System Environment
Loading...
Searching...
No Matches
UOperatingSystemProgramsCollection Class Reference

#include "OperatingSystemProgramsCollection.h"

Inheritance diagram for UOperatingSystemProgramsCollection:
[legend]
Collaboration diagram for UOperatingSystemProgramsCollection:
[legend]

Public Member Functions

 UOperatingSystemProgramsCollection ()
 
virtual void Validate (FGenericError &OutError)
 Validates the UOperatingSystemProgramsCollection.
 
virtual const TSet< TSoftClassPtr< UOperatingSystemBaseProgram > > & GetProgramClasses () const
 Retrieves the set of operating system program classes stored in the Programs property of the UOperatingSystemProgramsCollection. The return value is of type const TSet<TSoftClassPtr<UOperatingSystemBaseProgram>>&, which allows read-only access to the program classes.
 

Protected Attributes

TSet< TSoftClassPtr< UOperatingSystemBaseProgram > > Programs
 

Detailed Description

The UOperatingSystemProgramsCollection class represents a collection of operating system programs.

This class is a subclass of UDataAsset and provides functionality to store, add, remove, and access operating system programs in your application. It contains a set of soft pointers to classes derived from UOperatingSystemBaseProgram, allowing you to easily manage and interact with the programs.

See also
UDataAsset
UOperatingSystemBaseProgram

Constructor & Destructor Documentation

◆ UOperatingSystemProgramsCollection()

UOperatingSystemProgramsCollection::UOperatingSystemProgramsCollection ( )

Member Function Documentation

◆ GetProgramClasses()

const TSet< TSoftClassPtr< UOperatingSystemBaseProgram > > & UOperatingSystemProgramsCollection::GetProgramClasses ( ) const
virtual

Retrieves the set of operating system program classes stored in the Programs property of the UOperatingSystemProgramsCollection. The return value is of type const TSet<TSoftClassPtr<UOperatingSystemBaseProgram>>&, which allows read-only access to the program classes.

Returns
A reference to the set of operating system program classes.

Reimplemented in UOperatingSystemStoreProgramsCollection.

◆ Validate()

void UOperatingSystemProgramsCollection::Validate ( FGenericError & OutError)
virtual

Validates the UOperatingSystemProgramsCollection.

This method checks if the Programs property is empty. If it is empty, an error with code "ERR_PRG_COLLECTION" and message "Programs are missing." is assigned to OutError.

It then checks if any entry in the Programs property is null. If one or more entries are null, an error with code "ERR_PRG_COLLECTION" and message "One or more entries in Programs is null." is assigned to OutError.

If no validation errors are encountered, the OutError object will be in an invalid state.

Parameters
OutErrorThe error object to store any validation errors encountered during the validation process.

Reimplemented in UOperatingSystemStoreProgramsCollection.

Member Data Documentation

◆ Programs

TSet<TSoftClassPtr<UOperatingSystemBaseProgram> > UOperatingSystemProgramsCollection::Programs
protected

The Programs property stores a set of operating system programs.

This property is of type TSet<TSoftClassPtr<UOperatingSystemBaseProgram>>, which is a collection of soft pointers to classes derived from UOperatingSystemBaseProgram. These soft pointers can be used to access the programs stored in the set.

Use this property to add, remove, or access operating system programs within your application.

See also
UOperatingSystemBaseProgram

The documentation for this class was generated from the following files: