OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4Folder Class Reference

#include <C4Folder.h>

Collaboration diagram for C4Folder:
[legend]

Public Member Functions

 C4Folder ()
 
void Default ()
 
bool Load (C4Group &hGroup)
 
void CompileFunc (StdCompiler *pComp)
 

Public Attributes

C4FolderHead Head
 

Protected Member Functions

bool Compile (const char *szSource)
 

Detailed Description

Definition at line 31 of file C4Folder.h.

Constructor & Destructor Documentation

C4Folder::C4Folder ( )

Definition at line 40 of file C4Folder.cpp.

References Default().

41 {
42  Default();
43 }
void Default()
Definition: C4Folder.cpp:45

Here is the call graph for this function:

Member Function Documentation

bool C4Folder::Compile ( const char *  szSource)
protected

Definition at line 67 of file C4Folder.cpp.

References C4CFN_FolderCore, and Default().

Referenced by Load().

68 {
69  Default();
70  return CompileFromBuf_LogWarn<StdCompilerINIRead>(*this, StdStrBuf(szSource), C4CFN_FolderCore);
71 }
void Default()
Definition: C4Folder.cpp:45
#define C4CFN_FolderCore
Definition: C4Components.h:44

Here is the call graph for this function:

Here is the caller graph for this function:

void C4Folder::CompileFunc ( StdCompiler pComp)

Definition at line 62 of file C4Folder.cpp.

References Head, mkNamingAdapt(), and StdCompiler::Value().

63 {
64  pComp->Value(mkNamingAdapt(Head, "Head"));
65 }
C4FolderHead Head
Definition: C4Folder.h:36
StdNamingAdapt< T > mkNamingAdapt(T &&rValue, const char *szName)
Definition: StdAdaptors.h:93
void Value(const T &rStruct)
Definition: StdCompiler.h:171

Here is the call graph for this function:

void C4Folder::Default ( )

Definition at line 45 of file C4Folder.cpp.

References C4FolderHead::Default(), and Head.

Referenced by C4Folder(), and Compile().

46 {
47  Head.Default();
48 }
C4FolderHead Head
Definition: C4Folder.h:36
void Default()
Definition: C4Folder.cpp:28

Here is the call graph for this function:

Here is the caller graph for this function:

bool C4Folder::Load ( C4Group hGroup)

Definition at line 50 of file C4Folder.cpp.

References C4CFN_FolderCore, Compile(), and C4Group::LoadEntry().

51 {
52  char *pSource;
53  // Load
54  if (!hGroup.LoadEntry(C4CFN_FolderCore, &pSource, nullptr, 1)) return false;
55  // Compile
56  if (!Compile(pSource)) { delete [] pSource; return false; }
57  delete [] pSource;
58  // Success
59  return true;
60 }
bool LoadEntry(const char *szEntryName, char **lpbpBuf, size_t *ipSize=nullptr, int iAppendZeros=0)
Definition: C4Group.cpp:1893
#define C4CFN_FolderCore
Definition: C4Components.h:44
bool Compile(const char *szSource)
Definition: C4Folder.cpp:67

Here is the call graph for this function:

Member Data Documentation

C4FolderHead C4Folder::Head

Definition at line 36 of file C4Folder.h.

Referenced by CompileFunc(), and Default().


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