OpenClonk
StdStdStringAdapt Struct Reference

#include <StdAdaptors.h>

Public Member Functions

 StdStdStringAdapt (std::string &string, StdCompiler::RawCompileType eRawType=StdCompiler::RCT_Escaped)
 
void CompileFunc (StdCompiler *pComp) const
 
bool operator== (const char *szDefault) const
 
StdStdStringAdaptoperator= (const char *szDefault)
 

Public Attributes

std::string & string
 
StdCompiler::RawCompileType eRawType
 

Detailed Description

Definition at line 195 of file StdAdaptors.h.

Constructor & Destructor Documentation

◆ StdStdStringAdapt()

StdStdStringAdapt::StdStdStringAdapt ( std::string &  string,
StdCompiler::RawCompileType  eRawType = StdCompiler::RCT_Escaped 
)
inline

Definition at line 198 of file StdAdaptors.h.

199  : string(string), eRawType(eRawType) { }
std::string & string
Definition: StdAdaptors.h:197
StdCompiler::RawCompileType eRawType
Definition: StdAdaptors.h:197

Member Function Documentation

◆ CompileFunc()

void StdStdStringAdapt::CompileFunc ( StdCompiler pComp) const
inline

Definition at line 200 of file StdAdaptors.h.

201  {
202  pComp->String(string, eRawType);
203  }
virtual void String(char *szString, size_t iMaxLength, RawCompileType eType=RCT_Escaped)=0

References eRawType, and StdCompiler::String().

Here is the call graph for this function:

◆ operator=()

StdStdStringAdapt& StdStdStringAdapt::operator= ( const char *  szDefault)
inline

Definition at line 205 of file StdAdaptors.h.

205 { string = szDefault; return *this; }

◆ operator==()

bool StdStdStringAdapt::operator== ( const char *  szDefault) const
inline

Definition at line 204 of file StdAdaptors.h.

204 { return string == szDefault; }

Member Data Documentation

◆ eRawType

StdCompiler::RawCompileType StdStdStringAdapt::eRawType

Definition at line 197 of file StdAdaptors.h.

Referenced by CompileFunc().

◆ string

std::string& StdStdStringAdapt::string

Definition at line 197 of file StdAdaptors.h.


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