Baseline commit for thrift, which is pillar v2
Reviewed By: aditya
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@664711 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/src/parse/t_enum.h b/compiler/src/parse/t_enum.h
new file mode 100644
index 0000000..f089150
--- /dev/null
+++ b/compiler/src/parse/t_enum.h
@@ -0,0 +1,22 @@
+#ifndef T_ENUM_H
+#define T_ENUM_H
+
+#include "t_constant.h"
+#include <vector>
+
+class t_enum : public t_type {
+ public:
+ t_enum() {}
+ ~t_enum() {}
+
+ void set_name(std::string name) { name_ = name; }
+ void append(t_constant* constant) { constants_.push_back(constant); }
+
+ const std::vector<t_constant*>& get_constants() { return constants_; }
+ bool is_enum() const { return true; }
+
+ private:
+ std::vector<t_constant*> constants_;
+};
+
+#endif