TwiceAsNice
2019-02-18
|
This is the main class which provides functions to send and receave strings from and to the WutWebThermograph. More...
#include <WutWebThermograph.h>
Public Member Functions | |
WutThermo (std::string host, int port, std::string password) | |
Constructor for the WutThermo_class. More... | |
virtual | ~WutThermo () |
const WutThermo & | operator<< (const std::string &) const |
"<<" operator sends a string to the socket connection. More... | |
const WutThermo & | operator>> (std::string &) const |
">>" operator receives the response (string) from the socket connection. More... | |
std::string | readSensor (int sensor) |
readSensor combines all the functions provided to read out the temperature of a specific sensor More... | |
std::string | readSensor (void) |
readSensor combines all the functions provided to read out the temperature of all sensors More... | |
std::string | readSensorCSV (void) |
readSensorCSV combines all the functions provided to read out the Thermo.csv file from the W&T Web Thermograph 8x More... | |
WutThermo (std::string host, int port, std::string password) | |
Constructor for the WutThermo_class. More... | |
virtual | ~WutThermo () |
const WutThermo & | operator<< (const std::string &) const |
"<<" operator sends a string to the socket connection. More... | |
const WutThermo & | operator>> (std::string &) const |
">>" operator receives the response (string) from the socket connection. More... | |
std::string | readSensor (int sensor) |
readSensor combines all the functions provided to read out the temperature of a specific sensor More... | |
std::string | readSensor (void) |
readSensor combines all the functions provided to read out the temperature of all sensors More... | |
std::string | readSensorCSV (void) |
readSensorCSV combines all the functions provided to read out the Thermo.csv file from the W&T Web Thermograph 8x More... | |
Private Member Functions | |
void | getSingle (int sensor) |
getSingle is used to call for the temperature of a specific sensor More... | |
void | getAll (void) |
getAll is used to call for the temperature of all sensors at once More... | |
void | getCSV (void) |
getCSV is used to call for the temperatures of all sensors in a .csv file More... | |
void | shortSingle (std::string &) |
shortSingle is used to shorten the string for getting the temperature from a single sensor without the extra information like IP-Address and the name of the Web Thermograph. More... | |
void | shortAll (std::string &) |
shortAll is used to shorten the string for getting the temperature from all sensors without the extra information like IP-Address and the name of the Web Thermograph. More... | |
void | getSingle (int sensor) |
getSingle is used to call for the temperature of a specific sensor More... | |
void | getAll (void) |
getAll is used to call for the temperature of all sensors at once More... | |
void | getCSV (void) |
getCSV is used to call for the temperatures of all sensors in a .csv file More... | |
void | shortSingle (std::string &) |
shortSingle is used to shorten the string for getting the temperature from a single sensor without the extra information like IP-Address and the name of the Web Thermograph. More... | |
void | shortAll (std::string &) |
shortAll is used to shorten the string for getting the temperature from all sensors without the extra information like IP-Address and the name of the Web Thermograph. More... | |
![]() | |
WutSocket () | |
virtual | ~WutSocket () |
virtual bool | create () |
bool | bind (const uint16_t port) |
bool | listen () const |
bool | accept (WutSocket &) const |
virtual bool | connect (const std::string host, const uint16_t port) |
virtual bool | connectWithTimeout (const std::string host, uint16_t port, unsigned timeoutInMicroSeconds) |
virtual bool | send (const std::string) const |
virtual int | recv (std::string &) const |
virtual bool | setReceiveTimeout (unsigned timeoutInMicroSeconds) |
virtual bool | setSendTimeout (unsigned timeoutInMicroSeconds) |
void | set_non_blocking (const bool) |
bool | is_valid () const |
WutSocket () | |
virtual | ~WutSocket () |
virtual bool | create () |
bool | bind (const uint16_t port) |
bool | listen () const |
bool | accept (WutSocket &) const |
virtual bool | connect (const std::string host, const uint16_t port) |
virtual bool | connectWithTimeout (const std::string host, uint16_t port, unsigned timeoutInMicroSeconds) |
virtual bool | send (const std::string) const |
virtual int | recv (std::string &) const |
virtual bool | setReceiveTimeout (unsigned timeoutInMicroSeconds) |
virtual bool | setSendTimeout (unsigned timeoutInMicroSeconds) |
void | set_non_blocking (const bool) |
bool | is_valid () const |
WutSocket () | |
virtual | ~WutSocket () |
virtual bool | create () |
bool | bind (const uint16_t port) |
bool | listen () const |
bool | accept (WutSocket &) const |
virtual bool | connect (const std::string host, const uint16_t port) |
virtual bool | connectWithTimeout (const std::string host, uint16_t port, unsigned timeoutInMicroSeconds) |
virtual bool | send (const std::string) const |
virtual int | recv (std::string &) const |
virtual bool | setReceiveTimeout (unsigned timeoutInMicroSeconds) |
virtual bool | setSendTimeout (unsigned timeoutInMicroSeconds) |
void | set_non_blocking (const bool) |
bool | is_valid () const |
WutSocket () | |
virtual | ~WutSocket () |
virtual bool | create () |
bool | bind (const int port) |
bool | listen () const |
bool | accept (WutSocket &) const |
virtual bool | connect (const std::string host, const int port) |
virtual bool | connectWithTimeout (const std::string host, int port, unsigned timeoutInMicroSeconds) |
virtual bool | send (const std::string) const |
virtual int | recv (std::string &) const |
virtual bool | setReceiveTimeout (unsigned timeoutInMicroSeconds) |
virtual bool | setSendTimeout (unsigned timeoutInMicroSeconds) |
void | set_non_blocking (const bool) |
bool | is_valid () const |
WutSocket () | |
virtual | ~WutSocket () |
virtual bool | create () |
bool | bind (const int port) |
bool | listen () const |
bool | accept (WutSocket &) const |
virtual bool | connect (const std::string host, const int port) |
virtual bool | connectWithTimeout (const std::string host, int port, unsigned timeoutInMicroSeconds) |
virtual bool | send (const std::string) const |
virtual int | recv (std::string &) const |
virtual bool | setReceiveTimeout (unsigned timeoutInMicroSeconds) |
virtual bool | setSendTimeout (unsigned timeoutInMicroSeconds) |
void | set_non_blocking (const bool) |
bool | is_valid () const |
Private Attributes | |
std::string | m_password |
contains the password to get administration rights on the WutWebThermograph More... | |
This is the main class which provides functions to send and receave strings from and to the WutWebThermograph.
To make the functions more easy to look at another class has been implemented which contains the direct interaction with sockets.
WutThermo::WutThermo | ( | std::string | host, |
int | port, | ||
std::string | password | ||
) |
Constructor for the WutThermo_class.
host | Name or IP address of the host ( the WutThermograph ) |
port | port used by the connection |
password | administrator password for the W&T Web Thermograph 8x |
|
inlinevirtual |
Basda::WutThermo::WutThermo | ( | std::string | host, |
int | port, | ||
std::string | password | ||
) |
Constructor for the WutThermo_class.
host | Name or IP address of the host ( the WutThermograph ) |
port | port used by the connection |
password | administrator password for the W&T Web Thermograph 8x |
|
inlinevirtual |
|
private |
getAll is used to call for the temperature of all sensors at once
|
private |
getAll is used to call for the temperature of all sensors at once
|
private |
getCSV is used to call for the temperatures of all sensors in a .csv file
|
private |
getCSV is used to call for the temperatures of all sensors in a .csv file
|
private |
getSingle is used to call for the temperature of a specific sensor
sensor | defines the sensor |
|
private |
getSingle is used to call for the temperature of a specific sensor
sensor | defines the sensor |
"<<" operator sends a string to the socket connection.
"<<" operator sends a string to the socket connection.
">>" operator receives the response (string) from the socket connection.
">>" operator receives the response (string) from the socket connection.
std::string Basda::WutThermo::readSensor | ( | int | sensor | ) |
readSensor combines all the functions provided to read out the temperature of a specific sensor
s | number of the sensor |
std::string WutThermo::readSensor | ( | int | sensor | ) |
readSensor combines all the functions provided to read out the temperature of a specific sensor
s | number of the sensor |
std::string WutThermo::readSensor | ( | void | ) |
readSensor combines all the functions provided to read out the temperature of all sensors
std::string Basda::WutThermo::readSensor | ( | void | ) |
readSensor combines all the functions provided to read out the temperature of all sensors
std::string Basda::WutThermo::readSensorCSV | ( | void | ) |
readSensorCSV combines all the functions provided to read out the Thermo.csv file from the W&T Web Thermograph 8x
std::string WutThermo::readSensorCSV | ( | void | ) |
readSensorCSV combines all the functions provided to read out the Thermo.csv file from the W&T Web Thermograph 8x
|
private |
shortAll is used to shorten the string for getting the temperature from all sensors without the extra information like IP-Address and the name of the Web Thermograph.
s | string to be shortened |
|
private |
shortAll is used to shorten the string for getting the temperature from all sensors without the extra information like IP-Address and the name of the Web Thermograph.
s | string to be shortened |
|
private |
shortSingle is used to shorten the string for getting the temperature from a single sensor without the extra information like IP-Address and the name of the Web Thermograph.
s | string to be shortened |
|
private |
shortSingle is used to shorten the string for getting the temperature from a single sensor without the extra information like IP-Address and the name of the Web Thermograph.
s | string to be shortened |
|
private |
contains the password to get administration rights on the WutWebThermograph