blob: f089150931cc414272843978776c845c661ca5f1 [file] [log] [blame]
Mark Slee31985722006-05-24 21:45:31 +00001#ifndef T_ENUM_H
2#define T_ENUM_H
3
4#include "t_constant.h"
5#include <vector>
6
7class 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