CFEL - ASG Software Suite  2.5.0
CASS
Public Member Functions | Private Attributes | List of all members
lucassview::TCPClient Class Reference

the tcp client that connects to the cass server More...

#include <tcpclient.h>

+ Collaboration diagram for lucassview::TCPClient:

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...
 

Detailed Description

the tcp client that connects to the cass server

Author
Lutz Foucar

Definition at line 23 of file lucassview/tcpclient.h.

Constructor & Destructor Documentation

TCPClient::TCPClient ( const std::string &  server)

constructor

Parameters
serverstring containing the server ip and port

Definition at line 19 of file lucassview/tcpclient.cpp.

Member Function Documentation

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

Returns
Histogram for requested key
Parameters
histogramkeythe key of the requested histogram

Definition at line 78 of file lucassview/tcpclient.cpp.

References _server, and _transferredBytes.

size_t lucassview::TCPClient::receivedBytes ( ) const
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().

Member Data Documentation

std::string lucassview::TCPClient::_server
private

the server to connect to

Definition at line 53 of file lucassview/tcpclient.h.

Referenced by controlCalibration(), operator()(), and reloadIni().

size_t lucassview::TCPClient::_transferredBytes
mutableprivate

the amount of bytes transferred

Definition at line 56 of file lucassview/tcpclient.h.

Referenced by operator()(), and receivedBytes().


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