Last change
on this file since 122 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:
881 bytes
|
Rev | Line | |
---|
[31] | 1 | #ifdef POSITION |
---|
| 2 | /* |
---|
| 3 | * $Id: Component_generate_file.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
[42] | 9 | #include "Behavioural/include/Component.h" |
---|
[88] | 10 | #include "Common/include/Environment.h" |
---|
[31] | 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | |
---|
[88] | 15 | #undef FUNCTION |
---|
| 16 | #define FUNCTION "Component::generate_file" |
---|
[42] | 17 | void Component::generate_file (void) |
---|
[31] | 18 | { |
---|
[43] | 19 | log_printf(FUNC,Behavioural,"Component::generate_file","Begin"); |
---|
| 20 | |
---|
[31] | 21 | try |
---|
| 22 | { |
---|
[88] | 23 | directory(); |
---|
| 24 | |
---|
[31] | 25 | XML xml = toXML(); |
---|
| 26 | |
---|
[88] | 27 | xml.filename_extension (".pos"); |
---|
[31] | 28 | |
---|
[88] | 29 | xml.generate_file(MORPHEO_POSITION,"ISO-8859-1"); |
---|
[31] | 30 | |
---|
| 31 | } |
---|
| 32 | catch (ErrorMorpheo e) |
---|
| 33 | { |
---|
[88] | 34 | throw ERRORMORPHEO(FUNCTION,toString(_("Component \"%s\" have a bad mapping : %s\n")),_entity->get_name().c_str(),e.what().c_str()); |
---|
[31] | 35 | } |
---|
[43] | 36 | |
---|
| 37 | log_printf(FUNC,Behavioural,"Component::generate_file","End"); |
---|
[31] | 38 | }; |
---|
| 39 | |
---|
| 40 | }; // end namespace behavioural |
---|
| 41 | }; // end namespace morpheo |
---|
| 42 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.