2 * @brief Serviceholder class implementation. This class holds Service objects in a list for serialization.
6 * @copyright Intra2net AG
10 #include "serviceholder.h"
16 * Default constructor. Invoked on serialization and deserialization.
18 Serviceholder::Serviceholder()
24 * Default destructor. While serializing and deserializing we use boost/shared_ptr, the resources are managed correctly.
26 Serviceholder::~Serviceholder()
32 * Serialize function needed by boost/serialization to define which members should be stored as the object state.
33 * In this case the STL list of Service pointers will be serialized.
35 * @param version Version
37 template<class Archive>
38 void Serviceholder::serialize(Archive & ar, const unsigned int version)
45 * Add Service * to internal list.
46 * @param service Pointer to Service object.
48 void Serviceholder::add_service(Service * service)
50 Hold_services.push_back(service);
55 * Needed after deserialization to get the valid list of Service* back.
56 * @return The list of Service*.
58 std::list<Service*> Serviceholder::get_hold_services()