#include "StdAfx.h" #include "tcs.h" #include "PCOcameraDlg.h" #include ".\TCScomI.h" #include "PCOcomm.h" using namespace tcs; using namespace std; TCScomI::TCScomI(CPCOcomm *pCore) { m_pPCOcomm=pCore; } bool TCScomI::SendCommand(const std::string& command, const Ice::Current& ctx) { return true; } // for this call we call InfRequestParser from HQCore and process return values void TCScomI::RequestInformation(const std::string& request, std::string& information, const Ice::Current& ctx) { if(m_pPCOcomm->InfRequestParser(request, information) == -1) { USES_CONVERSION; tcs::Error e; CString reason; m_pPCOcomm->GetLastError(reason); e.reason=W2A(reason.GetString()); // reason=e.reason; throw e; return; } } void TCScomI::SendError(const std::string& error, const ::Ice::Current& ctx) { // m_pPCOcomm->ErrorMessageParser(error); } void TCScomI::SendNotification(const std::string& notification, const ::Ice::Current& ctx) { m_pPCOcomm->NotificationMessageParser(notification); } void TCScomI::SendReply(const std::string& reply, const ::Ice::Current& ctx) { // m_pPCOcomm->ReplyMessageParser(reply); } void TCScomI::Register(const std::string& systemName, const ::Ice::Current& ctx) { m_pPCOcomm->OnRegister(systemName); } void TCScomI::Unregister(const std::string& systemName, const ::Ice::Current& ctx) { m_pPCOcomm->OnUnRegister(systemName); }