| Mark Slee | 3198572 | 2006-05-24 21:45:31 +0000 | [diff] [blame] | 1 | #ifndef T_ENUM_H | 
|  | 2 | #define T_ENUM_H | 
|  | 3 |  | 
|  | 4 | #include "t_constant.h" | 
|  | 5 | #include <vector> | 
|  | 6 |  | 
|  | 7 | class t_enum : public t_type { | 
|  | 8 | public: | 
|  | 9 | t_enum() {} | 
|  | 10 | ~t_enum() {} | 
|  | 11 |  | 
|  | 12 | void set_name(std::string name) { name_ = name; } | 
|  | 13 | void append(t_constant* constant) { constants_.push_back(constant); } | 
|  | 14 |  | 
|  | 15 | const std::vector<t_constant*>& get_constants() { return constants_; } | 
|  | 16 | bool is_enum() const { return true; } | 
|  | 17 |  | 
|  | 18 | private: | 
|  | 19 | std::vector<t_constant*> constants_; | 
|  | 20 | }; | 
|  | 21 |  | 
|  | 22 | #endif |