StraStreamPipe.h 860 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef __MAS_STEA_STREAMPIPE_H
  2. #define __MAS_STEA_STREAMPIPE_H
  3. #include "StrategyLib.h"
  4. #include "StreamDef.h"
  5. NAMESPACE_MAS_BEGIN
  6. class StraStreamPipe : public IStreamPipe {
  7. public:
  8. StraStreamPipe(TZ_INT sceneID,
  9. const std::string & sceneName, TZ_INT straId,
  10. const std::string & straParams, const ExcepInfo & einfo);
  11. virtual ~StraStreamPipe();
  12. virtual TZ_INT Initialize(SPtr<StrategyLib> & straLib);
  13. virtual TZ_INT Dispose();
  14. TZ_INT SetStrategyCfg(const std::string & param);
  15. protected:
  16. virtual std::tuple<TZ_BOOL, TZ_BOOL> streamArrived(
  17. SPtr<StreamInfo> & streamInfo) override;
  18. private:
  19. void addRecord(SPtr<StraProducing> & producing);
  20. private:
  21. class Strategy * m_strategy;
  22. SPtr<StrategyLib> m_straLib;
  23. std::string m_straKey;
  24. std::string m_sceneName;
  25. std::string m_straParams;
  26. };
  27. NAMESPACE_MAS_END
  28. #endif