CppEnum Class Reference

#include <ArmarXCore/libraries/cppgen/CppEnum.h>

+ Inheritance diagram for CppEnum:

Public Member Functions

void addField (const CppEnumFieldPtr &)
 
 CppEnum (const std::vector< std::string > namespaces, const std::string &name)
 
 CppEnum (const std::vector< std::string > namespaces, const std::string &name, const std::vector< CppEnumFieldPtr > &fields)
 
std::vector< std::string > getNamespaces () const
 
void write (const MetaWriterPtr &writer) override
 
void writeCpp (const CppWriterPtr &writer)
 
- Public Member Functions inherited from MetaEnum
void addEnumDoc (const std::string &doc)
 
std::string getName () const
 
 MetaEnum (const std::string &name)
 

Additional Inherited Members

- Static Public Member Functions inherited from MetaEnum
static void Write (const std::vector< MetaEnumPtr > &classes, const MetaWriterPtr &writer)
 
- Protected Attributes inherited from MetaEnum
std::string docString
 
std::string name
 

Detailed Description

Definition at line 57 of file CppEnum.h.

Constructor & Destructor Documentation

◆ CppEnum() [1/2]

CppEnum ( const std::vector< std::string >  namespaces,
const std::string &  name 
)

Definition at line 53 of file CppEnum.cpp.

◆ CppEnum() [2/2]

CppEnum ( const std::vector< std::string >  namespaces,
const std::string &  name,
const std::vector< CppEnumFieldPtr > &  fields 
)

Definition at line 59 of file CppEnum.cpp.

Member Function Documentation

◆ addField()

void addField ( const CppEnumFieldPtr f)

Definition at line 72 of file CppEnum.cpp.

◆ getNamespaces()

std::vector< std::string > getNamespaces ( ) const

Definition at line 77 of file CppEnum.cpp.

◆ write()

void write ( const MetaWriterPtr writer)
overridevirtual

Implements MetaEnum.

Definition at line 66 of file CppEnum.cpp.

+ Here is the call graph for this function:

◆ writeCpp()

void writeCpp ( const CppWriterPtr writer)

Definition at line 82 of file CppEnum.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

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