CFEL - ASG Software Suite  2.5.0
CASS
cass/processing/id_list.h
Go to the documentation of this file.
1 // Copyright (C) 2010, 2015 Lutz Foucar
2 
3 /**
4  * @file cass/processing/id_list.h file 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 "serializable.hpp"
14 #include "processor.h"
15 
16 namespace cass
17 {
18 /** id-list
19  *
20  * used for SOAP communication of id-lists
21  *
22  * @author Stephan Kassemeyer
23  * @author Lutz Foucar
24  */
25 class IdList : public Serializable
26 {
27 public:
28 
29  /** default constructor */
31  : Serializable(1), _size(0)
32  {}
33 
34  /** constructor creating list from incomming list */
35  IdList(const Processor::names_t &list);
36 
37  /** construct from serializer */
39  : Serializable(1)
40  {
41  deserialize(in);
42  }
43 
44  /** clear the list */
45  void clear();
46 
47  /** copy the list to us */
48  void setList(const Processor::names_t &list);
49 
50  /** getter for the internal list */
51  const Processor::names_t& getList() { return _list; }
52 
53  /** deserialize the list from the serializer */
55 
56  /** serialize the list to the serializer */
57  void serialize(SerializerBackend &out)const;
58 
59 private:
60  /** a list of all processor keys */
62 
63  /** the size of the processor keys list */
64  size_t _size;
65 };
66 
67 } //end namespace
68 #endif
Processor::names_t _list
a list of all processor keys
IdList()
default constructor
void setList(const Processor::names_t &list)
copy the list to us
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
std::list< name_t > names_t
define the list of names
Definition: processor.h:49
file contains base class all serializable classes
bool deserialize(SerializerBackend &in)
deserialize the list from the serializer
file contains processors baseclass declaration
const Processor::names_t & getList()
getter for the internal list
void clear()
clear the list
Serializable.