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

id-list More...

#include <id_list.h>

+ Inheritance diagram for jocassview::IdList:
+ Collaboration diagram for jocassview::IdList:

Public Member Functions

 IdList ()
 default constructor More...
 
 IdList (const QStringList &list)
 constuctor from an existing QStringList More...
 
 IdList (cass::SerializerBackend &in)
 construct from serializer More...
 
const QStringListgetList () const
 getter for the internal list More...
 
void serialize (cass::SerializerBackend &out) const
 implmented but doesn't do anything More...
 
bool deserialize (cass::SerializerBackend &in)
 deserialize the list from the serializer More...
 
- Public Member Functions inherited from cass::Serializable
 Serializable (uint16_t version)
 constructor initializing the version More...
 
virtual ~Serializable ()
 virtual destructor to avoid warning with gcc 4.1.2 More...
 
uint16_t ver () const
 retrieve the version of the serializer More...
 
virtual void writeVersion (SerializerBackend &out) const
 write the version to the stream More...
 
virtual void checkVersion (SerializerBackend &in) const
 check the version More...
 

Private Attributes

QStringList _list
 a list of all processor keys More...
 
size_t _size
 the size of the processor keys list More...
 

Additional Inherited Members

- Protected Attributes inherited from cass::Serializable
uint16_t _version
 the version for de/serializing More...
 

Detailed Description

id-list

used for SOAP communication of id-lists (copy of the IdList of cass, but without the qt components).

Author
Stephan Kassemeyer
Lutz Foucar

Definition at line 27 of file jocassview/id_list.h.

Constructor & Destructor Documentation

IdList::IdList ( )

default constructor

Definition at line 22 of file jocassview/id_list.cpp.

IdList::IdList ( const QStringList list)

constuctor from an existing QStringList

Parameters
listthe list of this object

Definition at line 29 of file jocassview/id_list.cpp.

IdList::IdList ( cass::SerializerBackend in)

construct from serializer

Parameters
inthe serializer

Definition at line 37 of file jocassview/id_list.cpp.

References deserialize().

Member Function Documentation

bool IdList::deserialize ( cass::SerializerBackend in)
virtual

deserialize the list from the serializer

Returns
true if one coud deserialize this object fine
Parameters
inthe deserializer

Implements cass::Serializable.

Definition at line 58 of file jocassview/id_list.cpp.

References _list, _size, cass::Serializable::_version, cass::SerializerBackend::endChecksumGroupForRead(), QString::fromStdString(), QMessageBox::information(), cass::SerializerBackend::retrieve(), cass::SerializerBackend::startChecksumGroupForRead(), QObject::tr(), and cass::Serializable::ver().

Referenced by IdList().

const QStringList & IdList::getList ( ) const

getter for the internal list

Returns
the list that is managed by this

Definition at line 43 of file jocassview/id_list.cpp.

References _list.

Referenced by jocassview::TCPClient::resultNames().

void IdList::serialize ( cass::SerializerBackend out) const
virtual

Member Data Documentation

QStringList jocassview::IdList::_list
private

a list of all processor keys

Definition at line 67 of file jocassview/id_list.h.

Referenced by deserialize(), getList(), and serialize().

size_t jocassview::IdList::_size
private

the size of the processor keys list

Definition at line 70 of file jocassview/id_list.h.

Referenced by deserialize(), and serialize().


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