|
#include <ArmarXCore/libraries/cppgen/CppClass.h>
Public Member Functions | |
void | addCtor (const CppCtorPtr &) |
CppCtorPtr | addCtor (const std::string &arguments) |
CppCtorPtr | addCtor (const std::string &arguments, const CppBlockPtr &b) |
void | addInclude (const std::string include) |
void | addInherit (const std::string &inherit) |
void | addInnerClass (const CppClassPtr inner) |
CppClassPtr | addInnerClass (const std::string &name) |
void | addInnerEnum (const CppEnumPtr inner) |
CppEnumPtr | addInnerEnum (const std::string &name) |
void | addPrivateField (const CppFieldPtr &field) |
void | addProtectedField (const CppFieldPtr &field) |
void | addPublicField (const CppFieldPtr &field) |
void | addPublicMethod (const CppMethodPtr method) |
CppMethodPtr | addPublicMethod (const std::string &header, const std::string &doc="", const bool enforceBlockGeneration=false) |
CppClass (const std::vector< std::string > &namespaces, const std::string &name, const std::string &templates="") | |
bool | hasInclude (const std::string include) |
void | setTemplates (const std::string &) |
virtual void | write (const MetaWriterPtr &writer) override |
void | writeCpp (const CppWriterPtr &writer) |
Public Member Functions inherited from MetaClass | |
void | addClassDoc (const std::string &doc) |
std::string | getName () const |
MetaClass (const std::string &name) | |
Static Public Member Functions | |
static void | WriteCpp (const std::vector< CppClassPtr > &classes, const CppWriterPtr &writer) |
Static Public Member Functions inherited from MetaClass | |
static void | Write (const std::vector< MetaClassPtr > &classes, const MetaWriterPtr &writer) |
Additional Inherited Members | |
Protected Attributes inherited from MetaClass | |
std::string | docString |
std::string | name |
Definition at line 38 of file CppClass.h.
CppClass | ( | const std::vector< std::string > & | namespaces, |
const std::string & | name, | ||
const std::string & | templates = "" |
||
) |
void addCtor | ( | const CppCtorPtr & | ctor | ) |
Definition at line 208 of file CppClass.cpp.
CppCtorPtr addCtor | ( | const std::string & | arguments | ) |
CppCtorPtr addCtor | ( | const std::string & | arguments, |
const CppBlockPtr & | b | ||
) |
void addInclude | ( | const std::string | include | ) |
Definition at line 276 of file CppClass.cpp.
void addInherit | ( | const std::string & | inherit | ) |
Definition at line 271 of file CppClass.cpp.
void addInnerClass | ( | const CppClassPtr | inner | ) |
Definition at line 252 of file CppClass.cpp.
CppClassPtr addInnerClass | ( | const std::string & | name | ) |
void addInnerEnum | ( | const CppEnumPtr | inner | ) |
Definition at line 257 of file CppClass.cpp.
CppEnumPtr addInnerEnum | ( | const std::string & | name | ) |
Definition at line 264 of file CppClass.cpp.
void addPrivateField | ( | const CppFieldPtr & | field | ) |
Definition at line 227 of file CppClass.cpp.
void addProtectedField | ( | const CppFieldPtr & | field | ) |
Definition at line 233 of file CppClass.cpp.
void addPublicField | ( | const CppFieldPtr & | field | ) |
Definition at line 239 of file CppClass.cpp.
void addPublicMethod | ( | const CppMethodPtr | method | ) |
Definition at line 195 of file CppClass.cpp.
CppMethodPtr addPublicMethod | ( | const std::string & | header, |
const std::string & | doc = "" , |
||
const bool | enforceBlockGeneration = false |
||
) |
Definition at line 201 of file CppClass.cpp.
bool hasInclude | ( | const std::string | include | ) |
Definition at line 281 of file CppClass.cpp.
void setTemplates | ( | const std::string & | s | ) |
|
overridevirtual |
Implements MetaClass.
Definition at line 43 of file CppClass.cpp.
void writeCpp | ( | const CppWriterPtr & | writer | ) |
Definition at line 57 of file CppClass.cpp.
|
static |