Logo ROOT   6.12/07
Reference Guide
THttpEngine.h
Go to the documentation of this file.
1 // $Id$
2 // Author: Sergey Linev 21/12/2013
3 
4 /*************************************************************************
5  * Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_THttpEngine
13 #define ROOT_THttpEngine
14 
15 #include "TNamed.h"
16 
17 class THttpServer;
18 
19 class THttpEngine : public TNamed {
20 protected:
21  friend class THttpServer;
22 
23  THttpServer *fServer; ///<! object server
24 
25  THttpEngine(const char *name, const char *title);
26 
27  void SetServer(THttpServer *serv) { fServer = serv; }
28 
29  /** Method regularly called in main ROOT context */
30  virtual void Process() {}
31 
32 public:
33  virtual ~THttpEngine();
34 
35  /** Method to create all components of engine. Called once from by the server */
36  virtual Bool_t Create(const char *) { return kFALSE; }
37 
38  /** Returns pointer to THttpServer associated with engine */
39  THttpServer *GetServer() const { return fServer; }
40 
41  ClassDef(THttpEngine, 0) // abstract class which should provide http-based protocol for server
42 };
43 
44 
45 #endif
virtual void Process()
Method regularly called in main ROOT context.
Definition: THttpEngine.h:30
bool Bool_t
Definition: RtypesCore.h:59
void SetServer(THttpServer *serv)
Definition: THttpEngine.h:27
virtual ~THttpEngine()
destructor
Definition: THttpEngine.cxx:37
THttpServer * GetServer() const
Returns pointer to THttpServer associated with engine.
Definition: THttpEngine.h:39
#define ClassDef(name, id)
Definition: Rtypes.h:320
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
THttpEngine(const char *name, const char *title)
normal constructor
Definition: THttpEngine.cxx:29
THttpServer * fServer
! object server
Definition: THttpEngine.h:23
virtual Bool_t Create(const char *)
Method to create all components of engine.
Definition: THttpEngine.h:36
const Bool_t kFALSE
Definition: RtypesCore.h:88
char name[80]
Definition: TGX11.cxx:109