[ref]iot_application -> iot_app
This commit is contained in:
parent
cf0d107434
commit
772fc63550
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include "ApcIfSrvCommon.h"
|
#include "ApcIfSrvCommon.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
const char *g_pSzProcName = "apc_if_srv";
|
const char *g_pSzProcName = "apc_if_srv";
|
||||||
@ -61,4 +61,4 @@ bool splitKeyIdTag(const std::string &strKeyIdTag,
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
#include "service/common/RdbTableDefine.h"
|
#include "service/common/RdbTableDefine.h"
|
||||||
#include "service/common/CommonDefine.h"
|
#include "service/common/CommonDefine.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
extern const char *g_pSzProcName;
|
extern const char *g_pSzProcName;
|
||||||
|
|
||||||
@ -21,4 +21,4 @@ bool splitKeyIdTag(const std::string &strKeyIdTag,
|
|||||||
std::string *pStrTagName = NULL,
|
std::string *pStrTagName = NULL,
|
||||||
std::string *pStrColumnName = NULL);
|
std::string *pStrColumnName = NULL);
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
#include "CApcIfRedunSw.h"
|
#include "CApcIfRedunSw.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
CApcIfRedunSw::CApcIfRedunSw()
|
CApcIfRedunSw::CApcIfRedunSw()
|
||||||
@ -70,5 +70,5 @@ int CApcIfRedunSw::redundantSwitch(bool bMaster, bool bSlave)
|
|||||||
return iotSuccess;
|
return iotSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include "sys_node_mng_api/NodeMngInterface.h"
|
#include "sys_node_mng_api/NodeMngInterface.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
class CThreadAnalog;
|
class CThreadAnalog;
|
||||||
@ -41,5 +41,5 @@ private:
|
|||||||
|
|
||||||
typedef boost::shared_ptr<CApcIfRedunSw> CApcIfRedunSwPtr;
|
typedef boost::shared_ptr<CApcIfRedunSw> CApcIfRedunSwPtr;
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
#include "ApcIfSrvCommon.h"
|
#include "ApcIfSrvCommon.h"
|
||||||
#include "CApcIfSrv.h"
|
#include "CApcIfSrv.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
bool g_bVerboseLog = false;
|
bool g_bVerboseLog = false;
|
||||||
@ -501,5 +501,5 @@ unsigned int CApcIfSrv::getInvalidStatus_DI() const
|
|||||||
return m_nInvalidStatus_DI;
|
return m_nInvalidStatus_DI;
|
||||||
}
|
}
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
#include "CApcIfRedunSw.h"
|
#include "CApcIfRedunSw.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
class CApcIfSrv :
|
class CApcIfSrv :
|
||||||
@ -112,4 +112,4 @@ private:
|
|||||||
iot_service::CAlmApiForAppPtr m_ptrAlmApi; //< 报警服务接口
|
iot_service::CAlmApiForAppPtr m_ptrAlmApi; //< 报警服务接口
|
||||||
};
|
};
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|||||||
@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
#include "CThreadAnalog.h"
|
#include "CThreadAnalog.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
extern bool g_bVerboseLog;
|
extern bool g_bVerboseLog;
|
||||||
@ -692,5 +692,5 @@ void CThreadAnalog::handleOutput()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
#include "rdb_api/CRdbAccess.h"
|
#include "rdb_api/CRdbAccess.h"
|
||||||
#include "OptDataMessage.pb.h"
|
#include "OptDataMessage.pb.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
class CThreadAnalog
|
class CThreadAnalog
|
||||||
@ -58,5 +58,5 @@ private:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|
||||||
|
|||||||
@ -46,7 +46,7 @@
|
|||||||
|
|
||||||
#include "CThreadDigital.h"
|
#include "CThreadDigital.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
extern bool g_bVerboseLog;
|
extern bool g_bVerboseLog;
|
||||||
@ -518,5 +518,5 @@ void CThreadDigital::handleOutput()
|
|||||||
m_objSetDataToDp.clear_seq_set_data_info();
|
m_objSetDataToDp.clear_seq_set_data_info();
|
||||||
}
|
}
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
#include "rdb_api/CRdbAccess.h"
|
#include "rdb_api/CRdbAccess.h"
|
||||||
#include "OptDataMessage.pb.h"
|
#include "OptDataMessage.pb.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
class CThreadDigital
|
class CThreadDigital
|
||||||
@ -57,5 +57,5 @@ private:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|
||||||
|
|||||||
@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
#include "CThreadLocalCurve.h"
|
#include "CThreadLocalCurve.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
extern bool g_bVerboseLog;
|
extern bool g_bVerboseLog;
|
||||||
@ -764,4 +764,4 @@ void CThreadLocalCurve::updateModelCurrentDayRuleId(const char *pSzKeyIdTag, con
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
#include "rdb_api/CRdbAccess.h"
|
#include "rdb_api/CRdbAccess.h"
|
||||||
#include "OptDataMessage.pb.h"
|
#include "OptDataMessage.pb.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
class CThreadLocalCurve
|
class CThreadLocalCurve
|
||||||
@ -116,5 +116,5 @@ private:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|
||||||
|
|||||||
@ -12,8 +12,8 @@
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
//< 控制单例生命周期
|
//< 控制单例生命周期
|
||||||
iot_application::CApcIfSrv::GC objSrvGc;
|
iot_app::CApcIfSrv::GC objSrvGc;
|
||||||
|
|
||||||
return iot_application::CApcIfSrv::getInstance().main(argc, argv);
|
return iot_app::CApcIfSrv::getInstance().main(argc, argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include "CFaultRecallRedunSw.h"
|
#include "CFaultRecallRedunSw.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
CFaultRecallRedunSw::CFaultRecallRedunSw()
|
CFaultRecallRedunSw::CFaultRecallRedunSw()
|
||||||
@ -55,5 +55,5 @@ int CFaultRecallRedunSw::redundantSwitch(bool bMaster, bool bSlave)
|
|||||||
return iotSuccess;
|
return iotSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
#include "CTriggerThread.h"
|
#include "CTriggerThread.h"
|
||||||
#include "CListenThread.h"
|
#include "CListenThread.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
class CFaultRecallRedunSw : public ::iot_sys::CRedundantSwitchInterface
|
class CFaultRecallRedunSw : public ::iot_sys::CRedundantSwitchInterface
|
||||||
@ -36,5 +36,5 @@ private:
|
|||||||
|
|
||||||
typedef boost::shared_ptr<CFaultRecallRedunSw> CFaultRecallRedunSwPtr;
|
typedef boost::shared_ptr<CFaultRecallRedunSw> CFaultRecallRedunSwPtr;
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
bool g_bVerboseLog = false;
|
bool g_bVerboseLog = false;
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
static const char *g_pSzProcName = "fault_recall_srv";
|
static const char *g_pSzProcName = "fault_recall_srv";
|
||||||
@ -405,5 +405,5 @@ bool CFaultRecallSrv::loadSysInfo()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|
||||||
|
|||||||
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
#include "CFaultRecallRedunSw.h"
|
#include "CFaultRecallRedunSw.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
class CFaultRecallSrv :
|
class CFaultRecallSrv :
|
||||||
@ -78,5 +78,5 @@ private:
|
|||||||
iot_sys::CRedundantMngInterfacePtr m_ptrRedundantMng;
|
iot_sys::CRedundantMngInterfacePtr m_ptrRedundantMng;
|
||||||
};
|
};
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
extern bool g_bVerboseLog;
|
extern bool g_bVerboseLog;
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
CHisDataMng::CHisDataMng(boost::int64_t nTimeBegin,
|
CHisDataMng::CHisDataMng(boost::int64_t nTimeBegin,
|
||||||
boost::int64_t nTimeEnd) :
|
boost::int64_t nTimeEnd) :
|
||||||
@ -824,5 +824,5 @@ bool CHisDataMng::loadSampleFromTsdb()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|
||||||
|
|||||||
@ -41,7 +41,7 @@
|
|||||||
#include "dp_chg_data_api/CDpcdaForDp.h"
|
#include "dp_chg_data_api/CDpcdaForDp.h"
|
||||||
#include "db_his_query_api/DbHisQueryApi.h"
|
#include "db_his_query_api/DbHisQueryApi.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
class CHisDataMng
|
class CHisDataMng
|
||||||
@ -205,4 +205,4 @@ private:
|
|||||||
MeasPointMap m_mapAcc;
|
MeasPointMap m_mapAcc;
|
||||||
};
|
};
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
#include "CFaultRecallSrv.h"
|
#include "CFaultRecallSrv.h"
|
||||||
#include "CListenThread.h"
|
#include "CListenThread.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
//< 1ms一次,靠通讯器超时时间休息
|
//< 1ms一次,靠通讯器超时时间休息
|
||||||
@ -321,5 +321,5 @@ void CListenThread::sendSessStateReject(const char *pszSess)
|
|||||||
m_pMbComm->sendMsgToDomain(objMbMsgSend, -1);
|
m_pMbComm->sendMsgToDomain(objMbMsgSend, -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|
||||||
|
|||||||
@ -21,7 +21,7 @@
|
|||||||
#include "fault_recall_srv/JsonMsgClass.h"
|
#include "fault_recall_srv/JsonMsgClass.h"
|
||||||
#include "CSessionThread.h"
|
#include "CSessionThread.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
class CListenThread
|
class CListenThread
|
||||||
@ -63,5 +63,5 @@ private:
|
|||||||
CSessionThread *m_pSessThread; //< 会话线程
|
CSessionThread *m_pSessThread; //< 会话线程
|
||||||
};
|
};
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
#include "CFaultRecallSrv.h"
|
#include "CFaultRecallSrv.h"
|
||||||
#include "CSessionThread.h"
|
#include "CSessionThread.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
static const unsigned int g_nEventQueueMaxSize = 10000;
|
static const unsigned int g_nEventQueueMaxSize = 10000;
|
||||||
@ -457,5 +457,5 @@ void CSessionThread::sendFullFrame(boost::int64_t nTime)
|
|||||||
LOGDEBUG("sendFullFrame() : end\n");
|
LOGDEBUG("sendFullFrame() : end\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
#include "fault_recall_srv/JsonMsgClass.h"
|
#include "fault_recall_srv/JsonMsgClass.h"
|
||||||
#include "CHisDataMng.h"
|
#include "CHisDataMng.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
class CSessionThread
|
class CSessionThread
|
||||||
@ -118,5 +118,5 @@ private:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include "CTriggerThread.h"
|
#include "CTriggerThread.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
//< 500ms运行一次
|
//< 500ms运行一次
|
||||||
@ -106,7 +106,7 @@ bool CTriggerThread::suspendThread()
|
|||||||
|
|
||||||
//< 删除触发器
|
//< 删除触发器
|
||||||
{
|
{
|
||||||
std::vector<const iot_application::CTriggerPara *> vecTriggerPara;
|
std::vector<const iot_app::CTriggerPara *> vecTriggerPara;
|
||||||
if (!getTriggerList(vecTriggerPara))
|
if (!getTriggerList(vecTriggerPara))
|
||||||
{
|
{
|
||||||
LOGERROR("suspendThread(): 获取已添加的触发器失败!");
|
LOGERROR("suspendThread(): 获取已添加的触发器失败!");
|
||||||
@ -151,7 +151,7 @@ void CTriggerThread::execute()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool CTriggerThread::triggered(const iot_application::CTriggerPara *param, uint64 triggerTime)
|
bool CTriggerThread::triggered(const iot_app::CTriggerPara *param, uint64 triggerTime)
|
||||||
{
|
{
|
||||||
STriggerEvent stEvent;
|
STriggerEvent stEvent;
|
||||||
stEvent.m_pPara = param;
|
stEvent.m_pPara = param;
|
||||||
@ -178,10 +178,10 @@ void CTriggerThread::refreshCfg()
|
|||||||
|
|
||||||
//< 已添加的触发器map,便于查询
|
//< 已添加的触发器map,便于查询
|
||||||
boost::unordered::unordered_map
|
boost::unordered::unordered_map
|
||||||
<std::string, const iot_application::CTriggerPara *>
|
<std::string, const iot_app::CTriggerPara *>
|
||||||
mapAddedTrigger;
|
mapAddedTrigger;
|
||||||
{
|
{
|
||||||
std::vector<const iot_application::CTriggerPara *> vecTriggerPara;
|
std::vector<const iot_app::CTriggerPara *> vecTriggerPara;
|
||||||
if (!getTriggerList(vecTriggerPara))
|
if (!getTriggerList(vecTriggerPara))
|
||||||
{
|
{
|
||||||
LOGERROR("suspendThread(): 获取已添加的触发器失败!");
|
LOGERROR("suspendThread(): 获取已添加的触发器失败!");
|
||||||
@ -190,8 +190,8 @@ void CTriggerThread::refreshCfg()
|
|||||||
|
|
||||||
for (size_t i = 0; i < vecTriggerPara.size(); ++i)
|
for (size_t i = 0; i < vecTriggerPara.size(); ++i)
|
||||||
{
|
{
|
||||||
const iot_application::CTriggerPara *pPara = vecTriggerPara[i];
|
const iot_app::CTriggerPara *pPara = vecTriggerPara[i];
|
||||||
if (iot_application::CTriggerPara::TRIGGER_TYPE_CONDITION
|
if (iot_app::CTriggerPara::TRIGGER_TYPE_CONDITION
|
||||||
!= pPara->getTriggerType())
|
!= pPara->getTriggerType())
|
||||||
{
|
{
|
||||||
//< 只允许条件触发器
|
//< 只允许条件触发器
|
||||||
@ -231,9 +231,9 @@ void CTriggerThread::refreshCfg()
|
|||||||
if (mapAddedTrigger.end() == itAdded)
|
if (mapAddedTrigger.end() == itAdded)
|
||||||
{
|
{
|
||||||
//< 没找到,则添加
|
//< 没找到,则添加
|
||||||
const iot_application::CTriggerPara *pTrigPrar =
|
const iot_app::CTriggerPara *pTrigPrar =
|
||||||
new iot_application::CTriggerPara(
|
new iot_app::CTriggerPara(
|
||||||
iot_application::CTriggerPara::TRIGGER_TYPE_CONDITION,
|
iot_app::CTriggerPara::TRIGGER_TYPE_CONDITION,
|
||||||
strTrigName);
|
strTrigName);
|
||||||
|
|
||||||
if (addTrigger(pTrigPrar))
|
if (addTrigger(pTrigPrar))
|
||||||
@ -478,5 +478,5 @@ void CTriggerThread::handleTriggerEvent()
|
|||||||
iot_dbms::saveHisData(objDbInsert);
|
iot_dbms::saveHisData(objDbInsert);
|
||||||
}
|
}
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|
||||||
|
|||||||
@ -19,12 +19,12 @@
|
|||||||
#include "rdb_api/CRdbAccess.h"
|
#include "rdb_api/CRdbAccess.h"
|
||||||
#include "trigger_api/CTriggerApi.h"
|
#include "trigger_api/CTriggerApi.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
class CTriggerThread
|
class CTriggerThread
|
||||||
: private iot_public::CTimerThreadBase,
|
: private iot_public::CTimerThreadBase,
|
||||||
iot_application::CTriggerApi
|
iot_app::CTriggerApi
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CTriggerThread();
|
CTriggerThread();
|
||||||
@ -42,7 +42,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
void execute()override;
|
void execute()override;
|
||||||
|
|
||||||
bool triggered(const iot_application::CTriggerPara *param, uint64 triggerTime)override;
|
bool triggered(const iot_app::CTriggerPara *param, uint64 triggerTime)override;
|
||||||
|
|
||||||
//< 从实时库刷新触发条件,以支持在线修改
|
//< 从实时库刷新触发条件,以支持在线修改
|
||||||
void refreshCfg();
|
void refreshCfg();
|
||||||
@ -53,7 +53,7 @@ private:
|
|||||||
//< 触发器事件结构
|
//< 触发器事件结构
|
||||||
struct STriggerEvent
|
struct STriggerEvent
|
||||||
{
|
{
|
||||||
const iot_application::CTriggerPara *m_pPara;
|
const iot_app::CTriggerPara *m_pPara;
|
||||||
uint64 m_nTime;
|
uint64 m_nTime;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -74,5 +74,5 @@ private:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|
||||||
|
|||||||
@ -12,8 +12,8 @@
|
|||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
//< 控制单例生命周期
|
//< 控制单例生命周期
|
||||||
iot_application::CFaultRecallSrv::GC objSrvGc;
|
iot_app::CFaultRecallSrv::GC objSrvGc;
|
||||||
|
|
||||||
return iot_application::CFaultRecallSrv::getInstance().main(argc, argv);
|
return iot_app::CFaultRecallSrv::getInstance().main(argc, argv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -34,7 +34,7 @@ int main(/*int argc, char *argv[]*/)
|
|||||||
LOGINFO("Log system OK !");
|
LOGINFO("Log system OK !");
|
||||||
|
|
||||||
{
|
{
|
||||||
iot_application::CFrMsgNewSess objSrc, objDst;
|
iot_app::CFrMsgNewSess objSrc, objDst;
|
||||||
objSrc.m_nDomainID = 11;
|
objSrc.m_nDomainID = 11;
|
||||||
objSrc.m_nTimeBegin = 12;
|
objSrc.m_nTimeBegin = 12;
|
||||||
objSrc.m_nTimeEnd = 13;
|
objSrc.m_nTimeEnd = 13;
|
||||||
@ -50,9 +50,9 @@ int main(/*int argc, char *argv[]*/)
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
iot_application::CFrMsgSessState objSrc, objDst;
|
iot_app::CFrMsgSessState objSrc, objDst;
|
||||||
objSrc.m_nDomainID = 21;
|
objSrc.m_nDomainID = 21;
|
||||||
objSrc.m_enState = iot_application::EN_FR_SS_PLAY;
|
objSrc.m_enState = iot_app::EN_FR_SS_PLAY;
|
||||||
objSrc.m_strSess = "Test23";
|
objSrc.m_strSess = "Test23";
|
||||||
|
|
||||||
const std::string strJson = objSrc.toJsonStr();
|
const std::string strJson = objSrc.toJsonStr();
|
||||||
@ -65,7 +65,7 @@ int main(/*int argc, char *argv[]*/)
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
iot_application::CFrMsgGetSessState objSrc, objDst;
|
iot_app::CFrMsgGetSessState objSrc, objDst;
|
||||||
objSrc.m_nDomainID = 31;
|
objSrc.m_nDomainID = 31;
|
||||||
objSrc.m_strSess = "Test32";
|
objSrc.m_strSess = "Test32";
|
||||||
|
|
||||||
@ -79,9 +79,9 @@ int main(/*int argc, char *argv[]*/)
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
iot_application::CFrMsgSetSessState objSrc, objDst;
|
iot_app::CFrMsgSetSessState objSrc, objDst;
|
||||||
objSrc.m_nDomainID = 41;
|
objSrc.m_nDomainID = 41;
|
||||||
objSrc.m_enState = iot_application::EN_FR_SS_PLAY;
|
objSrc.m_enState = iot_app::EN_FR_SS_PLAY;
|
||||||
objSrc.m_strSess = "Test43";
|
objSrc.m_strSess = "Test43";
|
||||||
|
|
||||||
const std::string strJson = objSrc.toJsonStr();
|
const std::string strJson = objSrc.toJsonStr();
|
||||||
@ -94,7 +94,7 @@ int main(/*int argc, char *argv[]*/)
|
|||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
iot_application::CFrMsgSetTime objSrc, objDst;
|
iot_app::CFrMsgSetTime objSrc, objDst;
|
||||||
objSrc.m_nDomainID = 51;
|
objSrc.m_nDomainID = 51;
|
||||||
objSrc.m_nTime = 52;
|
objSrc.m_nTime = 52;
|
||||||
objSrc.m_strSess = "Test53";
|
objSrc.m_strSess = "Test53";
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
CModuleMbComm::CModuleMbComm(
|
CModuleMbComm::CModuleMbComm(
|
||||||
const iot_public::SRunAppInfo& appInfo)
|
const iot_public::SRunAppInfo& appInfo)
|
||||||
:iot_application::CLinkageForServerApi(appInfo.nAppId),
|
:iot_app::CLinkageForServerApi(appInfo.nAppId),
|
||||||
m_objActionAnalysis(appInfo, *this),
|
m_objActionAnalysis(appInfo, *this),
|
||||||
m_objHmiMsgAnalysis(appInfo),
|
m_objHmiMsgAnalysis(appInfo),
|
||||||
m_nDomain(appInfo.nDomainId)
|
m_nDomain(appInfo.nDomainId)
|
||||||
@ -38,7 +38,7 @@ bool CModuleMbComm::sendStartHmiRequest(const CNodeLink& link)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!iot_application::CLinkageForServerApi::linkStartRequest(*msg))
|
if (!iot_app::CLinkageForServerApi::linkStartRequest(*msg))
|
||||||
{
|
{
|
||||||
LOGINFO("发送半自动联动开始请求,失败, 联动[%s] 联动状态[%s]!",
|
LOGINFO("发送半自动联动开始请求,失败, 联动[%s] 联动状态[%s]!",
|
||||||
link.description().c_str(),
|
link.description().c_str(),
|
||||||
@ -78,7 +78,7 @@ bool CModuleMbComm::nodeStatusToHmi(
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!iot_application::CLinkageForServerApi::linkStateChange(*msg))
|
if (!iot_app::CLinkageForServerApi::linkStateChange(*msg))
|
||||||
{
|
{
|
||||||
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
||||||
return false;
|
return false;
|
||||||
@ -106,7 +106,7 @@ bool CModuleMbComm::nodeStatusToHmi(const CNodeLink& link)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!iot_application::CLinkageForServerApi::linkStateChange(*msg))
|
if (!iot_app::CLinkageForServerApi::linkStateChange(*msg))
|
||||||
{
|
{
|
||||||
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
||||||
return false;
|
return false;
|
||||||
@ -136,7 +136,7 @@ bool CModuleMbComm::nodeStatusToHmi(const CNodeFunc& fuc)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!iot_application::CLinkageForServerApi::linkStateChange(*msg))
|
if (!iot_app::CLinkageForServerApi::linkStateChange(*msg))
|
||||||
{
|
{
|
||||||
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
||||||
return false;
|
return false;
|
||||||
@ -168,7 +168,7 @@ bool CModuleMbComm::nodeStatusToHmi(const CNodeAction& action)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!iot_application::CLinkageForServerApi::linkStateChange(*msg))
|
if (!iot_app::CLinkageForServerApi::linkStateChange(*msg))
|
||||||
{
|
{
|
||||||
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
||||||
return false;
|
return false;
|
||||||
@ -199,7 +199,7 @@ bool CModuleMbComm::nodeAbnormalEndStatusToHmi(
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!iot_application::CLinkageForServerApi::linkStateChange(*msg))
|
if (!iot_app::CLinkageForServerApi::linkStateChange(*msg))
|
||||||
{
|
{
|
||||||
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
||||||
return false;
|
return false;
|
||||||
@ -230,7 +230,7 @@ bool CModuleMbComm::sendUiRequest(
|
|||||||
isSendToHost = false;
|
isSendToHost = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!iot_application::CLinkageForServerApi::
|
if (!iot_app::CLinkageForServerApi::
|
||||||
userInterveneRequest(*msg, isSendToHost))
|
userInterveneRequest(*msg, isSendToHost))
|
||||||
{
|
{
|
||||||
LOGERROR("向HMI 发送 人工干预请求 动作: [%s]-[%s]-[%s] 失败!",
|
LOGERROR("向HMI 发送 人工干预请求 动作: [%s]-[%s]-[%s] 失败!",
|
||||||
@ -262,7 +262,7 @@ bool CModuleMbComm::linkOperateResponse(
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!iot_application::CLinkageForServerApi::linkOperateResponse(*responseMsg))
|
if (!iot_app::CLinkageForServerApi::linkOperateResponse(*responseMsg))
|
||||||
{
|
{
|
||||||
LOGERROR("向HMI 发送 操作应答失败!");
|
LOGERROR("向HMI 发送 操作应答失败!");
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@ -20,7 +20,7 @@ class CRecoverNode;
|
|||||||
using namespace iot_idl::linkage;
|
using namespace iot_idl::linkage;
|
||||||
|
|
||||||
class CModuleMbComm :
|
class CModuleMbComm :
|
||||||
public iot_application::CLinkageForServerApi
|
public iot_app::CLinkageForServerApi
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CModuleMbComm(const iot_public::SRunAppInfo& appInfo);
|
CModuleMbComm(const iot_public::SRunAppInfo& appInfo);
|
||||||
|
|||||||
@ -7,14 +7,14 @@
|
|||||||
#include "CModuleAlarmCreater.h"
|
#include "CModuleAlarmCreater.h"
|
||||||
|
|
||||||
CModuleTrigger::CModuleTrigger(int appid)
|
CModuleTrigger::CModuleTrigger(int appid)
|
||||||
: iot_application::CTriggerApi(appid)
|
: iot_app::CTriggerApi(appid)
|
||||||
{
|
{
|
||||||
iot_application::CTriggerApi::start();
|
iot_app::CTriggerApi::start();
|
||||||
}
|
}
|
||||||
|
|
||||||
CModuleTrigger::~CModuleTrigger()
|
CModuleTrigger::~CModuleTrigger()
|
||||||
{
|
{
|
||||||
iot_application::CTriggerApi::stop();
|
iot_app::CTriggerApi::stop();
|
||||||
clearAll();
|
clearAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ void CModuleTrigger::addLinkTrigger(const CNodeLink& link)
|
|||||||
|
|
||||||
void CModuleTrigger::delLinkTrigger(const CNodeLink& link)
|
void CModuleTrigger::delLinkTrigger(const CNodeLink& link)
|
||||||
{
|
{
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
TriggerMap::iterator iter = m_mapTriggerParam.find(&link);
|
TriggerMap::iterator iter = m_mapTriggerParam.find(&link);
|
||||||
if (iter != m_mapTriggerParam.end())
|
if (iter != m_mapTriggerParam.end())
|
||||||
@ -45,7 +45,7 @@ void CModuleTrigger::delLinkTrigger(const CNodeLink& link)
|
|||||||
|
|
||||||
void CModuleTrigger::clearAll()
|
void CModuleTrigger::clearAll()
|
||||||
{
|
{
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
TriggerMap::iterator iter = m_mapTriggerParam.begin();
|
TriggerMap::iterator iter = m_mapTriggerParam.begin();
|
||||||
for (; iter != m_mapTriggerParam.end(); ++iter)
|
for (; iter != m_mapTriggerParam.end(); ++iter)
|
||||||
@ -61,7 +61,7 @@ void CModuleTrigger::clearAll()
|
|||||||
CModuleTrigger::TriggerParaType*
|
CModuleTrigger::TriggerParaType*
|
||||||
CModuleTrigger::findParam(const CNodeLink& link)
|
CModuleTrigger::findParam(const CNodeLink& link)
|
||||||
{
|
{
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
TriggerMap::iterator iter = m_mapTriggerParam.find(&link);
|
TriggerMap::iterator iter = m_mapTriggerParam.find(&link);
|
||||||
if (iter != m_mapTriggerParam.end())
|
if (iter != m_mapTriggerParam.end())
|
||||||
@ -77,7 +77,7 @@ CModuleTrigger::createParam(const CNodeLink& link)
|
|||||||
//不触发的应该过滤掉
|
//不触发的应该过滤掉
|
||||||
BOOST_ASSERT(link.getTriggerExeType() != 0);
|
BOOST_ASSERT(link.getTriggerExeType() != 0);
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
std::string triggerName = link.getTriggerName();
|
std::string triggerName = link.getTriggerName();
|
||||||
CTriggerPara::TRIGGER_TYPE type
|
CTriggerPara::TRIGGER_TYPE type
|
||||||
= (CTriggerPara::TRIGGER_TYPE)(link.getTriggerExeType() - 1);
|
= (CTriggerPara::TRIGGER_TYPE)(link.getTriggerExeType() - 1);
|
||||||
@ -99,7 +99,7 @@ CModuleTrigger::createParam(const CNodeLink& link)
|
|||||||
|
|
||||||
bool CModuleTrigger::isTrigged(const CNodeLink& link, uint64& triggerTime)
|
bool CModuleTrigger::isTrigged(const CNodeLink& link, uint64& triggerTime)
|
||||||
{
|
{
|
||||||
iot_application::CTriggerPara* pParam
|
iot_app::CTriggerPara* pParam
|
||||||
= findParam(link);
|
= findParam(link);
|
||||||
|
|
||||||
if (!pParam)
|
if (!pParam)
|
||||||
@ -107,14 +107,14 @@ bool CModuleTrigger::isTrigged(const CNodeLink& link, uint64& triggerTime)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return iot_application::CTriggerApi::isTrigged(
|
return iot_app::CTriggerApi::isTrigged(
|
||||||
pParam,
|
pParam,
|
||||||
triggerTime);
|
triggerTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CModuleTrigger::isTrigged()
|
bool CModuleTrigger::isTrigged()
|
||||||
{
|
{
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
TriggerMap::iterator iter = m_mapTriggerParam.begin();
|
TriggerMap::iterator iter = m_mapTriggerParam.begin();
|
||||||
for (; iter!=m_mapTriggerParam.end(); ++iter)
|
for (; iter!=m_mapTriggerParam.end(); ++iter)
|
||||||
@ -176,11 +176,11 @@ void CModuleTrigger::ignoreBeforeTime(
|
|||||||
const CNodeLink& link,
|
const CNodeLink& link,
|
||||||
uint64 nTime)
|
uint64 nTime)
|
||||||
{
|
{
|
||||||
iot_application::CTriggerPara* pParam
|
iot_app::CTriggerPara* pParam
|
||||||
= findParam(link);
|
= findParam(link);
|
||||||
if (pParam)
|
if (pParam)
|
||||||
{
|
{
|
||||||
iot_application::CTriggerApi::ignoreBeforeTime(
|
iot_app::CTriggerApi::ignoreBeforeTime(
|
||||||
pParam, nTime);
|
pParam, nTime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,12 +10,12 @@
|
|||||||
|
|
||||||
class CNodeLink;
|
class CNodeLink;
|
||||||
class CModuleAlarmCreater;
|
class CModuleAlarmCreater;
|
||||||
class CModuleTrigger : iot_application::CTriggerApi
|
class CModuleTrigger : iot_app::CTriggerApi
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef iot_application::CTriggerPara TriggerParaType;
|
typedef iot_app::CTriggerPara TriggerParaType;
|
||||||
typedef std::map<const CNodeLink*,
|
typedef std::map<const CNodeLink*,
|
||||||
iot_application::CTriggerPara*> TriggerMap;
|
iot_app::CTriggerPara*> TriggerMap;
|
||||||
|
|
||||||
CModuleTrigger(int appid);
|
CModuleTrigger(int appid);
|
||||||
~CModuleTrigger();
|
~CModuleTrigger();
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#include "application/linkage_server_api/CLinkageForHmiApi.h"
|
#include "application/linkage_server_api/CLinkageForHmiApi.h"
|
||||||
#include "CLinkageForHmiApiImpl.h"
|
#include "CLinkageForHmiApiImpl.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
CLinkageForHmiApi::CLinkageForHmiApi(int appid)
|
CLinkageForHmiApi::CLinkageForHmiApi(int appid)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -4,10 +4,10 @@
|
|||||||
|
|
||||||
#include "CLinkageForHmiApiImpl.h"
|
#include "CLinkageForHmiApiImpl.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
using namespace iot_idl::linkage;
|
using namespace iot_idl::linkage;
|
||||||
|
|
||||||
iot_application::CLinkageForHmiApiImpl::CLinkageForHmiApiImpl(
|
iot_app::CLinkageForHmiApiImpl::CLinkageForHmiApiImpl(
|
||||||
int appid,
|
int appid,
|
||||||
CLinkageForHmiApi* api) :
|
CLinkageForHmiApi* api) :
|
||||||
CTimerThreadBase("CLinkageForHmiApiImpl thread", 50),
|
CTimerThreadBase("CLinkageForHmiApiImpl thread", 50),
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
#include "net/net_msg_bus_api/CMbCommunicator.h"
|
#include "net/net_msg_bus_api/CMbCommunicator.h"
|
||||||
#include "application/linkage_server_api/CLinkageForHmiApi.h"
|
#include "application/linkage_server_api/CLinkageForHmiApi.h"
|
||||||
|
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
using namespace iot_idl::linkage;
|
using namespace iot_idl::linkage;
|
||||||
|
|
||||||
class CLinkageForHmiApiImpl
|
class CLinkageForHmiApiImpl
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include "CLinkageForServerApiImpl.h"
|
#include "CLinkageForServerApiImpl.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
using namespace iot_idl::linkage;
|
using namespace iot_idl::linkage;
|
||||||
|
|
||||||
CLinkageForServerApi::CLinkageForServerApi(int appid)
|
CLinkageForServerApi::CLinkageForServerApi(int appid)
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include "CLinkageForServerApiImpl.h"
|
#include "CLinkageForServerApiImpl.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
using namespace iot_idl::linkage;
|
using namespace iot_idl::linkage;
|
||||||
|
|
||||||
CLinkageForServerApiImpl::CLinkageForServerApiImpl(
|
CLinkageForServerApiImpl::CLinkageForServerApiImpl(
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
#include "application/linkage_server_api/CLinkageForServerApi.h"
|
#include "application/linkage_server_api/CLinkageForServerApi.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
using namespace iot_idl::linkage;
|
using namespace iot_idl::linkage;
|
||||||
class CLinkageForServerApiImpl
|
class CLinkageForServerApiImpl
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include "QTtsEngineIflytek.h"
|
#include "QTtsEngineIflytek.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
QTtsEngineIflytek::QTtsEngineIflytek( const QVariantMap &mapPara, QObject *pParent ) :
|
QTtsEngineIflytek::QTtsEngineIflytek( const QVariantMap &mapPara, QObject *pParent ) :
|
||||||
@ -193,4 +193,4 @@ void QTtsEngineIflytek::onNotSpeaking( int nStatusCode )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
#include "QTtsProcessorIflytek.h"
|
#include "QTtsProcessorIflytek.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
class QTtsEngineIflytek : public QTextToSpeechEngine
|
class QTtsEngineIflytek : public QTextToSpeechEngine
|
||||||
@ -64,4 +64,4 @@ private:
|
|||||||
QMultiMap<QString, QVoice> m_mapVoices;
|
QMultiMap<QString, QVoice> m_mapVoices;
|
||||||
};
|
};
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
#include "QTtsPluginIflytek.h"
|
#include "QTtsPluginIflytek.h"
|
||||||
#include "QTtsEngineIflytek.h"
|
#include "QTtsEngineIflytek.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
QTextToSpeechEngine *QTtsPluginIflytek::createTextToSpeechEngine(
|
QTextToSpeechEngine *QTtsPluginIflytek::createTextToSpeechEngine(
|
||||||
@ -25,4 +25,4 @@ QTextToSpeechEngine *QTtsPluginIflytek::createTextToSpeechEngine(
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
#include "qtexttospeechplugin.h"
|
#include "qtexttospeechplugin.h"
|
||||||
#include "qtexttospeechengine.h"
|
#include "qtexttospeechengine.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
class QTtsPluginIflytek : public QObject, public QTextToSpeechPlugin
|
class QTtsPluginIflytek : public QObject, public QTextToSpeechPlugin
|
||||||
@ -30,4 +30,4 @@ public:
|
|||||||
QObject *pParent, QString *pStrError ) const override;
|
QObject *pParent, QString *pStrError ) const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
#include "QTtsProcessor.h"
|
#include "QTtsProcessor.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
QTtsProcessor::QTtsProcessor() :
|
QTtsProcessor::QTtsProcessor() :
|
||||||
@ -275,4 +275,4 @@ void QTtsProcessor::audioStop( bool bAbort )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include "qvoice.h"
|
#include "qvoice.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
class QTtsProcessor : public QThread
|
class QTtsProcessor : public QThread
|
||||||
@ -92,4 +92,4 @@ private:
|
|||||||
QIODevice *m_pAudioBuffer;
|
QIODevice *m_pAudioBuffer;
|
||||||
};
|
};
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|||||||
@ -35,7 +35,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
QWeakPointer<QTtsProcessorIflytek> QTtsProcessorIflytek::m_ptrInstance;
|
QWeakPointer<QTtsProcessorIflytek> QTtsProcessorIflytek::m_ptrInstance;
|
||||||
@ -295,4 +295,4 @@ void QTtsProcessorIflytek::deinit()
|
|||||||
m_vecVoices.clear();
|
m_vecVoices.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include "QTtsProcessor.h"
|
#include "QTtsProcessor.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
class QTtsProcessorIflytek : public QTtsProcessor
|
class QTtsProcessorIflytek : public QTtsProcessor
|
||||||
@ -50,4 +50,4 @@ private:
|
|||||||
QVector<QString> m_vecSessParas;
|
QVector<QString> m_vecSessParas;
|
||||||
};
|
};
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
#include "RegFunc.h"
|
#include "RegFunc.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
//< 注意:私钥不能写在发布出去的代码中,不排除通过分析编译后的二进制文件可以获得
|
//< 注意:私钥不能写在发布出去的代码中,不排除通过分析编译后的二进制文件可以获得
|
||||||
@ -345,4 +345,4 @@ bool checkRegistration( const QString &strAppDirPath, QString &strAppId )
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
|
|
||||||
/**********************************************************************************
|
/**********************************************************************************
|
||||||
@ -24,4 +24,4 @@ namespace iot_application
|
|||||||
**********************************************************************************/
|
**********************************************************************************/
|
||||||
bool checkRegistration( const QString &strAppDirPath, QString &strAppId );
|
bool checkRegistration( const QString &strAppDirPath, QString &strAppId );
|
||||||
|
|
||||||
} //< namespace iot_application
|
} //< namespace iot_app
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
CMbCommunicateInfo::CMbCommunicateInfo(
|
CMbCommunicateInfo::CMbCommunicateInfo(
|
||||||
const iot_public::SRunAppInfo& appInfo)
|
const iot_public::SRunAppInfo& appInfo)
|
||||||
:iot_application::CSeqForServerApi(appInfo.nAppId),
|
:iot_app::CSeqForServerApi(appInfo.nAppId),
|
||||||
m_objActionAnalysis(appInfo),
|
m_objActionAnalysis(appInfo),
|
||||||
m_objHmiMsgAnalysis(appInfo),
|
m_objHmiMsgAnalysis(appInfo),
|
||||||
m_nDomain(appInfo.nDomainId)
|
m_nDomain(appInfo.nDomainId)
|
||||||
@ -28,7 +28,7 @@ bool CMbCommunicateInfo::sendActionToOpt(const CNodeAction& action)
|
|||||||
SOptCtrlRequest request;
|
SOptCtrlRequest request;
|
||||||
m_objActionAnalysis.ctreateSendMsg(request, action);
|
m_objActionAnalysis.ctreateSendMsg(request, action);
|
||||||
|
|
||||||
if (!iot_application::CSeqForServerApi::optCtrlRequest(request))
|
if (!iot_app::CSeqForServerApi::optCtrlRequest(request))
|
||||||
{
|
{
|
||||||
LOGERROR("发送OPT动作执行消息,失败!");
|
LOGERROR("发送OPT动作执行消息,失败!");
|
||||||
return false;
|
return false;
|
||||||
@ -52,7 +52,7 @@ bool CMbCommunicateInfo::nodeStatusToHmi(const CNodeSeq& seq)
|
|||||||
StatusChangeMessage msg
|
StatusChangeMessage msg
|
||||||
= m_objHmiMsgAnalysis.ctreateStatusChangeMessage(seq);
|
= m_objHmiMsgAnalysis.ctreateStatusChangeMessage(seq);
|
||||||
|
|
||||||
if (!iot_application::CSeqForServerApi::seqStateChange(msg))
|
if (!iot_app::CSeqForServerApi::seqStateChange(msg))
|
||||||
{
|
{
|
||||||
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
||||||
return false;
|
return false;
|
||||||
@ -78,7 +78,7 @@ bool CMbCommunicateInfo::nodeStatusToHmi(const CNodeFunc& func)
|
|||||||
StatusChangeMessage msg
|
StatusChangeMessage msg
|
||||||
= m_objHmiMsgAnalysis.ctreateStatusChangeMessage(func);
|
= m_objHmiMsgAnalysis.ctreateStatusChangeMessage(func);
|
||||||
|
|
||||||
if (!iot_application::CSeqForServerApi::seqStateChange(msg))
|
if (!iot_app::CSeqForServerApi::seqStateChange(msg))
|
||||||
{
|
{
|
||||||
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
||||||
return false;
|
return false;
|
||||||
@ -106,7 +106,7 @@ bool CMbCommunicateInfo::nodeStatusToHmi(const CNodeAction& action)
|
|||||||
StatusChangeMessage msg
|
StatusChangeMessage msg
|
||||||
= m_objHmiMsgAnalysis.ctreateStatusChangeMessage(action);
|
= m_objHmiMsgAnalysis.ctreateStatusChangeMessage(action);
|
||||||
|
|
||||||
if (!iot_application::CSeqForServerApi::seqStateChange(msg))
|
if (!iot_app::CSeqForServerApi::seqStateChange(msg))
|
||||||
{
|
{
|
||||||
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
||||||
return false;
|
return false;
|
||||||
@ -138,7 +138,7 @@ bool CMbCommunicateInfo::nodeStatusToHmi(
|
|||||||
action,
|
action,
|
||||||
erroInfo);
|
erroInfo);
|
||||||
|
|
||||||
if (!iot_application::CSeqForServerApi::seqStateChange(msg))
|
if (!iot_app::CSeqForServerApi::seqStateChange(msg))
|
||||||
{
|
{
|
||||||
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
||||||
return false;
|
return false;
|
||||||
@ -164,7 +164,7 @@ bool CMbCommunicateInfo::nodeAbnormalEndStatusToHmi(
|
|||||||
StatusChangeMessage msg
|
StatusChangeMessage msg
|
||||||
= m_objHmiMsgAnalysis.ctreateFailedStatusChangeMessage(seq, erroInfo);
|
= m_objHmiMsgAnalysis.ctreateFailedStatusChangeMessage(seq, erroInfo);
|
||||||
|
|
||||||
if (!iot_application::CSeqForServerApi::seqStateChange(msg))
|
if (!iot_app::CSeqForServerApi::seqStateChange(msg))
|
||||||
{
|
{
|
||||||
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
LOGERROR("发送状态变化,失败,%s!", log.c_str());
|
||||||
return false;
|
return false;
|
||||||
@ -182,7 +182,7 @@ bool CMbCommunicateInfo::sendUiRequest(
|
|||||||
= m_objHmiMsgAnalysis.ctreateUiRequestMessage(
|
= m_objHmiMsgAnalysis.ctreateUiRequestMessage(
|
||||||
action, erroInfo);
|
action, erroInfo);
|
||||||
|
|
||||||
if (!iot_application::CSeqForServerApi::userInterveneRequest(msg))
|
if (!iot_app::CSeqForServerApi::userInterveneRequest(msg))
|
||||||
{
|
{
|
||||||
LOGERROR("向HMI 发送 人工干预请求 动作: [%s]-[%s]-[%s] 失败!",
|
LOGERROR("向HMI 发送 人工干预请求 动作: [%s]-[%s]-[%s] 失败!",
|
||||||
action.getNodeSeq().description().c_str(),
|
action.getNodeSeq().description().c_str(),
|
||||||
@ -208,7 +208,7 @@ bool CMbCommunicateInfo::seqOperateResponse(
|
|||||||
= m_objHmiMsgAnalysis.ctreateSeqOperateResponseMessage(
|
= m_objHmiMsgAnalysis.ctreateSeqOperateResponseMessage(
|
||||||
pMsg, seq, erroInfo);
|
pMsg, seq, erroInfo);
|
||||||
|
|
||||||
if (!iot_application::CSeqForServerApi::seqOperateResponse(responseMsg))
|
if (!iot_app::CSeqForServerApi::seqOperateResponse(responseMsg))
|
||||||
{
|
{
|
||||||
LOGERROR("向HMI 发送 操作应答失败!");
|
LOGERROR("向HMI 发送 操作应答失败!");
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@ -20,7 +20,7 @@ class CRecoverNode;
|
|||||||
using namespace iot_idl::sequence;
|
using namespace iot_idl::sequence;
|
||||||
|
|
||||||
class CMbCommunicateInfo :
|
class CMbCommunicateInfo :
|
||||||
public iot_application::CSeqForServerApi
|
public iot_app::CSeqForServerApi
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CMbCommunicateInfo(const iot_public::SRunAppInfo& appInfo);
|
CMbCommunicateInfo(const iot_public::SRunAppInfo& appInfo);
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#include "application/sequence_server_api/CSeqForHmiApi.h"
|
#include "application/sequence_server_api/CSeqForHmiApi.h"
|
||||||
#include "CSeqForHmiApiImpl.h"
|
#include "CSeqForHmiApiImpl.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
using namespace iot_idl::sequence;
|
using namespace iot_idl::sequence;
|
||||||
CSeqForHmiApi::CSeqForHmiApi(int appid)
|
CSeqForHmiApi::CSeqForHmiApi(int appid)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -4,9 +4,9 @@
|
|||||||
|
|
||||||
#include "CSeqForHmiApiImpl.h"
|
#include "CSeqForHmiApiImpl.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
using namespace iot_idl::sequence;
|
using namespace iot_idl::sequence;
|
||||||
iot_application::CSeqForHmiApiImpl::CSeqForHmiApiImpl(
|
iot_app::CSeqForHmiApiImpl::CSeqForHmiApiImpl(
|
||||||
int appid,
|
int appid,
|
||||||
CSeqForHmiApi* api) :
|
CSeqForHmiApi* api) :
|
||||||
CTimerThreadBase("CSeqForHmiApiImpl thread", 50),
|
CTimerThreadBase("CSeqForHmiApiImpl thread", 50),
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
#include "net/net_msg_bus_api/CMbCommunicator.h"
|
#include "net/net_msg_bus_api/CMbCommunicator.h"
|
||||||
#include "application/sequence_server_api/CSeqForHmiApi.h"
|
#include "application/sequence_server_api/CSeqForHmiApi.h"
|
||||||
|
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
using namespace iot_idl::sequence;
|
using namespace iot_idl::sequence;
|
||||||
class CSeqForHmiApiImpl
|
class CSeqForHmiApiImpl
|
||||||
: public iot_public::CTimerThreadBase
|
: public iot_public::CTimerThreadBase
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include "CSeqForServerApiImpl.h"
|
#include "CSeqForServerApiImpl.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
using namespace iot_idl::sequence;
|
using namespace iot_idl::sequence;
|
||||||
|
|
||||||
CSeqForServerApi::CSeqForServerApi(int appid)
|
CSeqForServerApi::CSeqForServerApi(int appid)
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
#include "service/operate_server_api/JsonOptCommand.h"
|
#include "service/operate_server_api/JsonOptCommand.h"
|
||||||
#include "CSeqForServerApiImpl.h"
|
#include "CSeqForServerApiImpl.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
using namespace iot_idl::sequence;
|
using namespace iot_idl::sequence;
|
||||||
|
|
||||||
CSeqForServerApiImpl::CSeqForServerApiImpl(
|
CSeqForServerApiImpl::CSeqForServerApiImpl(
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
#include "application/sequence_server_api/CSeqForServerApi.h"
|
#include "application/sequence_server_api/CSeqForServerApi.h"
|
||||||
|
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
using namespace iot_idl::sequence;
|
using namespace iot_idl::sequence;
|
||||||
|
|
||||||
class CSeqForServerApiImpl
|
class CSeqForServerApiImpl
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
#include "CDotNode.h"
|
#include "CDotNode.h"
|
||||||
|
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
using namespace iot_service;
|
using namespace iot_service;
|
||||||
|
|
||||||
CDotNode::CDotNode(const STableInfo& tableInfo)
|
CDotNode::CDotNode(const STableInfo& tableInfo)
|
||||||
@ -93,7 +93,7 @@ void CDotNode::setValueEnable(bool isEnable)
|
|||||||
m_objDotInfo.dotValue.setValueEnable(isEnable);
|
m_objDotInfo.dotValue.setValueEnable(isEnable);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool iot_application::CDotNode::getValueEnable()
|
bool iot_app::CDotNode::getValueEnable()
|
||||||
{
|
{
|
||||||
return m_objDotInfo.dotValue.getValueEnable();
|
return m_objDotInfo.dotValue.getValueEnable();
|
||||||
}
|
}
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
#include "CDotValue.h"
|
#include "CDotValue.h"
|
||||||
#include "CQueryCtrl.h"
|
#include "CQueryCtrl.h"
|
||||||
|
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
|
|
||||||
class CDotNode :public CQueryCtrl
|
class CDotNode :public CQueryCtrl
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
#include "CDotTableMngr.h"
|
#include "CDotTableMngr.h"
|
||||||
#include "CTriggerNodeCondition.h"
|
#include "CTriggerNodeCondition.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
CDotTableMngr::CDotTableMngr()
|
CDotTableMngr::CDotTableMngr()
|
||||||
{
|
{
|
||||||
@ -18,7 +18,7 @@ CDotTableMngr::~CDotTableMngr()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CDotNode* iot_application::CDotTableMngr::findNode(const std::string& tag)
|
CDotNode* iot_app::CDotTableMngr::findNode(const std::string& tag)
|
||||||
{
|
{
|
||||||
std::map < std::string, CDotNode* >::iterator iter = m_mapDotTable.find(tag);
|
std::map < std::string, CDotNode* >::iterator iter = m_mapDotTable.find(tag);
|
||||||
if (iter != m_mapDotTable.end())
|
if (iter != m_mapDotTable.end())
|
||||||
@ -47,7 +47,7 @@ void CDotTableMngr::registerDot(DotValueMap& paramList)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool iot_application::CDotTableMngr::getDotValueList(
|
bool iot_app::CDotTableMngr::getDotValueList(
|
||||||
DotValueMap& paramList)
|
DotValueMap& paramList)
|
||||||
{
|
{
|
||||||
bool bRet = true;
|
bool bRet = true;
|
||||||
@ -80,7 +80,7 @@ bool iot_application::CDotTableMngr::getDotValueList(
|
|||||||
return bRet;
|
return bRet;
|
||||||
}
|
}
|
||||||
|
|
||||||
void iot_application::CDotTableMngr::resetDotTable()
|
void iot_app::CDotTableMngr::resetDotTable()
|
||||||
{
|
{
|
||||||
boost::mutex::scoped_lock lock(m_muDot);
|
boost::mutex::scoped_lock lock(m_muDot);
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ void iot_application::CDotTableMngr::resetDotTable()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void iot_application::CDotTableMngr::resetDotTableLowToGeneral()
|
void iot_app::CDotTableMngr::resetDotTableLowToGeneral()
|
||||||
{
|
{
|
||||||
boost::mutex::scoped_lock lock(m_muDot);
|
boost::mutex::scoped_lock lock(m_muDot);
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ void iot_application::CDotTableMngr::resetDotTableLowToGeneral()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void iot_application::CDotTableMngr::clearNode()
|
void iot_app::CDotTableMngr::clearNode()
|
||||||
{
|
{
|
||||||
CDotNode* pNode;
|
CDotNode* pNode;
|
||||||
DotTableMap::iterator iter = m_mapDotTable.begin();
|
DotTableMap::iterator iter = m_mapDotTable.begin();
|
||||||
|
|||||||
@ -16,7 +16,7 @@
|
|||||||
#include "CTagAnalysiser.h"
|
#include "CTagAnalysiser.h"
|
||||||
|
|
||||||
|
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
|
|
||||||
|
|
||||||
typedef std::map <std::string, CDotNode*> DotTableMap;
|
typedef std::map <std::string, CDotNode*> DotTableMap;
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#include "CDotValue.h"
|
#include "CDotValue.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
CDotValue::CDotValue() :
|
CDotValue::CDotValue() :
|
||||||
m_bIsInit(true),m_nPntType(0),m_isEnable(false)
|
m_bIsInit(true),m_nPntType(0),m_isEnable(false)
|
||||||
@ -34,18 +34,18 @@ CDotValue::~CDotValue()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
iot_application::CDotValue::CDotValue(int type)
|
iot_app::CDotValue::CDotValue(int type)
|
||||||
: m_bIsInit(true),m_nPntType(type),m_isEnable(false)
|
: m_bIsInit(true),m_nPntType(type),m_isEnable(false)
|
||||||
{
|
{
|
||||||
this->m_objValue = 0;
|
this->m_objValue = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool iot_application::CDotValue::isInitValue() const
|
bool iot_app::CDotValue::isInitValue() const
|
||||||
{
|
{
|
||||||
return m_bIsInit;
|
return m_bIsInit;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool iot_application::CDotValue::getValue(DotValueType& value)
|
bool iot_app::CDotValue::getValue(DotValueType& value)
|
||||||
{
|
{
|
||||||
if (m_bIsInit && !m_isEnable)
|
if (m_bIsInit && !m_isEnable)
|
||||||
{
|
{
|
||||||
@ -55,7 +55,7 @@ bool iot_application::CDotValue::getValue(DotValueType& value)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void iot_application::CDotValue::setValue(
|
void iot_app::CDotValue::setValue(
|
||||||
const DotValueType& value, bool isEnable)
|
const DotValueType& value, bool isEnable)
|
||||||
{
|
{
|
||||||
m_objValue = value;
|
m_objValue = value;
|
||||||
@ -63,27 +63,27 @@ void iot_application::CDotValue::setValue(
|
|||||||
m_isEnable = isEnable;
|
m_isEnable = isEnable;
|
||||||
}
|
}
|
||||||
|
|
||||||
void iot_application::CDotValue::setValueEnable(bool isEnable)
|
void iot_app::CDotValue::setValueEnable(bool isEnable)
|
||||||
{
|
{
|
||||||
m_bIsInit = !isEnable;
|
m_bIsInit = !isEnable;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool iot_application::CDotValue::getValueEnable()
|
bool iot_app::CDotValue::getValueEnable()
|
||||||
{
|
{
|
||||||
return m_isEnable;
|
return m_isEnable;
|
||||||
}
|
}
|
||||||
|
|
||||||
void iot_application::CDotValue::setDotType(int type)
|
void iot_app::CDotValue::setDotType(int type)
|
||||||
{
|
{
|
||||||
m_nPntType = type;
|
m_nPntType = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
int iot_application::CDotValue::getDotType()
|
int iot_app::CDotValue::getDotType()
|
||||||
{
|
{
|
||||||
return m_nPntType;
|
return m_nPntType;
|
||||||
}
|
}
|
||||||
|
|
||||||
const DotValueType& iot_application::CDotValue::getValue()
|
const DotValueType& iot_app::CDotValue::getValue()
|
||||||
{
|
{
|
||||||
return m_objValue;
|
return m_objValue;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
#include "DataType.h"
|
#include "DataType.h"
|
||||||
#include "pub_lua_engine_api/LuaEngineInterface.h"
|
#include "pub_lua_engine_api/LuaEngineInterface.h"
|
||||||
|
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
|
|
||||||
typedef iot_public::LuaVariantType DotValueType;
|
typedef iot_public::LuaVariantType DotValueType;
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#include "CQueryCtrl.h"
|
#include "CQueryCtrl.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
CQueryCtrl::CQueryCtrl()
|
CQueryCtrl::CQueryCtrl()
|
||||||
: m_nTally(0),m_ePriority(QUERY_PRIORITY_HIGHT)
|
: m_nTally(0),m_ePriority(QUERY_PRIORITY_HIGHT)
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
//查询控制
|
//查询控制
|
||||||
#include "TriggerCommonDefine.h"
|
#include "TriggerCommonDefine.h"
|
||||||
|
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
|
|
||||||
|
|
||||||
//查询优先级
|
//查询优先级
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
#include "CTriggerNodePeriod.h"
|
#include "CTriggerNodePeriod.h"
|
||||||
#include "CTriggerNodeTimer.h"
|
#include "CTriggerNodeTimer.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
CRdbAccessMngr::CRdbAccessMngr()
|
CRdbAccessMngr::CRdbAccessMngr()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#include "CTriggerNode.h"
|
#include "CTriggerNode.h"
|
||||||
|
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace iot_dbms;
|
using namespace iot_dbms;
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
#include "CTriggerNodePeriod.h"
|
#include "CTriggerNodePeriod.h"
|
||||||
#include "CTriggerNodeTimer.h"
|
#include "CTriggerNodeTimer.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
CRdbAccessMngrInterface::CRdbAccessMngrInterface()
|
CRdbAccessMngrInterface::CRdbAccessMngrInterface()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
#include "CTriggerNode.h"
|
#include "CTriggerNode.h"
|
||||||
|
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace iot_dbms;
|
using namespace iot_dbms;
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#include "CRdbNetBase.h"
|
#include "CRdbNetBase.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
CRdbNetBase::CRdbNetBase()
|
CRdbNetBase::CRdbNetBase()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include "rdb_net_api/CRdbNetApi.h"
|
#include "rdb_net_api/CRdbNetApi.h"
|
||||||
|
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
|
|
||||||
using namespace iot_dbms;
|
using namespace iot_dbms;
|
||||||
class CRdbNetBase
|
class CRdbNetBase
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#include "CRdbNetInterface.h"
|
#include "CRdbNetInterface.h"
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
CRdbNetInterface::CRdbNetInterface()
|
CRdbNetInterface::CRdbNetInterface()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#ifndef CRDBNETINTERFACE_H
|
#ifndef CRDBNETINTERFACE_H
|
||||||
#define CRDBNETINTERFACE_H
|
#define CRDBNETINTERFACE_H
|
||||||
#include "CRdbNetBase.h"
|
#include "CRdbNetBase.h"
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
class CRdbNetInterface : public CRdbNetBase
|
class CRdbNetInterface : public CRdbNetBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#include "CRdbNetMutex.h"
|
#include "CRdbNetMutex.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
CRdbNetMutex::CRdbNetMutex(
|
CRdbNetMutex::CRdbNetMutex(
|
||||||
CRdbNetBase* api, const std::string& tablename)
|
CRdbNetBase* api, const std::string& tablename)
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "CRdbNetBase.h"
|
#include "CRdbNetBase.h"
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
//远程查询接口锁
|
//远程查询接口锁
|
||||||
class CRdbNetMutex
|
class CRdbNetMutex
|
||||||
{
|
{
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
#include "CRdbNetInterface.h"
|
#include "CRdbNetInterface.h"
|
||||||
#include "pub_utility_api/TimeUtil.h"
|
#include "pub_utility_api/TimeUtil.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
CRdbNetThread::CRdbNetThread(
|
CRdbNetThread::CRdbNetThread(
|
||||||
CDotTableMngr& dotTable,
|
CDotTableMngr& dotTable,
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
#include "CDotTableMngr.h"
|
#include "CDotTableMngr.h"
|
||||||
#include "service/data_process_api/DataProcessApi.h"
|
#include "service/data_process_api/DataProcessApi.h"
|
||||||
|
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
|
|
||||||
using namespace iot_dbms;
|
using namespace iot_dbms;
|
||||||
using namespace iot_service;
|
using namespace iot_service;
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
#include "CTagAnalysiser.h"
|
#include "CTagAnalysiser.h"
|
||||||
#include "service/data_process_api/DataProcessApi.h"
|
#include "service/data_process_api/DataProcessApi.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
using namespace iot_service;
|
using namespace iot_service;
|
||||||
|
|
||||||
CTagAnalysiser::CTagAnalysiser()
|
CTagAnalysiser::CTagAnalysiser()
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
#include "TriggerCommonDefine.h"
|
#include "TriggerCommonDefine.h"
|
||||||
#include "pub_sysinfo_api/SysInfoApi.h"
|
#include "pub_sysinfo_api/SysInfoApi.h"
|
||||||
|
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
class CTagAnalysiser
|
class CTagAnalysiser
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#include "boost/core/ignore_unused.hpp"
|
#include "boost/core/ignore_unused.hpp"
|
||||||
#include "CTestRdbAccessMngr.h"
|
#include "CTestRdbAccessMngr.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
CTestRdbAccessMngr::CTestRdbAccessMngr()
|
CTestRdbAccessMngr::CTestRdbAccessMngr()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
#include "CRdbAccessMngr.h"
|
#include "CRdbAccessMngr.h"
|
||||||
|
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
#include "boost/core/ignore_unused.hpp"
|
#include "boost/core/ignore_unused.hpp"
|
||||||
#include "CTestRdbNet.h"
|
#include "CTestRdbNet.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
CTestRdbNet::CTestRdbNet()
|
CTestRdbNet::CTestRdbNet()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include "CRdbNetBase.h"
|
#include "CRdbNetBase.h"
|
||||||
|
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
class CTestRdbNet : public CRdbNetBase
|
class CTestRdbNet : public CRdbNetBase
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
#include "CTestRdbAccessMngr.h"
|
#include "CTestRdbAccessMngr.h"
|
||||||
#include "CTestRdbNet.h"
|
#include "CTestRdbNet.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
CTriggerApi::CTriggerApi(int appid)
|
CTriggerApi::CTriggerApi(int appid)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
#include "CTriggerNodeFactory.h"
|
#include "CTriggerNodeFactory.h"
|
||||||
#include "CRdbAccessMngrInterface.h"
|
#include "CRdbAccessMngrInterface.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
CTriggerApiImpl::CTriggerApiImpl(const STriggerInitParam& param)
|
CTriggerApiImpl::CTriggerApiImpl(const STriggerInitParam& param)
|
||||||
:CTimerThreadBase("CTriggerApiImpl thread", 500),
|
:CTimerThreadBase("CTriggerApiImpl thread", 500),
|
||||||
|
|||||||
@ -15,7 +15,7 @@
|
|||||||
#include "CDotTableMngr.h"
|
#include "CDotTableMngr.h"
|
||||||
#include "CRdbNetThread.h"
|
#include "CRdbNetThread.h"
|
||||||
|
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
|
|
||||||
struct STriggerInitParam
|
struct STriggerInitParam
|
||||||
{
|
{
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
#include "CTriggerNode.h"
|
#include "CTriggerNode.h"
|
||||||
#include "CRdbAccessMngr.h"
|
#include "CRdbAccessMngr.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
CTriggerNode::CTriggerNode(const CTriggerPara* param)
|
CTriggerNode::CTriggerNode(const CTriggerPara* param)
|
||||||
:m_ptrParam(param),
|
:m_ptrParam(param),
|
||||||
@ -31,7 +31,7 @@ uint64 CTriggerNode::getLastTgRealExeTime(uint64 curExeTime, uint64 curElapseTim
|
|||||||
return curExeTime - (curElapseTime - m_nLastTgElapseTime);
|
return curExeTime - (curElapseTime - m_nLastTgElapseTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint64 iot_application::CTriggerNode::getLastTgExeTime()
|
uint64 iot_app::CTriggerNode::getLastTgExeTime()
|
||||||
{
|
{
|
||||||
return m_nLastExeTime;
|
return m_nLastExeTime;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
#include "application/trigger_api/CTriggerPara.h"
|
#include "application/trigger_api/CTriggerPara.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
class CRdbAccessMngr;
|
class CRdbAccessMngr;
|
||||||
class CTriggerNode
|
class CTriggerNode
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
#include "CRdbAccessMngr.h"
|
#include "CRdbAccessMngr.h"
|
||||||
#include "CDotTableMngr.h"
|
#include "CDotTableMngr.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
CTriggerNodeCondition::CTriggerNodeCondition(
|
CTriggerNodeCondition::CTriggerNodeCondition(
|
||||||
const CTriggerPara* param,
|
const CTriggerPara* param,
|
||||||
@ -36,7 +36,7 @@ bool CTriggerNodeCondition::initConfig(CRdbAccessMngr* access)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool iot_application::CTriggerNodeCondition::checkTrigger(uint64 exeTime)
|
bool iot_app::CTriggerNodeCondition::checkTrigger(uint64 exeTime)
|
||||||
{
|
{
|
||||||
//值如果没有完全赋值,则不触发
|
//值如果没有完全赋值,则不触发
|
||||||
BOOST_ASSERT(m_ptrDotTable);
|
BOOST_ASSERT(m_ptrDotTable);
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
#include "CDotValue.h"
|
#include "CDotValue.h"
|
||||||
#include "CDotTableMngr.h"
|
#include "CDotTableMngr.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
class CRdbAccessMngr;
|
class CRdbAccessMngr;
|
||||||
class CDotTableMngr;
|
class CDotTableMngr;
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
#include "CTriggerNodePeriod.h"
|
#include "CTriggerNodePeriod.h"
|
||||||
#include "CTriggerNodeCondition.h"
|
#include "CTriggerNodeCondition.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
CTriggerNodeFactory::CTriggerNodeFactory()
|
CTriggerNodeFactory::CTriggerNodeFactory()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
#include "CTriggerNode.h"
|
#include "CTriggerNode.h"
|
||||||
#include "application/trigger_api/CTriggerPara.h"
|
#include "application/trigger_api/CTriggerPara.h"
|
||||||
|
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
class CDotTableMngr;
|
class CDotTableMngr;
|
||||||
class CTriggerNodeFactory
|
class CTriggerNodeFactory
|
||||||
{
|
{
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
#include "CTriggerNodePeriod.h"
|
#include "CTriggerNodePeriod.h"
|
||||||
#include "CRdbAccessMngr.h"
|
#include "CRdbAccessMngr.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
CTriggerNodePeriod::CTriggerNodePeriod(const CTriggerPara* param)
|
CTriggerNodePeriod::CTriggerNodePeriod(const CTriggerPara* param)
|
||||||
:CTriggerNode(param)
|
:CTriggerNode(param)
|
||||||
@ -17,7 +17,7 @@ CTriggerNodePeriod::~CTriggerNodePeriod()
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
bool iot_application::CTriggerNodePeriod::initConfig(CRdbAccessMngr* access)
|
bool iot_app::CTriggerNodePeriod::initConfig(CRdbAccessMngr* access)
|
||||||
{
|
{
|
||||||
if (!access->queryPeriodConfig(
|
if (!access->queryPeriodConfig(
|
||||||
m_objDefine,
|
m_objDefine,
|
||||||
@ -45,7 +45,7 @@ bool iot_application::CTriggerNodePeriod::initConfig(CRdbAccessMngr* access)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool iot_application::CTriggerNodePeriod::checkTrigger(uint64 exeTime)
|
bool iot_app::CTriggerNodePeriod::checkTrigger(uint64 exeTime)
|
||||||
{
|
{
|
||||||
if (!timeLimit(exeTime))
|
if (!timeLimit(exeTime))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
#include "CTriggerNode.h"
|
#include "CTriggerNode.h"
|
||||||
|
|
||||||
|
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
class CRdbAccessMngr;
|
class CRdbAccessMngr;
|
||||||
|
|
||||||
class CTriggerNodePeriod : public CTriggerNode
|
class CTriggerNodePeriod : public CTriggerNode
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
#include "CTriggerNodeTimer.h"
|
#include "CTriggerNodeTimer.h"
|
||||||
#include "CRdbAccessMngr.h"
|
#include "CRdbAccessMngr.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
CTriggerNodeTimer::CTriggerNodeTimer(const iot_application::CTriggerPara* param)
|
CTriggerNodeTimer::CTriggerNodeTimer(const iot_app::CTriggerPara* param)
|
||||||
:CTriggerNode(param)
|
:CTriggerNode(param)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
@ -19,7 +19,7 @@ bool CTriggerNodeTimer::initConfig(CRdbAccessMngr* access)
|
|||||||
getTriggerName());
|
getTriggerName());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool iot_application::CTriggerNodeTimer::checkTrigger(uint64 exeTime)
|
bool iot_app::CTriggerNodeTimer::checkTrigger(uint64 exeTime)
|
||||||
{
|
{
|
||||||
if (exeTime == m_objDefine.trigger_time)
|
if (exeTime == m_objDefine.trigger_time)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
#include "TriggerCommonDefine.h"
|
#include "TriggerCommonDefine.h"
|
||||||
#include "CTriggerNode.h"
|
#include "CTriggerNode.h"
|
||||||
|
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
class CRdbAccessMngr;
|
class CRdbAccessMngr;
|
||||||
class CTriggerNodeTimer :public CTriggerNode
|
class CTriggerNodeTimer :public CTriggerNode
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
#include "application/trigger_api/CTriggerPara.h"
|
#include "application/trigger_api/CTriggerPara.h"
|
||||||
|
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
CTriggerPara::CTriggerPara(
|
CTriggerPara::CTriggerPara(
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
#include "DataType.h"
|
#include "DataType.h"
|
||||||
|
|
||||||
|
|
||||||
namespace iot_application {
|
namespace iot_app {
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
const std::string CN_TN_CCTVCameraInfo = "cctv_camera_info";
|
const std::string CN_TN_CCTVCameraInfo = "cctv_camera_info";
|
||||||
const std::string CAMERA_TAG_NAME = "tag_name";
|
const std::string CAMERA_TAG_NAME = "tag_name";
|
||||||
@ -44,5 +44,5 @@ namespace iot_application
|
|||||||
nCameraPort = -1;
|
nCameraPort = -1;
|
||||||
}
|
}
|
||||||
}STableCameraInfo,*PSTableCameraInfo;
|
}STableCameraInfo,*PSTableCameraInfo;
|
||||||
} //namespace iot_application
|
} //namespace iot_app
|
||||||
#endif // VIDEOCAMERATABLE_H
|
#endif // VIDEOCAMERATABLE_H
|
||||||
|
|||||||
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include "common/DataType.h"
|
#include "common/DataType.h"
|
||||||
#include "string"
|
#include "string"
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
const std::string CN_ProcName_VideoServer="video_server";//当前进程名
|
const std::string CN_ProcName_VideoServer="video_server";//当前进程名
|
||||||
const std::string Rtu_Name = "##$$video_server$$##";
|
const std::string Rtu_Name = "##$$video_server$$##";
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
using namespace iot_public;
|
using namespace iot_public;
|
||||||
using namespace iot_net;
|
using namespace iot_net;
|
||||||
using namespace iot_application;
|
using namespace iot_app;
|
||||||
|
|
||||||
VideoMsgBusMng::VideoMsgBusMng(const iot_public::SRunAppInfo &stRunAppInfo)
|
VideoMsgBusMng::VideoMsgBusMng(const iot_public::SRunAppInfo &stRunAppInfo)
|
||||||
:m_stRunAppInfo(stRunAppInfo)
|
:m_stRunAppInfo(stRunAppInfo)
|
||||||
|
|||||||
@ -5,7 +5,7 @@
|
|||||||
#include "net_msg_bus_api/CMbCommunicator.h"
|
#include "net_msg_bus_api/CMbCommunicator.h"
|
||||||
#include "common/MessageChannel.h"
|
#include "common/MessageChannel.h"
|
||||||
|
|
||||||
namespace iot_application
|
namespace iot_app
|
||||||
{
|
{
|
||||||
class VideoMsgBusMng
|
class VideoMsgBusMng
|
||||||
{
|
{
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user