Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MQTTConnection Class Reference

#include <rcdaq/blob/master/MQTTConnection.h>

+ Collaboration diagram for MQTTConnection:

Public Member Functions

 MQTTConnection (const std::string hostname, const std::string topic, const int port=1883)
 
virtual ~MQTTConnection ()
 
virtual int Status () const
 
virtual std::string GetHostName () const
 
virtual int GetPort () const
 
virtual int send (const std::string message)
 

Protected Member Functions

int OpenConnection ()
 
int CloseConnection ()
 

Protected Attributes

std::string _hostname
 
std::string _topic
 
int _status
 
int _port
 
struct mosquitto * mosq
 

Detailed Description

Definition at line 8 of file MQTTConnection.h.

View newest version in sPHENIX GitHub at line 8 of file MQTTConnection.h

Constructor & Destructor Documentation

MQTTConnection::MQTTConnection ( const std::string  hostname,
const std::string  topic,
const int  port = 1883 
)

Definition at line 10 of file MQTTConnection.cc.

View newest version in sPHENIX GitHub at line 10 of file MQTTConnection.cc

MQTTConnection::~MQTTConnection ( )
virtual

Definition at line 54 of file MQTTConnection.cc.

View newest version in sPHENIX GitHub at line 54 of file MQTTConnection.cc

Member Function Documentation

int MQTTConnection::CloseConnection ( )
protected

Definition at line 78 of file MQTTConnection.cc.

View newest version in sPHENIX GitHub at line 78 of file MQTTConnection.cc

virtual std::string MQTTConnection::GetHostName ( ) const
inlinevirtual

Definition at line 16 of file MQTTConnection.h.

View newest version in sPHENIX GitHub at line 16 of file MQTTConnection.h

References _hostname.

virtual int MQTTConnection::GetPort ( ) const
inlinevirtual

Definition at line 17 of file MQTTConnection.h.

View newest version in sPHENIX GitHub at line 17 of file MQTTConnection.h

References _port.

int MQTTConnection::OpenConnection ( )
protected

Definition at line 62 of file MQTTConnection.cc.

View newest version in sPHENIX GitHub at line 62 of file MQTTConnection.cc

int MQTTConnection::send ( const std::string  message)
virtual

Definition at line 35 of file MQTTConnection.cc.

View newest version in sPHENIX GitHub at line 35 of file MQTTConnection.cc

References physmon_simulation::s.

virtual int MQTTConnection::Status ( ) const
inlinevirtual

Definition at line 15 of file MQTTConnection.h.

View newest version in sPHENIX GitHub at line 15 of file MQTTConnection.h

References _status.

Member Data Documentation

std::string MQTTConnection::_hostname
protected

Definition at line 26 of file MQTTConnection.h.

View newest version in sPHENIX GitHub at line 26 of file MQTTConnection.h

Referenced by GetHostName().

int MQTTConnection::_port
protected

Definition at line 29 of file MQTTConnection.h.

View newest version in sPHENIX GitHub at line 29 of file MQTTConnection.h

Referenced by GetPort().

int MQTTConnection::_status
protected

Definition at line 28 of file MQTTConnection.h.

View newest version in sPHENIX GitHub at line 28 of file MQTTConnection.h

Referenced by Status().

std::string MQTTConnection::_topic
protected

Definition at line 27 of file MQTTConnection.h.

View newest version in sPHENIX GitHub at line 27 of file MQTTConnection.h

struct mosquitto* MQTTConnection::mosq
protected

Definition at line 31 of file MQTTConnection.h.

View newest version in sPHENIX GitHub at line 31 of file MQTTConnection.h


The documentation for this class was generated from the following files: