blob: 92e59b2f7b859f30315463dcaa6f0ddb9def6d95 [file] [log] [blame]
Mark Slee31985722006-05-24 21:45:31 +00001#ifndef T_SERVICE_H
2#define T_SERVICE_H
3
4#include "t_function.h"
5#include <vector>
6
7class t_service {
8 public:
9 t_service() {}
10 ~t_service() {}
11
12 void set_name(std::string name) { name_ = name; }
13 void add_function(t_function* func) { functions_.push_back(func); }
14
15 const std::string& get_name() const { return name_; }
16 const std::vector<t_function*>& get_functions() const { return functions_; }
17
18 private:
19 std::string name_;
20 std::vector<t_function*> functions_;
21};
22
23#endif