13template<
typename Owner>
19 std::string valueName);
23 std::string valueName,
24 std::string typeSignature);
43 std::vector<const ISdlResource*>& out_resources)
const = 0;
106 template<
typename OuterType,
typename InnerType>
Data that SDL input process can rely on.
Definition SdlInputContext.h:19
Definition SdlNativeData.h:88
Carries SDL representation of various data during the output process. Helps to write output data such...
Definition SdlOutputClause.h:14
Data that SDL output process can rely on.
Definition SdlOutputContext.h:19
References a SDL object. This is a lightweight utility for referencing SDL objects....
Definition TSdlAnyInstance.h:20
A field that lives within an inner object.
Definition TSdlNestedField.h:25
Abstraction for a value that is owned by some owner type. Governs how a field should be initialized o...
Definition TSdlOwnedField.h:15
void toSdl(const Owner &owner, SdlOutputClause &out_clause, const SdlOutputContext &ctx) const
Definition TSdlOwnedField.ipp:101
virtual std::string valueToString(const Owner &owner) const =0
Convert the value of the field to human-readable string.
virtual void loadFromSdl(Owner &owner, const SdlInputClause &clause, const SdlInputContext &ctx) const =0
Load SDL value to actual value and store it in the owner's field. Implementations are highly encourag...
virtual void saveToSdl(const Owner &owner, SdlOutputClause &out_clause, const SdlOutputContext &ctx) const =0
Convert actual value back to SDL value. Saving a loaded value as SDL value should rarely fail–as load...
virtual void ownedResources(const Owner &owner, std::vector< const ISdlResource * > &out_resources) const =0
Get all SDL resources associated by owner.
virtual SdlNativeData ownedNativeData(Owner &owner) const =0
Direct access to the field memory of an owner. Short-lived owner objects such as function parameter s...
void fromSdl(Owner &owner, const SdlInputClause &clause, const SdlInputContext &ctx) const
Acquire value and store in the owner's field. The loading process will follow a series of preset poli...
Definition TSdlOwnedField.ipp:64
TSdlOwnedField(std::string typeName, std::string valueName)
Definition TSdlOwnedField.ipp:21
SdlNativeData nativeData(SdlNonConstInstance instance) const override
Direct access to the field memory of a SDL instance. Note that this field may not necessarily be boun...
Definition TSdlOwnedField.ipp:43
virtual void ownedValueToDefault(Owner &owner) const =0
Set the value of the field to a default one. Since the field class is templatized by Owner type,...
The root for all renderer implementations.
Definition EEngineProject.h:6