Last change
on this file since 32 was
31,
checked in by rosiere, 17 years ago
|
Class Position qui encapsule la génération des fichiers de positions
|
File size:
556 bytes
|
Rev | Line | |
---|
[31] | 1 | #ifdef POSITION |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/include/Position.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | |
---|
| 14 | void Position::generate_file (void) |
---|
| 15 | { |
---|
| 16 | try |
---|
| 17 | { |
---|
| 18 | XML xml = toXML(); |
---|
| 19 | |
---|
| 20 | xml.filename_extension ("pos"); |
---|
| 21 | |
---|
| 22 | xml.generate_file("ISO-8859-1"); |
---|
| 23 | |
---|
| 24 | } |
---|
| 25 | catch (ErrorMorpheo e) |
---|
| 26 | { |
---|
| 27 | throw (ErrorMorpheo ("Position \""+_entity->_name+"\" have a bad mapping : "+e.what())); |
---|
| 28 | } |
---|
| 29 | }; |
---|
| 30 | |
---|
| 31 | }; // end namespace behavioural |
---|
| 32 | }; // end namespace morpheo |
---|
| 33 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.