Go to the documentation of this file.
42 CppClass(
const std::vector<std::string>& namespaces,
const std::string&
name,
const std::string& templates =
"");
74 std::vector<std::string> namespaces;
75 std::string templates;
76 std::vector<CppMethodPtr> publicMethods;
77 std::vector<CppFieldPtr> privateFields;
78 std::vector<CppFieldPtr> protectedFields;
79 std::vector<CppFieldPtr> publicFields;
80 std::vector<std::string> inherit;
81 std::vector<CppEnumPtr> innerEnums;
82 std::vector<CppClassPtr> innerClasses;
83 std::vector<CppCtorPtr> ctors;
84 std::vector<std::string> includes;
void writeCpp(const CppWriterPtr &writer)
std::shared_ptr< CppCtor > CppCtorPtr
virtual void write(const MetaWriterPtr &writer) override
std::shared_ptr< CppClass > CppClassPtr
std::shared_ptr< CppBlock > CppBlockPtr
void addPublicMethod(const CppMethodPtr method)
void addInherit(const std::string &inherit)
std::shared_ptr< CppField > CppFieldPtr
std::shared_ptr< CppEnum > CppEnumPtr
CppClass(const std::vector< std::string > &namespaces, const std::string &name, const std::string &templates="")
bool hasInclude(const std::string include)
void addInnerClass(const CppClassPtr inner)
std::shared_ptr< CppMethod > CppMethodPtr
void setTemplates(const std::string &)
static void WriteCpp(const std::vector< CppClassPtr > &classes, const CppWriterPtr &writer)
std::shared_ptr< MetaWriter > MetaWriterPtr
void addPublicField(const CppFieldPtr &field)
void addPrivateField(const CppFieldPtr &field)
void addInclude(const std::string include)
std::shared_ptr< CppWriter > CppWriterPtr
void addInnerEnum(const CppEnumPtr inner)
void addCtor(const CppCtorPtr &)
This file offers overloads of toIce() and fromIce() functions for STL container types.
void addProtectedField(const CppFieldPtr &field)