23 #ifndef __INTERFACES_GENERATOR_ENUM_CONSTANT_H_ 24 #define __INTERFACES_GENERATOR_ENUM_CONSTANT_H_ 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.
std::string get_name()
Get name of enum constant.
std::string get_comment()
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.
std::vector< EnumItem > get_items()
Get enumeration items.
bool has_custom_value
True if custom value set.
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.
int custom_value
Custom value.