Last change
on this file since 122 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
1.4 KB
|
Rev | Line | |
---|
[31] | 1 | /* |
---|
| 2 | * $Id: Entity.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Entity.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | |
---|
[75] | 13 | Entity::Entity ( std::string name |
---|
| 14 | ,std::string type |
---|
[42] | 15 | #ifdef POSITION |
---|
| 16 | ,schema_t schema |
---|
| 17 | #endif |
---|
[57] | 18 | ,Tusage_t usage |
---|
[42] | 19 | ): |
---|
| 20 | _name (name ) |
---|
| 21 | ,_type (type ) |
---|
| 22 | #ifdef POSITION |
---|
| 23 | ,_schema (schema ) |
---|
| 24 | #endif |
---|
[57] | 25 | ,_usage (usage ) |
---|
[31] | 26 | { |
---|
[38] | 27 | log_printf(FUNC,Behavioural,"Entity","Begin"); |
---|
[57] | 28 | _interfaces = new Interfaces (name, usage); |
---|
[42] | 29 | #ifdef POSITION |
---|
[41] | 30 | _is_map = false; |
---|
[42] | 31 | #endif |
---|
[38] | 32 | log_printf(FUNC,Behavioural,"Entity","End"); |
---|
[31] | 33 | }; |
---|
| 34 | |
---|
| 35 | Entity::Entity (const Entity & entity): |
---|
[42] | 36 | _name (entity._name ) |
---|
| 37 | ,_type (entity._type ) |
---|
| 38 | #ifdef POSITION |
---|
| 39 | ,_schema (entity._schema ) |
---|
| 40 | #endif |
---|
[57] | 41 | ,_usage (entity._usage ) |
---|
[31] | 42 | { |
---|
[38] | 43 | log_printf(FUNC,Behavioural,"Entity (copy)","Begin"); |
---|
[42] | 44 | _interfaces = entity._interfaces; |
---|
| 45 | #ifdef POSITION |
---|
[31] | 46 | _is_map = entity._is_map ; |
---|
| 47 | _comment = entity._comment ; |
---|
[42] | 48 | #endif |
---|
[38] | 49 | log_printf(FUNC,Behavioural,"Entity (copy)","End"); |
---|
[31] | 50 | }; |
---|
| 51 | |
---|
| 52 | Entity::~Entity () |
---|
| 53 | { |
---|
[38] | 54 | log_printf(FUNC,Behavioural,"~Entity","Begin"); |
---|
[31] | 55 | delete _interfaces; |
---|
[38] | 56 | log_printf(FUNC,Behavioural,"~Entity","End"); |
---|
[31] | 57 | }; |
---|
| 58 | |
---|
| 59 | }; // end namespace behavioural |
---|
| 60 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.