Commit | Line | Data |
---|---|---|
e0080b78 BS |
1 | /** @file |
2 | * @brief SerializeServiceContainer class implementation. This class contains Service objects in a list for serialization. | |
3 | * | |
4 | * | |
5 | * | |
6 | * @copyright Intra2net AG | |
7 | * @license GPLv2 | |
8 | */ | |
9 | ||
10 | #include "serializeservicecontainer.h" | |
11 | ||
e0080b78 BS |
12 | |
13 | SerializeServiceContainer::SerializeServiceContainer() | |
14 | { | |
15 | } | |
16 | ||
17 | ||
18 | SerializeServiceContainer::~SerializeServiceContainer() | |
19 | { | |
20 | } | |
21 | ||
22 | /** | |
23 | * Serialize function needed by boost/serialization to define which members should be stored as the object state. | |
24 | * In this case the STL list of Service pointers will be serialized. | |
25 | * @param ar Archive | |
26 | * @param version Version | |
27 | */ | |
ca5d6889 | 28 | /* |
e0080b78 BS |
29 | template<class Archive> |
30 | void SerializeServiceContainer::serialize(Archive & ar, const unsigned int version) | |
31 | { | |
32 | ar & ContainingServices; | |
33 | } | |
ca5d6889 | 34 | */ |
e0080b78 BS |
35 | |
36 | void SerializeServiceContainer::add_service(Service::Ptr service) | |
37 | { | |
38 | ContainingServices.push_back(service); | |
39 | } | |
40 | ||
41 | ||
42 | std::list<Service::Ptr> SerializeServiceContainer::get_containing_services() const | |
43 | { | |
44 | return ContainingServices; | |
45 | } |