Last change
on this file since 111 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:
1.4 KB
|
Line | |
---|
1 | #ifndef morpheo_behavioural_configuration_Simulator_h |
---|
2 | #define morpheo_behavioural_configuration_Simulator_h |
---|
3 | |
---|
4 | /* |
---|
5 | * $Id: Simulator.h 88 2008-12-10 18:31:39Z rosiere $ |
---|
6 | * |
---|
7 | * [ Description ] |
---|
8 | * |
---|
9 | */ |
---|
10 | |
---|
11 | #include "Behavioural/Configuration/include/Parameter_affectation.h" |
---|
12 | #include "Behavioural/Configuration/include/XMLUtils.h" |
---|
13 | #include <map> |
---|
14 | |
---|
15 | namespace morpheo { |
---|
16 | namespace behavioural { |
---|
17 | namespace configuration { |
---|
18 | |
---|
19 | class Simulator |
---|
20 | { |
---|
21 | // -----[ fields ]---------------------------------------------------- |
---|
22 | private : std::string _filename; |
---|
23 | private : std::map<std::string, Parameter_affectation *> * _array; |
---|
24 | |
---|
25 | // -----[ methods ]--------------------------------------------------- |
---|
26 | public : Simulator (std::string filename); |
---|
27 | public : ~Simulator (); |
---|
28 | |
---|
29 | public : std::string getParam (std::string name); |
---|
30 | private : void insert (Parameter_affectation * param); |
---|
31 | private : void fromFile (std::string filename); |
---|
32 | |
---|
33 | public : void toFile (std::string dirname="."); |
---|
34 | private : XML toXML (void); |
---|
35 | private : std::string print (uint32_t depth); |
---|
36 | public : friend std::ostream& operator<< (std::ostream& output, |
---|
37 | morpheo::behavioural::configuration::Simulator & x); |
---|
38 | }; |
---|
39 | |
---|
40 | }; // end namespace configuration |
---|
41 | }; // end namespace behavioural |
---|
42 | }; // end namespace morpheo |
---|
43 | |
---|
44 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.