Strategy.h 570 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __MAS_STRATEGY_H
  2. #define __MAS_STRATEGY_H
  3. #include "StreamDef.h"
  4. NAMESPACE_MAS_BEGIN
  5. class Strategy {
  6. public:
  7. Strategy(const std::string & key,
  8. const std::string & name) :
  9. m_inited(FALSE), m_key(key), m_name(name) {}
  10. virtual ~Strategy() {}
  11. public:
  12. virtual TZ_INT Initialize() = 0;
  13. virtual TZ_INT Dispose() = 0;
  14. virtual TZ_INT SetStrategyCfg(const std::string & param) = 0;
  15. virtual TZ_INT DoStrategy(SPtr<StreamInfo> & streamInfo) = 0;
  16. protected:
  17. TZ_BOOL m_inited;
  18. std::string m_key;
  19. std::string m_name;
  20. };
  21. NAMESPACE_MAS_END
  22. #endif