![]() |
|
|||
File indexing completed on 2025-07-12 08:50:43
0001 // $Id$ 0002 // Author: Sergey Linev 21/12/2013 0003 0004 /************************************************************************* 0005 * Copyright (C) 1995-2013, Rene Brun and Fons Rademakers. * 0006 * All rights reserved. * 0007 * * 0008 * For the licensing terms see $ROOTSYS/LICENSE. * 0009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 0010 *************************************************************************/ 0011 0012 #ifndef ROOT_THttpEngine 0013 #define ROOT_THttpEngine 0014 0015 #include "TNamed.h" 0016 0017 class THttpServer; 0018 0019 class THttpEngine : public TNamed { 0020 protected: 0021 friend class THttpServer; 0022 0023 THttpServer *fServer{nullptr}; ///<! object server 0024 0025 THttpEngine(const char *name, const char *title); 0026 0027 void SetServer(THttpServer *serv) { fServer = serv; } 0028 0029 /** Method called when server want to be terminated */ 0030 virtual void Terminate() {} 0031 0032 /** Method regularly called in main ROOT context */ 0033 virtual void Process() {} 0034 0035 public: 0036 /** Method to create all components of engine. Called once from by the server */ 0037 virtual Bool_t Create(const char *) { return kFALSE; } 0038 0039 /** Returns pointer to THttpServer associated with engine */ 0040 THttpServer *GetServer() const { return fServer; } 0041 0042 ClassDefOverride(THttpEngine, 0) // abstract class which should provide http-based protocol for server 0043 }; 0044 0045 #endif
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |