UOperatingSystemProgramsCollection
#include <OperatingSystemSimulator/Public/Misc/OperatingSystemProgramsCollection.h>class UOperatingSystemProgramsCollectionDefined in OperatingSystemProgramsCollection.h:24
Inherits:
UDataAssetSubclassed by:UOperatingSystemStoreProgramsCollection
Inheritance diagram
Section titled “Inheritance diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemProgramsCollection["UOperatingSystemProgramsCollection"]
class UDataAsset["UDataAsset"]
UDataAsset <|-- UOperatingSystemProgramsCollection
class UOperatingSystemStoreProgramsCollection["UOperatingSystemStoreProgramsCollection"]
UOperatingSystemProgramsCollection <|-- UOperatingSystemStoreProgramsCollection
Collaboration diagram
Section titled “Collaboration diagram”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemProgramsCollection["UOperatingSystemProgramsCollection"]
class UOperatingSystemBaseProgram["UOperatingSystemBaseProgram"]
UOperatingSystemProgramsCollection *-- UOperatingSystemBaseProgram
Class detail
Section titled “Class detail”---
config:
class:
hideEmptyMembersBox: true
---
classDiagram
class UOperatingSystemProgramsCollection {
+UOperatingSystemProgramsCollection()
+Validate(FGenericError &OutError)
+GetProgramClasses() const const TSet< TSoftClassPtr< UOperatingSys
+Programs : TSet< TSoftClassPtr< UOperatingSystemBas
}
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
See also: UOperatingSystemBaseProgram
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
UOperatingSystemProgramsCollection | ||
void | Validate virtual | Validates the UOperatingSystemProgramsCollection. |
const TSet< TSoftClassPtr< UOperatingSystemBaseProgram > > & | GetProgramClasses virtual 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. |
UOperatingSystemProgramsCollection
Section titled “UOperatingSystemProgramsCollection”UOperatingSystemProgramsCollection()Defined in OperatingSystemProgramsCollection.h:46
Section titled “Defined in OperatingSystemProgramsCollection.h:46”Validate
Section titled “Validate”virtual
virtual void Validate(FGenericError & OutError)Defined in OperatingSystemProgramsCollection.h:61 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
Section titled “Parameters”OutErrorThe error object to store any validation errors encountered during the validation process.
References
Section titled “References”MAKE_ERRORPrograms
Reimplemented by
Section titled “Reimplemented by”GetProgramClasses
Section titled “GetProgramClasses”virtual const
virtual const TSet< TSoftClassPtr< UOperatingSystemBaseProgram > > & GetProgramClasses() constDefined in OperatingSystemProgramsCollection.h:69 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
Section titled “Returns”A reference to the set of operating system program classes.
References
Section titled “References”Reimplemented by
Section titled “Reimplemented by”Protected Attributes
Section titled “Protected Attributes”| Return | Name | Description |
|---|---|---|
TSet< TSoftClassPtr< UOperatingSystemBaseProgram > > | Programs | The Programs property stores a set of operating system programs. |
Programs
Section titled “Programs”TSet< TSoftClassPtr< UOperatingSystemBaseProgram > > ProgramsDefined in OperatingSystemProgramsCollection.h:42 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