All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4ScenarioParameterDef::Option Struct Reference

#include <C4ScenarioParameters.h>

Collaboration diagram for C4ScenarioParameterDef::Option:

Public Member Functions

void CompileFunc (StdCompiler *pComp)

Public Attributes

int32_t Value
StdCopyStrBuf Name
StdCopyStrBuf Description

Detailed Description

Definition at line 51 of file C4ScenarioParameters.h.

Member Function Documentation

void C4ScenarioParameterDef::Option::CompileFunc ( StdCompiler pComp)

Definition at line 80 of file C4ScenarioParameters.cpp.

References Description, StdCompiler::excNotFound(), mkNamingAdapt(), mkParAdapt(), Name, StdCompiler::Name(), StdCompiler::NameEnd(), StdCompiler::RCT_All, Value, and StdCompiler::Value().

81 {
82  if (!pComp->Name("Option")) { pComp->NameEnd(); pComp->excNotFound("Option"); }
85  pComp->Value(mkNamingAdapt( Value, "Value", 0));
86  pComp->NameEnd();
87 }
virtual bool Name(const char *szName)
Definition: StdCompiler.h:87
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:93
void excNotFound(const char *szMessage,...)
Definition: StdCompiler.h:243
void Value(const T &rStruct)
Definition: StdCompiler.h:171
StdParameterAdapt< T, P > mkParAdapt(T &&rObj, P &&rPar)
Definition: StdAdaptors.h:456
virtual void NameEnd(bool fBreak=false)
Definition: StdCompiler.h:88

Here is the call graph for this function:

Member Data Documentation

StdCopyStrBuf C4ScenarioParameterDef::Option::Description
StdCopyStrBuf C4ScenarioParameterDef::Option::Name

Definition at line 54 of file C4ScenarioParameters.h.

Referenced by CompileFunc().

int32_t C4ScenarioParameterDef::Option::Value

Definition at line 53 of file C4ScenarioParameters.h.

Referenced by CompileFunc().

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