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