Logo ROOT   6.12/07
Reference Guide
TCivetweb.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_TCivetweb
13 #define ROOT_TCivetweb
14 
15 #include "THttpEngine.h"
16 #include "TString.h"
17 
18 class TCivetweb : public THttpEngine {
19 protected:
20  void *fCtx; ///<! civetweb context
21  void *fCallbacks; ///<! call-back table for civetweb webserver
22  TString fTopName; ///<! name of top item
23  Bool_t fDebug; ///<! debug mode
24 
25 public:
26  TCivetweb();
27  virtual ~TCivetweb();
28 
29  virtual Bool_t Create(const char *args);
30 
31  const char *GetTopName() const { return fTopName.Data(); }
32 
33  Bool_t IsDebugMode() const { return fDebug; }
34 
35  Int_t ProcessLog(const char *message);
36 
37  ClassDef(TCivetweb, 0) // http server implementation, based on civetweb embedded server
38 };
39 
40 #endif
TString fTopName
! name of top item
Definition: TCivetweb.h:22
Basic string class.
Definition: TString.h:125
virtual Bool_t Create(const char *args)
Creates embedded civetweb server As main argument, http port should be specified like "8090"...
Definition: TCivetweb.cxx:397
int Int_t
Definition: RtypesCore.h:41
bool Bool_t
Definition: RtypesCore.h:59
Bool_t fDebug
! debug mode
Definition: TCivetweb.h:23
const char * GetTopName() const
Definition: TCivetweb.h:31
void * fCallbacks
! call-back table for civetweb webserver
Definition: TCivetweb.h:21
#define ClassDef(name, id)
Definition: Rtypes.h:320
virtual ~TCivetweb()
destructor
Definition: TCivetweb.cxx:362
Int_t ProcessLog(const char *message)
process civetweb log message, can be used to detect critical errors
Definition: TCivetweb.cxx:375
TCivetweb()
constructor
Definition: TCivetweb.cxx:354
Bool_t IsDebugMode() const
Definition: TCivetweb.h:33
void * fCtx
! civetweb context
Definition: TCivetweb.h:20
const char * Data() const
Definition: TString.h:345