Logo ROOT   6.07/09
Reference Guide
TCivetweb.h
Go to the documentation of this file.
1 // $Id$
2 // Author: Sergey Linev 21/12/2013
3 
4 #ifndef ROOT_TCivetweb
5 #define ROOT_TCivetweb
6 
7 #ifndef ROOT_THttpEngine
8 #include "THttpEngine.h"
9 #endif
10 
11 class TCivetweb : public THttpEngine {
12 protected:
13  void *fCtx; //! civetweb context
14  void *fCallbacks; //! call-back table for civetweb webserver
15  TString fTopName; //! name of top item
16  Bool_t fDebug; //! debug mode
17 
18 public:
19  TCivetweb();
20  virtual ~TCivetweb();
21 
22  virtual Bool_t Create(const char *args);
23 
24  const char *GetTopName() const
25  {
26  return fTopName.Data();
27  }
28 
30  {
31  // indicates that
32 
33  return fDebug;
34  }
35 
36  Int_t ProcessLog(const char* message);
37 
38  ClassDef(TCivetweb, 0) // http server implementation, based on civetweb embedded server
39 };
40 
41 
42 #endif
TString fTopName
call-back table for civetweb webserver
Definition: TCivetweb.h:15
Basic string class.
Definition: TString.h:137
virtual Bool_t Create(const char *args)
Creates embedded civetweb server As main argument, http port should be specified like "8090"...
Definition: TCivetweb.cxx:392
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
Bool_t fDebug
name of top item
Definition: TCivetweb.h:16
void * fCallbacks
civetweb context
Definition: TCivetweb.h:14
const char * Data() const
Definition: TString.h:349
#define ClassDef(name, id)
Definition: Rtypes.h:254
virtual ~TCivetweb()
destructor
Definition: TCivetweb.cxx:362
const char * GetTopName() const
Definition: TCivetweb.h:24
Int_t ProcessLog(const char *message)
process civetweb log message, can be used to detect critical errors
Definition: TCivetweb.cxx:373
Bool_t IsDebugMode() const
Definition: TCivetweb.h:29
TCivetweb()
debug mode
Definition: TCivetweb.cxx:350
void * fCtx
Definition: TCivetweb.h:13