proxyClass.hpp 590 B

1234567891011121314151617181920212223242526272829303132
  1. #include <vector>
  2. #include <string>
  3. #include "xmlrpcMethod.hpp"
  4. class proxyClass {
  5. // An object of this class contains information about a proxy
  6. // class, and knows how to generate code.
  7. public:
  8. proxyClass(std::string const& className);
  9. proxyClass(proxyClass const&);
  10. std::string
  11. className() const;
  12. void
  13. addFunction(xmlrpcMethod const& function);
  14. void
  15. printDeclaration(std::ostream& out) const;
  16. void
  17. printDefinition(std::ostream& out) const;
  18. private:
  19. std::string const _className;
  20. std::vector<xmlrpcMethod> functions;
  21. };