CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ServiceWeb.h
Go to the documentation of this file.
1 #ifndef EVF_SERVICEWEB_H
2 #define EVF_SERVICEWEB_H
3 
4 #include "toolbox/lang/Class.h"
5 #include "xdata/InfoSpace.h"
6 #include <string>
7 
8 namespace xgi{
9  class Input;
10  class Output;
11 }
12 
13 
14 namespace evf
15 {
16  class ServiceWeb : public toolbox::lang::Class
17  {
18  public:
19  ServiceWeb(const std::string &);
20  virtual ~ServiceWeb(){}
21  virtual void defaultWebPage(xgi::Input *in, xgi::Output *out);
22  virtual void publish(xdata::InfoSpace *) = 0;
23  virtual void publishToXmas(xdata::InfoSpace *){};
24  std::string const &name()const { return serviceName_;}
25  protected:
26  std::string serviceName_;
27  private:
28  friend class ServiceWebRegistry;
29  };
30 }
31 #endif
#define Input(cl)
Definition: vmac.h:189
virtual void publishToXmas(xdata::InfoSpace *)
Definition: ServiceWeb.h:23
std::string serviceName_
Definition: ServiceWeb.h:26
std::string const & name() const
Definition: ServiceWeb.h:24
tuple out
Definition: dbtoconf.py:99
virtual void publish(xdata::InfoSpace *)=0
virtual void defaultWebPage(xgi::Input *in, xgi::Output *out)
Definition: ServiceWeb.cc:20
virtual ~ServiceWeb()
Definition: ServiceWeb.h:20
ServiceWeb(const std::string &)
Definition: ServiceWeb.cc:14
#define Output(cl)
Definition: vmac.h:193