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_field.h b/compiler/src/parse/t_field.h
new file mode 100644
index 0000000..304bb16
--- /dev/null
+++ b/compiler/src/parse/t_field.h
@@ -0,0 +1,29 @@
+#ifndef T_FIELD_H
+#define T_FIELD_H
+
+#include <string>
+
+/**
+ * Class to represent a field in a thrift structure or in a set of arguments
+ * to a thrift function.
+ *
+ * @author Mark Slee <mcslee@facebook.com>
+ */
+class t_field {
+ public:
+ t_field(t_type* type, std::string name, uint32_t key) :
+ type_(type), name_(name), key_(key) {}
+
+ ~t_field() {}
+
+ t_type* get_type() const { return type_; }
+ const std::string& get_name() const { return name_; }
+ uint32_t get_key() const { return key_; }
+
+ private:
+ t_type* type_;
+ std::string name_;
+ uint32_t key_;
+};
+
+#endif