12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- #ifndef __MAS_PROTO_CVT_H
- #define __MAS_PROTO_CVT_H
- #include "DBTables.h"
- #include "MAS_AlgoDef.h"
- #include "HTTP_Definition.h"
- NAMESPACE_MAS_BEGIN
- class ProtoCvt {
- public:
- static void Json2Tbl(
- const UserInfo & from, TblUserInfoItem & to);
- static void Tbl2Json(
- const TblUserInfoItem & from, UserInfo & to);
- static void Json2Tbl(
- const SceneInfo & from, TblSceneInfoItem & to);
- static void Tbl2Json(
- const TblSceneInfoItem & from, SceneInfo & to);
- static void Json2Tbl(
- const StrategyInfo & from, TblStrategyInfoItem & to);
- static void Tbl2Json(
- const TblStrategyInfoItem & from, StrategyInfo & to);
- static void Json2Tbl(
- const SceneGroupInfo & from,
- TblSceneGroupItem & to,
- std::list<TblSgroupSceneItem> & rels);
- static void Tbl2Json(
- TblSceneGroupItem & from,
- std::list<TblSgroupSceneItem> & rels,
- SceneGroupInfo & to);
- static void Json2Tbl(
- const SysConfig & from, TblSysConfigItem & to);
- static void Tbl2Json(
- const TblSysConfigItem & from, SysConfig & to);
- static void Json2Tbl(
- const MediaSrcInfo & from, TblMediaSrcInfoItem & to);
- static void Tbl2Json(
- const TblMediaSrcInfoItem & from, MediaSrcInfo & to);
- static void Json2Tbl(
- const MediaRscInfo & from, TblMediaRscInfoItem & to);
- static void Tbl2Json(
- const TblMediaRscInfoItem & from, MediaRscInfo & to);
- static void Json2Tbl(
- const DetectorInfo & from, TblDetectorInfoItem & to);
- static void Tbl2Json(
- const TblDetectorInfoItem & from, DetectorInfo & to);
- static void Json2Tbl(
- const PlanInfo & from, TblPlanInfoItem & to);
- static void Tbl2Json(
- const TblPlanInfoItem & from, PlanInfo & to);
- static void Json2Tbl(
- const EventRecord & from, TblEventRecordItem & to);
- static void Tbl2Json(
- const TblEventRecordItem & from, EventRecord & to);
- static void Json2Tbl(
- const MediaRecord & from, TblMediaRecordItem & to);
- static void Tbl2Json(
- const TblMediaRecordItem & from, MediaRecord & to);
- static void Json2Tbl(
- const OpRecord & from, TblOpRecordItem & to);
- static void Tbl2Json(
- const TblOpRecordItem & from, OpRecord & to);
- static void Json2Tbl(
- const PerformanceRecord & from, TblPerformanceRecordItem & to);
- static void Tbl2Json(
- const TblPerformanceRecordItem & from, PerformanceRecord & to);
- static void Json2Tbl(
- const SceneDetectorInfo & from, TblSceneDetectorInfoItem & to);
- static void Tbl2Json(
- const TblSceneDetectorInfoItem & from, SceneDetectorInfo & to);
- static void Cvt(const class ExcepInfo & from, TZ_INT type,
- TZ_HANDLE tag, TZ_HANDLE stag, PipeException & to);
- static void Cvt(const QueryCondition & from,
- ORDER_PAIR & order, std::vector<sdb::ValuePair> & pairs);
- };
- NAMESPACE_MAS_END
- #endif
|