16template<
typename StructType>
39 std::vector<const ISdlResource*>& out_resources)
const override;
51 template<
typename StructObjType>
54 template<
typename StructObjType>
56 StructObjType StructType::* structObjPtr,
67 void setFieldsToDefaults(StructType& structObj) const;
74#include "SDL/Introspect/TSdlOwnerStruct.ipp"
Data that SDL input process can rely on.
Definition SdlInputContext.h:19
Definition SdlOutputClauses.h:14
Data that SDL output process can rely on.
Definition SdlOutputContext.h:19
Definition SdlStructFieldStump.h:12
Definition SdlStruct.h:25
A set of fields, with basic functionalities.
Definition TSdlBruteForceFieldSet.h:32
Abstraction for a value that is owned by some owner type. Governs how a field should be initialized o...
Definition TSdlOwnedField.h:15
SDL binding type for a typical C++ struct.
Definition TSdlOwnerStruct.h:18
void saveObject(AnyConstPtr obj, SdlOutputClauses &clauses, const SdlOutputContext &ctx) const override
Definition TSdlOwnerStruct.ipp:71
StructType OwnerType
Definition TSdlOwnerStruct.h:20
TSdlOwnerStruct & addStruct(StructObjType StructType::*structObjPtr)
void referencedResources(AnyConstPtr obj, std::vector< const ISdlResource * > &out_resources) const override
Get all SDL resources referenced by obj.
Definition TSdlOwnerStruct.ipp:90
TSdlOwnerStruct & addStruct(StructObjType StructType::*structObjPtr, const SdlStructFieldStump &structFieldStump)
void initObject(AnyNonConstPtr obj, SdlInputClauses &clauses, const SdlInputContext &ctx) const override
Initialize a struct object from value clauses. How the object will be initialized depends on the stru...
Definition TSdlOwnerStruct.ipp:27
std::size_t numFields() const override
Definition TSdlOwnerStruct.ipp:158
TSdlOwnerStruct & description(std::string descriptionStr)
Definition TSdlOwnerStruct.ipp:177
void initDefaultObject(AnyNonConstPtr obj) const override
Initialize a struct object to default values. Default values are defined by the struct's SDL definiti...
Definition TSdlOwnerStruct.ipp:57
auto getFields() const -> const TSdlBruteForceFieldSet< TSdlOwnedField< StructType > > &
Definition TSdlOwnerStruct.ipp:170
void initDefaultStruct(StructType &structObj) const
Initialize the struct object to default values.
Definition TSdlOwnerStruct.ipp:152
TSdlOwnerStruct(std::string name)
Definition TSdlOwnerStruct.ipp:19
const SdlField * getField(std::size_t index) const override
Definition TSdlOwnerStruct.ipp:164
TSdlOwnerStruct & addField(T sdlField)
The root for all renderer implementations.
Definition EEngineProject.h:6