1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #ifndef __TESTAPP_HPP__
- #define __TESTAPP_HPP__
- #include <iostream>
- #include "Util/SqlPool.h"
- #include "UtilBase.hpp"
- #include "Util/logger.h"
- #include "config.hpp"
- #include "HepuPlugin.hpp"
- using namespace std;
- using namespace toolkit;
- namespace gsd
- {
- class TestApp
- {
- private:
- TestApp(){
- InfoL<<"Test APP"<<endl;
- }
- public:
- using Ptr = std::shared_ptr<TestApp>;
- static std::shared_ptr<TestApp> CreateNew();
- virtual bool Init();
- virtual bool StartTask();
- virtual void Destroy();
- virtual bool Alive();
- ~TestApp(){
- this->Destroy();
- }
- protected:
- HepuPlugin::Ptr m_HepuPlugin = nullptr;
- Timer::Ptr timer0 = nullptr;
- };
- }
- #endif
|