CFEL - ASG Software Suite  2.5.0
CASS
Public Types | Public Member Functions | List of all members
jocassview::DataSource Class Referenceabstract

base class for data sources More...

#include <data_source.h>

+ Inheritance diagram for jocassview::DataSource:

Public Types

typedef cass::Result< float > result_t
 define the result type More...
 

Public Member Functions

virtual result_t::shared_pointer result (const QString &key, quint64 id=0)=0
 retrieve a result from the source More...
 
virtual QStringList resultNames ()=0
 retrieve the list items that can be displayed More...
 
virtual QString type () const =0
 return the type of this source More...
 

Detailed Description

base class for data sources

Author
Lutz Foucar

Definition at line 26 of file data_source.h.

Member Typedef Documentation

define the result type

Definition at line 30 of file data_source.h.

Member Function Documentation

virtual result_t::shared_pointer jocassview::DataSource::result ( const QString key,
quint64  id = 0 
)
pure virtual

retrieve a result from the source

Parameters
keythe key of the result
idThe event id of the result

Implemented in jocassview::FileHandler, and jocassview::TCPClient.

Referenced by jocassview::OneDViewer::on_add_graph_triggered(), and jocassview::JoCASSViewer::updateViewers().

virtual QStringList jocassview::DataSource::resultNames ( )
pure virtual

retrieve the list items that can be displayed

Returns
the list of strings that name the items that can be displayed

Implemented in jocassview::FileHandler, and jocassview::TCPClient.

Referenced by jocassview::OneDViewer::on_add_graph_triggered(), and jocassview::JoCASSViewer::refreshDisplayableItemsList().

virtual QString jocassview::DataSource::type ( ) const
pure virtual

return the type of this source

Returns
the type of the source

Implemented in jocassview::FileHandler, and jocassview::TCPClient.


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