Last change
on this file since 94 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:
836 bytes
|
Rev | Line | |
---|
[88] | 1 | /* |
---|
| 2 | * $Id: Instance_print.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/Configuration/include/Instance.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | namespace configuration { |
---|
| 13 | |
---|
| 14 | #undef FUNCTION |
---|
| 15 | #define FUNCTION "Instance::print" |
---|
| 16 | std::string Instance::print (uint32_t depth) |
---|
| 17 | { |
---|
| 18 | log_begin(Configuration,FUNCTION); |
---|
| 19 | |
---|
| 20 | std::string _return = (toXML()).get_body(depth); |
---|
| 21 | |
---|
| 22 | log_end(Configuration,FUNCTION); |
---|
| 23 | return _return; |
---|
| 24 | }; |
---|
| 25 | |
---|
| 26 | #undef FUNCTION |
---|
| 27 | #define FUNCTION "Instance::operator<<" |
---|
| 28 | std::ostream& operator<< (std::ostream& output, |
---|
| 29 | morpheo::behavioural::configuration::Instance & x) |
---|
| 30 | { |
---|
| 31 | log_begin(Configuration,FUNCTION); |
---|
| 32 | output << x.print(0); |
---|
| 33 | log_end(Configuration,FUNCTION); |
---|
| 34 | return output; |
---|
| 35 | }; |
---|
| 36 | |
---|
| 37 | }; // end namespace configuration |
---|
| 38 | }; // end namespace behavioural |
---|
| 39 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.