CFEL - ASG Software Suite  2.5.0
CASS
lucassview/id_list.h
Go to the documentation of this file.
1 // Copyright (C) 2010, 2015 Lutz Foucar
2 
3 /**
4  * @file lucassview/id_list.h contains the classes that can
5  * serialize the key list
6  *
7  * @author Stephan Kassemeyer
8  */
9 
10 #ifndef __IDLIST_H__
11 #define __IDLIST_H__
12 
13 #include <list>
14 
15 #include "serializable.hpp"
16 
17 namespace cass
18 {
19 /** id-list
20  *
21  * used for SOAP communication of id-lists
22  *
23  * @author Stephan Kassemeyer
24  * @author Lutz Foucar
25  */
26 class IdList : public Serializable
27 {
28 public:
29  /** define the list of names */
30  typedef std::list<std::string> names_t;
31 
32  /** default constructor */
34  : Serializable(1), _size(0)
35  {}
36 
37  /** construct from serializer */
39  : Serializable(1)
40  {
41  deserialize(in);
42  }
43 
44  /** clear the list */
45  void clear();
46 
47  /** getter for the internal list */
48  const names_t& getList() { return _list; }
49 
50  /** deserialize the list from the serializer */
52 
53  /** serialize the list to the serializer */
54  void serialize(SerializerBackend &out)const;
55 
56 private:
57  /** a list of all processor keys */
58  names_t _list;
59 
60  /** the size of the processor keys list */
61  size_t _size;
62 };
63 
64 } //end namespace
65 #endif
Processor::names_t _list
a list of all processor keys
IdList()
default constructor
names_t _list
a list of all processor keys
IdList(SerializerBackend &in)
construct from serializer
void serialize(SerializerBackend &out) const
serialize the list to the serializer
size_t _size
the size of the processor keys list
file contains base class all serializable classes
const names_t & getList()
getter for the internal list
std::list< std::string > names_t
define the list of names
bool deserialize(SerializerBackend &in)
deserialize the list from the serializer
void clear()
clear the list
Serializable.