23 #ifndef __INTERFACES_GENERATOR_ENUM_CONSTANT_H_ 24 #define __INTERFACES_GENERATOR_ENUM_CONSTANT_H_ 43 const std::string &
get_name()
const;
45 const std::vector<EnumItem> &
get_items()
const;
46 void add_item(std::string name, std::string comment);
47 void add_item(std::string name, std::string comment,
int value);
52 std::string __comment;
53 std::vector<EnumItem> __items;
std::string name
Name of item.
const std::string & get_comment() const
Get comment of enum constant.
Interface generator internal representation of a enum constant as parsed from the XML template file...
std::string comment
Comment for item.
bool has_custom_value
True if custom value set.
const std::vector< EnumItem > & get_items() const
Get enumeration items.
InterfaceEnumConstant(const std::string &name, const std::string &comment)
Constructor.
void add_item(std::string name, std::string comment)
Add an item without custom value.
const std::string & get_name() const
Get name of enum constant.
int custom_value
Custom value.