1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- #ifndef __USERAPP_HPP_
- #define __USERAPP_HPP_
- #include <iostream>
- #include "Util/SqlPool.h"
- #include "UtilBase.hpp"
- #include "Util/logger.h"
- #include "config.hpp"
- #include "HttpPlugin.hpp"
- #include "TcpPlugin.hpp"
- #include "ExpelPlugin.hpp"
- #include "MonitorPlugin.hpp"
- using namespace std;
- using namespace toolkit;
- namespace gsd
- {
- class UserApp
- {
- private:
- UserApp(){
- InfoL;
- }
- public:
- using Ptr = std::shared_ptr<UserApp>;
-
-
- static std::shared_ptr<UserApp> CreateNew();
-
-
- virtual bool Init();
-
-
- virtual bool StartTask();
-
-
-
- virtual void Destroy();
-
-
- virtual bool Alive();
-
-
- ~UserApp(){
- this->Destroy();
- }
- protected:
- HttpPlugin::Ptr m_HttpPlugin = nullptr;
- TcpPlugin::Ptr m_TcpPlugin = nullptr;
- ExpelPlugin::Ptr m_ExpelPlugin = nullptr;
- MonitorPlugin::Ptr m_MonitorPlugin = nullptr;
- Timer::Ptr timer0 = nullptr;
- };
- }
- #endif
|