Initial commit
This commit is contained in:
commit
b7d90b9afe
16245 files changed
+3396666
No files matched your search
Executable
+44
@@ -0,0 +1,44 @@
|
||||
/**
|
||||
* Convert internal gear and charge id to and from tas ids
|
||||
* $Id$
|
||||
* $HeadURL$
|
||||
* $Author$
|
||||
* Created by Christian Ehrlicher, SLSE, 2016-04-14
|
||||
*/
|
||||
|
||||
#include "relay_info_handler.h"
|
||||
#include "main_handler.h"
|
||||
|
||||
namespace Buildings
|
||||
{
|
||||
RelayInfoHandler::RelayInfoHandler(MainHandler *mainHandler)
|
||||
: QObject()
|
||||
, Interface::Fts::SetRelayInfoRequestHandler(mainHandler->ddsHandler()->fts())
|
||||
, m_mainHandler(mainHandler)
|
||||
, m_logger(getLogger("RelayInfoHandler"))
|
||||
{}
|
||||
|
||||
RelayInfoHandler::~RelayInfoHandler()
|
||||
{}
|
||||
|
||||
bool RelayInfoHandler::init()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
void RelayInfoHandler::onSetRelayInfoRequest(const rti::core::SampleIdentity &cookie,
|
||||
const SetRelayInfoRequest &request)
|
||||
{
|
||||
DEBUG_LOG(m_logger) << "onSetRelayInfoRequest " << request;
|
||||
const Core::FunctionReplyObject fro = onSetRelayInfoRequestInternal(request);
|
||||
if (fro.error())
|
||||
WARNING_LOG(m_logger) << fro();
|
||||
m_mainHandler->ddsHandler()->fts()->setRelayInfoReply(cookie, fro);
|
||||
}
|
||||
|
||||
Core::FunctionReplyObject RelayInfoHandler::onSetRelayInfoRequestInternal(const SetRelayInfoRequest &data)
|
||||
{
|
||||
Q_UNUSED(data);
|
||||
return Core::FunctionReplyObject();
|
||||
}
|
||||
} // namespace Buildings
|
||||
Reference in new issue
Block a user