#ifndef __MAS_STRATEGY_H #define __MAS_STRATEGY_H #include "StreamDef.h" NAMESPACE_MAS_BEGIN class Strategy { public: Strategy(const std::string & key, const std::string & name) : m_inited(FALSE), m_key(key), m_name(name) {} virtual ~Strategy() {} public: virtual TZ_INT Initialize() = 0; virtual TZ_INT Dispose() = 0; virtual TZ_INT SetStrategyCfg(const std::string & param) = 0; virtual TZ_INT DoStrategy(SPtr & streamInfo) = 0; protected: TZ_BOOL m_inited; std::string m_key; std::string m_name; }; NAMESPACE_MAS_END #endif