CFEL - ASG Software Suite  2.5.0
CASS
jocassview/id_list.h
Go to the documentation of this file.
1 // Copyright (C) 2013 Lutz Foucar
2 
3 /**
4  * @file jocassview/id_list.h file contains the classes that can serialize the
5  * key list
6  *
7  * @author Lutz Foucar
8  */
9 
10 #ifndef __JOCASSVIEWIDLIST_H__
11 #define __JOCASSVIEWIDLIST_H__
12 
13 #include <QtCore/QStringList>
14 
15 #include "serializable.hpp"
16 
17 namespace jocassview
18 {
19 /** id-list
20  *
21  * used for SOAP communication of id-lists (copy of the IdList of cass, but
22  * without the qt components).
23  *
24  * @author Stephan Kassemeyer
25  * @author Lutz Foucar
26  */
27 class IdList : public cass::Serializable
28 {
29 public:
30 
31  /** default constructor */
32  IdList();
33 
34  /** constuctor from an existing QStringList
35  *
36  * @param list the list of this object
37  */
38  IdList(const QStringList & list);
39 
40  /** construct from serializer
41  *
42  * @param in the serializer
43  */
45 
46  /** getter for the internal list
47  *
48  * @return the list that is managed by this
49  */
50  const QStringList &getList() const;
51 
52  /** implmented but doesn't do anything
53  *
54  * @param out unused parameter
55  */
56  void serialize(cass::SerializerBackend &out) const;
57 
58  /** deserialize the list from the serializer
59  *
60  * @return true if one coud deserialize this object fine
61  * @param in the deserializer
62  */
64 
65 private:
66  /** a list of all processor keys */
68 
69  /** the size of the processor keys list */
70  size_t _size;
71 };
72 
73 } //end namespace
74 #endif
const QStringList & getList() const
getter for the internal list
QStringList _list
a list of all processor keys
bool deserialize(cass::SerializerBackend &in)
deserialize the list from the serializer
size_t _size
the size of the processor keys list
file contains base class all serializable classes
IdList()
default constructor
Serializable.
void serialize(cass::SerializerBackend &out) const
implmented but doesn't do anything