| // Copyright (c) 2006- Facebook |
| // Distributed under the Thrift Software License |
| // See accompanying file LICENSE or visit the Thrift site at: |
| // http://developers.facebook.com/thrift/ |
| * A service consists of a set of functions. |
| * @author Mark Slee <mcslee@facebook.com> |
| class t_service : public t_type { |
| t_service(t_program* program) : |
| bool is_service() const { |
| void set_extends(t_service* extends) { |
| void add_function(t_function* func) { |
| functions_.push_back(func); |
| const std::vector<t_function*>& get_functions() const { |
| t_service* get_extends() { |
| virtual std::string get_fingerprint_material() const { |
| // Services should never be used in fingerprints. |
| throw "BUG: Can't get fingerprint material for service."; |
| std::vector<t_function*> functions_; |