8 #include <stdair/STDAIR_Service.hpp>
9 #include <stdair/basic/BasConst_General.hpp>
17 TRADEMGEN_ServiceContext::TRADEMGEN_ServiceContext ()
18 : _ownStdairService (false), _uniformGenerator (stdair::DEFAULT_RANDOM_SEED),
23 TRADEMGEN_ServiceContext::
24 TRADEMGEN_ServiceContext (
const TRADEMGEN_ServiceContext& iServiceContext)
25 : _ownStdairService (false), _uniformGenerator (stdair::DEFAULT_RANDOM_SEED),
30 TRADEMGEN_ServiceContext::
31 TRADEMGEN_ServiceContext (
const stdair::RandomSeed_T& iRandomSeed)
32 : _ownStdairService (false), _uniformGenerator (iRandomSeed),
37 TRADEMGEN_ServiceContext::~TRADEMGEN_ServiceContext() {
41 const std::string TRADEMGEN_ServiceContext::shortDisplay()
const {
42 std::ostringstream oStr;
43 oStr <<
"TRADEMGEN_ServiceContext -- Owns StdAir service: "
44 << _ownStdairService <<
" -- Generator: " << _uniformGenerator;
49 const std::string TRADEMGEN_ServiceContext::display()
const {
50 std::ostringstream oStr;
51 oStr << shortDisplay();
56 const std::string TRADEMGEN_ServiceContext::describe()
const {
57 return shortDisplay();
61 void TRADEMGEN_ServiceContext::reset() {
68 _stdairService.reset();
71 _sevmgrService.reset();