Last change
on this file since 130 was
124,
checked in by rosiere, 15 years ago
|
1) Add test and configuration
2) Fix Bug
3) Add log file in load store unit
4) Fix Bug in environment
|
-
Property svn:keywords set to
Id
|
File size:
880 bytes
|
Rev | Line | |
---|
[31] | 1 | #ifdef POSITION |
---|
| 2 | /* |
---|
| 3 | * $Id: Component_generate_file.cpp 124 2009-06-17 12:11:25Z 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 | |
---|
[124] | 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.