Commit 966854d8 authored by djk032's avatar djk032

added wrapper for tcp control client

parent 7364d741
#include "Control.h"
using namespace CLA;
/* wrapper for tcp client */
Control::Control(std::shared_ptr<CLA::LOGGER>& logger, const string& topic, const
string& type) : m_logger(logger), m_tcp_control_client(logger, topic, type) {
m_tcp_control_client.setup_connection(); /* connection setup to server via tcp socket */
}
void Control::publish_control_message (const string& data) {
m_tcp_control_client.publish_control_message(data);
}
Control::~Control() {
}
#ifndef Control_H_
#define Control_H_
#include "tcp_control_client.h"
namespace CLA {
class Control {
/* wrapper for control tcp client */
private:
CLA::tcp_control_client m_tcp_control_client;
std::shared_ptr<CLA::LOGGER> m_logger;
public:
Control( std::shared_ptr<CLA::LOGGER>&);
Control( std::shared_ptr<CLA::LOGGER>&, const string&, const string&);
~Control();
void publish_control_message(const string&);
};
}
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment