Another abandoned server code base... this is kind of an ancestor of taskrambler.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

125 lines
1.2 KiB

// Terminal class source file.
#include "Terminal.hpp"
#include "Msg.hpp"
void Terminal::SendMessage(Msg *pMsg)
{
//...
}
Terminal::Terminal()
{
terminalId = UNKNOWN;
terminalType = UNKNOWN;
terminalStatus = UNKNOWN;
}
Terminal::~Terminal()
{
//...
}
int Terminal::HandleRunDiagnostics(const RunDiagnosticsMsg *pMsg)
{
int status = 1;
//...
return status;
}
int Terminal::HandleOutOfService()
{
int status = 1;
terminalStatus = OUT_OF_SERVICE;
//...
return status;
}
int Terminal::HandleInService()
{
int status = 1;
terminalStatus = INSERVICE;
//...
return status;
}
void Terminal::Activate(const TerminalCreateMsg *pMsg)
{
terminalId = pMsg->GetTerminalId();
terminalType = pMsg->GetTerminalType();
terminalStatus = pMsg->GetTerminalStatus();
//...
TerminalCreateAck *pAck = new TerminalCreateAck(terminalId, terminalStatus);
SendMessage(pAck);
}
void Terminal::Deactivate(const TerminalDeleteMsg *pMsg)
{
//...
terminalId = UNKNOWN;
terminalType = UNKNOWN;
terminalStatus = UNKNOWN;
//...
}