CFEL - ASG Software Suite
2.5.0
CASS
|
the tcp client that connects to the cass server More...
#include <tcpclient.h>
Public Member Functions | |
TCPClient (const std::string &server) | |
constructor More... | |
std::list< std::string > | operator() () const |
retrieve the list of available histograms More... | |
cass::Result< float >::shared_pointer | operator() (const std::string &histogramkey) const |
retrieve a specific histogram More... | |
void | reloadIni () const |
reload .ini file More... | |
void | controlCalibration (const std::string &command) const |
reload .ini file More... | |
size_t | receivedBytes () const |
retrieve the transferred bytes More... | |
Private Attributes | |
std::string | _server |
the server to connect to More... | |
size_t | _transferredBytes |
the amount of bytes transferred More... | |
the tcp client that connects to the cass server
Definition at line 23 of file lucassview/tcpclient.h.
TCPClient::TCPClient | ( | const std::string & | server | ) |
constructor
server | string containing the server ip and port |
Definition at line 19 of file lucassview/tcpclient.cpp.
void TCPClient::controlCalibration | ( | const std::string & | command | ) | const |
reload .ini file
Definition at line 35 of file lucassview/tcpclient.cpp.
References _server.
Referenced by HistogramUpdater::controlCalibration().
std::list< std::string > TCPClient::operator() | ( | ) | const |
retrieve the list of available histograms
Definition at line 46 of file lucassview/tcpclient.cpp.
References _server, _transferredBytes, and cass::IdList::getList().
cass::Result< float >::shared_pointer TCPClient::operator() | ( | const std::string & | histogramkey | ) | const |
retrieve a specific histogram
histogramkey | the key of the requested histogram |
Definition at line 78 of file lucassview/tcpclient.cpp.
References _server, and _transferredBytes.
|
inline |
retrieve the transferred bytes
Definition at line 49 of file lucassview/tcpclient.h.
References _transferredBytes.
void TCPClient::reloadIni | ( | ) | const |
reload .ini file
Definition at line 24 of file lucassview/tcpclient.cpp.
References _server.
Referenced by HistogramUpdater::reloadIni().
|
private |
the server to connect to
Definition at line 53 of file lucassview/tcpclient.h.
Referenced by controlCalibration(), operator()(), and reloadIni().
|
mutableprivate |
the amount of bytes transferred
Definition at line 56 of file lucassview/tcpclient.h.
Referenced by operator()(), and receivedBytes().