DetectorStation.h 855 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef __MAS_DETECTOR_STATION_H
  2. #define __MAS_DETECTOR_STATION_H
  3. #include "DetectorLib.h"
  4. #include "HTTP_Definition.h"
  5. #include "StreamDef.h"
  6. NAMESPACE_MAS_BEGIN
  7. class DetectorStation {
  8. public:
  9. DetectorStation();
  10. ~DetectorStation();
  11. TZ_INT Initialize();
  12. TZ_INT Dispose();
  13. TZ_INT QueryDetectorUnit(const QueryCondition& reqInfo, PageResult & info, std::list<DetectorInfo> & infos);
  14. SPtr<IStreamPipe> BuildPipe(TZ_INT rscID, TZ_INT detId);
  15. TZ_INT SetInitParam(const DetectorInfo& info);
  16. private:
  17. TZ_INT loadDetLibs();
  18. TZ_INT updateDbByDetector(const DetectorInfo & det, const std::string & libpath);
  19. SPtr<DetectorLib> genDetLibIns(const std::string & libpath, const DetectorInfo & det);
  20. private:
  21. std::map<TZ_INT, SPtr<DetectorLib>> m_detLib;
  22. };
  23. NAMESPACE_MAS_END
  24. #endif // __MAS_DETECTOR_STATION_H