bref
API 2014 of the Zia HTTP server.
|
00001 00010 #ifndef ZIA_SRC_API_AMODULE_H 00011 #define ZIA_SRC_API_AMODULE_H 00012 00013 #pragma once 00014 00015 #include <string> 00016 00017 #include "Version.h" 00018 #include "Pipeline.h" 00019 #include "IDisposable.h" 00020 00021 namespace bref 00022 { 00046 class BREF_DLL AModule : public IDisposable 00047 { 00048 protected: 00058 AModule(const std::string & name, 00059 const std::string & description, 00060 const Version & version, 00061 const Version & minimumApiVersion); 00062 00074 virtual ~AModule() { } 00075 00080 std::string name_; 00081 00086 std::string description_; 00087 00092 Version version_; 00093 00098 Version minimumApiVersion_; 00099 00100 public: 00106 virtual const std::string & name() const; 00107 00113 virtual const std::string & description() const; 00114 00120 virtual const Version & version() const; 00121 00127 virtual const Version & minimumApiVersion() const; 00128 00147 virtual void registerHooks(Pipeline & /* pipeline */) { } 00148 00193 virtual IDisposable *registerSessionHooks(Pipeline & /* pipeline */) { return 0; } 00194 }; 00195 00196 } // ! bref 00197 00198 #endif // ZIA_SRC_API_AMODULE_H