Last change
on this file since 96 was
88,
checked in by rosiere, 16 years ago
|
Almost complete design
with Test and test platform
|
-
Property svn:keywords set to
Id
|
File size:
729 bytes
|
Rev | Line | |
---|
[88] | 1 | /* |
---|
| 2 | * $Id: Simulator_getParam.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Configuration/include/Simulator.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | namespace configuration { |
---|
| 13 | |
---|
| 14 | #undef FUNCTION |
---|
| 15 | #define FUNCTION "Simulator::getParam" |
---|
| 16 | std::string Simulator::getParam (std::string name) |
---|
| 17 | { |
---|
| 18 | log_begin(Configuration,FUNCTION); |
---|
| 19 | |
---|
| 20 | if (_array->find(name) == _array->end()) |
---|
| 21 | throw ERRORMORPHEO(FUNCTION,toString(_("Simulator file \"%s\" does't have the parameters \"%s\".\n"),_filename.c_str(),name.c_str())); |
---|
| 22 | |
---|
| 23 | std::string res = ((*_array)[name])->_value; |
---|
| 24 | |
---|
| 25 | log_end(Configuration,FUNCTION); |
---|
| 26 | |
---|
| 27 | return res; |
---|
| 28 | }; |
---|
| 29 | |
---|
| 30 | }; // end namespace configuration |
---|
| 31 | }; // end namespace behavioural |
---|
| 32 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.