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

#include <C4ScenarioParameters.h>

Collaboration diagram for C4ScenarioParameterDef::Option:
[legend]

Public Member Functions

void CompileFunc (StdCompiler *pComp)
 

Public Attributes

int32_t Value
 
StdCopyStrBuf Name
 
StdCopyStrBuf Description
 

Detailed Description

Definition at line 34 of file C4ScenarioParameters.h.

Member Function Documentation

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

Definition at line 23 of file C4ScenarioParameters.cpp.

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

24 {
25  if (!pComp->Name("Option")) { pComp->NameEnd(); pComp->excNotFound("Option"); }
28  pComp->Value(mkNamingAdapt( Value, "Value", 0));
29  pComp->NameEnd();
30 }
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:459
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 37 of file C4ScenarioParameters.h.

Referenced by CompileFunc().

int32_t C4ScenarioParameterDef::Option::Value

Definition at line 36 of file C4ScenarioParameters.h.

Referenced by CompileFunc().


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