Mark Slee | 3198572 | 2006-05-24 21:45:31 +0000 | [diff] [blame] | 1 | #ifndef T_SERVICE_H |
| 2 | #define T_SERVICE_H |
| 3 | |
| 4 | #include "t_function.h" |
| 5 | #include <vector> |
| 6 | |
| 7 | class 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 |