(C++) WtTimedServerPusherClient

January 25, 2018 · View on GitHub

 

 

 

 

 

(C++) WtTimedServerPusherClient

 

 

 

 

 

 

Technical facts

 

Application type(s)

Operating system(s) or programming environment(s)

IDE(s):

Project type:

C++ standard:

Compiler(s):

Libraries used:

  • Boost Boost: version 1.42
  • STL STL: GNU ISO C++ Library, version 4.5.2
  • Wt Wt: version 3.1.9

 

 

 

 

 

wttimedserverpusherclient.cpp

 


 

 

 

 

 

wttimedserverpusherclient.h

 


//--------------------------------------------------------------------------- #ifndef WTTIMEDSERVERPUSHERCLIENT_H #define WTTIMEDSERVERPUSHERCLIENT_H //--------------------------------------------------------------------------- #include <string> #include <vector> //--------------------------------------------------------------------------- ///WtTimedServerPusherClient is a client responding to WtTimedServerPusher ///and to be used as a base class struct WtTimedServerPusherClient {   virtual ~WtTimedServerPusherClient();   ///Get the version of this class   static const std::string GetVersion();   ///Get the version history of this class   static const std::vector<std::string> GetVersionHistory();   ///UpdatePage is called when the WtTimedServerPusher triggers an update by timer   virtual void OnTimedServerPush() = 0;   protected:   ///WtTimedServerPusherClient constructor is protected   ///because it is to be used as a base class   WtTimedServerPusherClient();   private:   ///Respond to the server   void OnServer(); }; //--------------------------------------------------------------------------- #endif // WTTIMEDSERVERPUSHERCLIENT_H