1 #ifndef SIMPT_PAREX_PROTOCOL_H_
2 #define SIMPT_PAREX_PROTOCOL_H_
23 #include <boost/property_tree/ptree_fwd.hpp>
68 void Error(
const std::string &error);
72 void SendPtree(
const boost::property_tree::ptree& pt);
75 virtual void ReceivePtree(
const boost::property_tree::ptree& pt) = 0;
78 std::string GetClientIP()
const;
81 int GetClientPort()
const ;
85 void Receive(
const QByteArray& message);
93 #endif // end-of-include-guard
Protocol(QTcpSocket *socket, QObject *parent=nullptr)
Constructor.
Base class for the XML/ptree protocols between client, server and node.
void Error(const std::string &error)
Signal emitted when an error occured.
void SendPtree(const boost::property_tree::ptree &pt)
Sends a ptree over the connection.
void Ended()
Signal emitted when the protocol has ended and the connection is closed.
Class managing a TCP stream of messages.
virtual ~Protocol()
Destructor.
Class for storing server info used on client-side.
virtual void ReceivePtree(const boost::property_tree::ptree &pt)=0
Method called when a ptree was received over the connection.
Namespace for SimPT parameter explorer package.
bool IsConnected()
Check if still connected.
see the online Qt documentation