#ifndef HSENSORINFO_H #define HSENSORINFO_H #include #include #include class IProgramNode { public: virtual ~IProgramNode() {} virtual void ToXml(HXml &xml) = 0; virtual bool FromXml(const HXml &xml) = 0; virtual cat::HCatBuffer GetType() const = 0; }; struct EffectInfo { int inSpeed; ///< 播放速度 int outSpeed; ///< 播放速度 int in; ///< 进入特效 int out; ///< 退出特效 int duration; ///< 播放时长, 0.1s EffectInfo() : inSpeed(5), outSpeed(5), in(0), out(0), duration(50) {} }; void to_xml(HXml &xml, const EffectInfo &node); void from_xml(const HXml &xml, EffectInfo &node); struct FileInfo { cat::HCatBuffer name; cat::HCatBuffer md5; int size; FileInfo() : size(0) {} }; void to_xml(HXml &xml, const FileInfo &node); void from_xml(const HXml &xml, FileInfo &node); /** * *