Last change
on this file since 33 was
31,
checked in by rosiere, 17 years ago
|
Class Position qui encapsule la génération des fichiers de positions
|
File size:
997 bytes
|
Rev | Line | |
---|
[29] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Interface.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | |
---|
| 13 | Interface::Interface (string name , |
---|
| 14 | direction_t direction , |
---|
| 15 | localisation_t localisation ): |
---|
| 16 | _name (name ), |
---|
| 17 | _direction (direction ), |
---|
| 18 | _localisation (localisation) |
---|
| 19 | { |
---|
[31] | 20 | _list_signal = new list<Signal>; |
---|
| 21 | #ifdef POSITION |
---|
| 22 | _is_map = false; |
---|
| 23 | #endif |
---|
[29] | 24 | }; |
---|
[31] | 25 | |
---|
| 26 | Interface::Interface (const Interface & interface): |
---|
| 27 | _name (interface._name ), |
---|
| 28 | _direction (interface._direction ), |
---|
| 29 | _localisation (interface._localisation) |
---|
| 30 | { |
---|
| 31 | _comment = interface._comment ; |
---|
| 32 | _list_signal = interface._list_signal; |
---|
| 33 | #ifdef POSITION |
---|
| 34 | _is_map = interface._is_map ; |
---|
| 35 | #endif |
---|
| 36 | }; |
---|
[29] | 37 | |
---|
| 38 | Interface::~Interface () |
---|
| 39 | { |
---|
[31] | 40 | delete _list_signal; |
---|
[29] | 41 | }; |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | }; // end namespace behavioural |
---|
| 45 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.