123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef __MAS_STRATEGY_STATION_H
- #define __MAS_STRATEGY_STATION_H
- #include "StrategyLib.h"
- #include "MAS_Definition.h"
- #include "HTTP_Definition.h"
- #include "StreamDef.h"
- #include <mutex>
- NAMESPACE_MAS_BEGIN
- class StrategyStation {
- public:
- StrategyStation();
- ~StrategyStation();
- TZ_INT Initialize();
- TZ_INT Dispose();
- TZ_INT QueryStrategy(const QueryCondition & reqInfo,
- PageResult & info,std::list<StrategyInfo> & infos);
- TZ_INT EditStrategy(const StrategyInfo & info);
- SPtr<IStreamPipe> BuildPipe(
- TZ_INT sceneId, const std::string & sceneName,
- TZ_INT straId, const std::string & straParams);
- private:
- TZ_INT loadStraLibs();
-
- TZ_INT updateDbByStrategy(StrategyInfo & stra,
- const std::string & libpath);
- SPtr<StrategyLib> genStraLibIns(
- const std::string & libpath, StrategyInfo & stra);
- TZ_INT getDetIdByKey(const std::string & key);
- private:
- std::map<TZ_INT, SPtr<StrategyLib>> m_straLib;
- };
- NAMESPACE_MAS_END
- #endif
|