1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef __MAS_DETECTOR_STATION_H
- #define __MAS_DETECTOR_STATION_H
- #include "DetectorLib.h"
- #include "HTTP_Definition.h"
- #include "StreamDef.h"
- NAMESPACE_MAS_BEGIN
- class DetectorStation {
- public:
- DetectorStation();
- ~DetectorStation();
- TZ_INT Initialize();
- TZ_INT Dispose();
- TZ_INT QueryDetectorUnit(const QueryCondition& reqInfo, PageResult & info, std::list<DetectorInfo> & infos);
- SPtr<IStreamPipe> BuildPipe(TZ_INT rscID, TZ_INT detId);
- TZ_INT SetInitParam(const DetectorInfo& info);
- private:
- TZ_INT loadDetLibs();
- TZ_INT updateDbByDetector(const DetectorInfo & det, const std::string & libpath);
- SPtr<DetectorLib> genDetLibIns(const std::string & libpath, const DetectorInfo & det);
- private:
- std::map<TZ_INT, SPtr<DetectorLib>> m_detLib;
- };
- NAMESPACE_MAS_END
- #endif // __MAS_DETECTOR_STATION_H
|