ROOT  6.06/09
Reference Guide
THttpEngine.h
Go to the documentation of this file.
1 // $Id$
2 // Author: Sergey Linev 21/12/2013
3 
4 #ifndef ROOT_THttpEngine
5 #define ROOT_THttpEngine
6 
7 #ifndef ROOT_TNamed
8 #include "TNamed.h"
9 #endif
10 
11 class THttpServer;
12 
13 class THttpEngine : public TNamed {
14 protected:
15  friend class THttpServer;
16 
17  THttpServer *fServer; //! object server
18 
19  THttpEngine(const char *name, const char *title);
20 
21  void SetServer(THttpServer *serv)
22  {
23  fServer = serv;
24  }
25 
26  /** Method regularly called in main ROOT context */
27  virtual void Process() {}
28 
29 public:
30  virtual ~THttpEngine();
31 
32  /** Method to create all components of engine. Called once from by the server */
33  virtual Bool_t Create(const char *)
34  {
35  return kFALSE;
36  }
37 
39  {
40  return fServer;
41  }
42 
43  ClassDef(THttpEngine, 0) // abstract class which should provide http-based protocol for server
44 };
45 
46 #endif
THttpServer * GetServer() const
Definition: THttpEngine.h:38
virtual void Process()
Method regularly called in main ROOT context.
Definition: THttpEngine.h:27
bool Bool_t
Definition: RtypesCore.h:59
const Bool_t kFALSE
Definition: Rtypes.h:92
void SetServer(THttpServer *serv)
Definition: THttpEngine.h:21
virtual ~THttpEngine()
destructor
Definition: THttpEngine.cxx:28
#define ClassDef(name, id)
Definition: Rtypes.h:254
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:33
THttpEngine(const char *name, const char *title)
object server
THttpServer * fServer
Definition: THttpEngine.h:17
virtual Bool_t Create(const char *)
Method to create all components of engine.
Definition: THttpEngine.h:33
#define name(a, b)
Definition: linkTestLib0.cpp:5