Loading Common/Servers/ExternalClients/include/ExternalClientsSocketServer.h +7 −1 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ #include <AntennaBossC.h> #include <ReceiversBossC.h> #include <MountC.h> #include <LogDike.h> #define BUFFERSIZE 1000 #define GAVINO "MANAGEMENT/Gavino" Loading Loading @@ -96,6 +97,11 @@ public: void byebye() {m_byebye=true;}; private: /** * Log filtering object */ IRA::CLogDike m_logDike; ContainerServices* m_services; /** It contains error information */ Loading Common/Servers/ExternalClients/src/ExternalClientsSocketServer.cpp +27 −15 Original line number Diff line number Diff line Loading @@ -17,8 +17,7 @@ using namespace ComponentErrors; using namespace ManagementErrors; CExternalClientsSocketServer::CExternalClientsSocketServer (ContainerServices * service):CSocket (), m_services (service) m_services (service), m_logDike(_IRA_LOGDIKE_GETLOGGER) { AUTO_TRACE ("CExternalClientsSocketServer::CExternalClientsSocketServer()"); setExternalClientSocketStatus (ExternalClientSocketStatus_NOTCNTD); Loading Loading @@ -308,7 +307,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); status_val = "NA"; } out.Concat (status_val); Loading @@ -322,7 +322,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); target = "NA"; } out.Concat (target); Loading Loading @@ -350,7 +351,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); azStr = "NA"; elStr = "NA"; raStr = "NA"; Loading Loading @@ -385,7 +387,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); azErr = 0.0; } out.Concat (azErr); Loading @@ -399,7 +402,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); elErr = 0.0; } out.Concat (elErr); Loading @@ -413,7 +417,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); pointingAzCorr = 0.0; } out.Concat (pointingAzCorr); Loading @@ -428,7 +433,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); pointingElCorr = 0.0; } out.Concat (pointingElCorr); Loading @@ -442,7 +448,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); refractionCorr = 0.0; } out.Concat (refractionCorr); Loading @@ -456,7 +463,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); azOff = 0.0; elOff = 0.0; raOff = 0.0; Loading Loading @@ -485,7 +493,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); receiver = "NA"; } out.Concat (receiver); Loading @@ -500,7 +509,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); lo[0] = 0.0; } out.Concat (lo[0]); Loading @@ -522,7 +532,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); trackingStr = "NA"; } out.Concat (trackingStr); Loading @@ -549,7 +560,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); ret_val = "Unexpected Error"; out = IRA::CString (ret_val); } Loading Loading
Common/Servers/ExternalClients/include/ExternalClientsSocketServer.h +7 −1 Original line number Diff line number Diff line Loading @@ -20,6 +20,7 @@ #include <AntennaBossC.h> #include <ReceiversBossC.h> #include <MountC.h> #include <LogDike.h> #define BUFFERSIZE 1000 #define GAVINO "MANAGEMENT/Gavino" Loading Loading @@ -96,6 +97,11 @@ public: void byebye() {m_byebye=true;}; private: /** * Log filtering object */ IRA::CLogDike m_logDike; ContainerServices* m_services; /** It contains error information */ Loading
Common/Servers/ExternalClients/src/ExternalClientsSocketServer.cpp +27 −15 Original line number Diff line number Diff line Loading @@ -17,8 +17,7 @@ using namespace ComponentErrors; using namespace ManagementErrors; CExternalClientsSocketServer::CExternalClientsSocketServer (ContainerServices * service):CSocket (), m_services (service) m_services (service), m_logDike(_IRA_LOGDIKE_GETLOGGER) { AUTO_TRACE ("CExternalClientsSocketServer::CExternalClientsSocketServer()"); setExternalClientSocketStatus (ExternalClientSocketStatus_NOTCNTD); Loading Loading @@ -308,7 +307,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); status_val = "NA"; } out.Concat (status_val); Loading @@ -322,7 +322,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); target = "NA"; } out.Concat (target); Loading Loading @@ -350,7 +351,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); azStr = "NA"; elStr = "NA"; raStr = "NA"; Loading Loading @@ -385,7 +387,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); azErr = 0.0; } out.Concat (azErr); Loading @@ -399,7 +402,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); elErr = 0.0; } out.Concat (elErr); Loading @@ -413,7 +417,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); pointingAzCorr = 0.0; } out.Concat (pointingAzCorr); Loading @@ -428,7 +433,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); pointingElCorr = 0.0; } out.Concat (pointingElCorr); Loading @@ -442,7 +448,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); refractionCorr = 0.0; } out.Concat (refractionCorr); Loading @@ -456,7 +463,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); azOff = 0.0; elOff = 0.0; raOff = 0.0; Loading Loading @@ -485,7 +493,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); receiver = "NA"; } out.Concat (receiver); Loading @@ -500,7 +509,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); lo[0] = 0.0; } out.Concat (lo[0]); Loading @@ -522,7 +532,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); trackingStr = "NA"; } out.Concat (trackingStr); Loading @@ -549,7 +560,8 @@ CExternalClientsSocketServer::cmdToScheduler () { _EXCPT (ComponentErrors::UnexpectedExImpl, impl, "CExternalClientsSocketServer::cmdToScheduler()"); impl.log (LM_ERROR); _IRA_LOGDIKE_EXCEPTION(m_logDike,impl,LM_ERROR); //impl.log (LM_ERROR); ret_val = "Unexpected Error"; out = IRA::CString (ret_val); } Loading