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_service.h b/compiler/src/parse/t_service.h
new file mode 100644
index 0000000..92e59b2
--- /dev/null
+++ b/compiler/src/parse/t_service.h
@@ -0,0 +1,23 @@
+#ifndef T_SERVICE_H
+#define T_SERVICE_H
+
+#include "t_function.h"
+#include <vector>
+
+class t_service {
+ public:
+ t_service() {}
+ ~t_service() {}
+
+ void set_name(std::string name) { name_ = name; }
+ void add_function(t_function* func) { functions_.push_back(func); }
+
+ const std::string& get_name() const { return name_; }
+ const std::vector<t_function*>& get_functions() const { return functions_; }
+
+ private:
+ std::string name_;
+ std::vector<t_function*> functions_;
+};
+
+#endif