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_constant.h b/compiler/src/parse/t_constant.h
new file mode 100644
index 0000000..1f3c868
--- /dev/null
+++ b/compiler/src/parse/t_constant.h
@@ -0,0 +1,26 @@
+#ifndef T_CONSTANT_H
+#define T_CONSTANT_H
+
+#include <string>
+
+class t_constant {
+ public:
+ t_constant(std::string name) :
+ name_(name), has_value_(false), value_(0) {}
+
+ t_constant(std::string name, int value) :
+ name_(name), has_value_(true), value_(value) {}
+
+ ~t_constant() {}
+
+ const std::string& get_name() { return name_; }
+ bool has_value() { return has_value_; }
+ int get_value() { return value_; }
+
+ private:
+ std::string name_;
+ bool has_value_;
+ int value_;
+};
+
+#endif