0.6.0
C++ Open Travel Request Parsing Library
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
FacServiceAbstract.cpp
Go to the documentation of this file.
1
// //////////////////////////////////////////////////////////////////////
2
// Import section
3
// //////////////////////////////////////////////////////////////////////
4
// C
5
#include <assert.h>
6
// OPENTREP
7
#include <
opentrep/service/ServiceAbstract.hpp
>
8
#include <
opentrep/factory/FacServiceAbstract.hpp
>
9
10
namespace
OPENTREP {
11
12
// //////////////////////////////////////////////////////////////////////
13
FacServiceAbstract::~FacServiceAbstract
() {
14
clean
();
15
}
16
17
// //////////////////////////////////////////////////////////////////////
18
void
FacServiceAbstract::clean
() {
19
for
(ServicePool_T::iterator itService =
_pool
.begin();
20
itService !=
_pool
.end(); itService++) {
21
ServiceAbstract
* currentService_ptr = *itService;
22
assert (currentService_ptr != NULL);
23
24
delete
(currentService_ptr); currentService_ptr = NULL;
25
}
26
27
// Empty the pool of Service Factories
28
_pool
.clear();
29
}
30
31
}
FacServiceAbstract.hpp
OPENTREP::FacServiceAbstract::clean
void clean()
Definition:
FacServiceAbstract.cpp:18
OPENTREP::FacServiceAbstract::_pool
ServicePool_T _pool
Definition:
FacServiceAbstract.hpp:34
ServiceAbstract.hpp
OPENTREP::ServiceAbstract
Definition:
ServiceAbstract.hpp:14
OPENTREP::FacServiceAbstract::~FacServiceAbstract
virtual ~FacServiceAbstract()
Definition:
FacServiceAbstract.cpp:13
Generated on Mon Feb 3 2014 14:17:07 for OpenTREP by
1.8.6