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 | |
---|
13 | Entity::Entity ( std::string name |
---|
14 | ,std::string type |
---|
15 | #ifdef POSITION |
---|
16 | ,schema_t schema |
---|
17 | #endif |
---|
18 | ,Tusage_t usage |
---|
19 | ): |
---|
20 | _name (name ) |
---|
21 | ,_type (type ) |
---|
22 | #ifdef POSITION |
---|
23 | ,_schema (schema ) |
---|
24 | #endif |
---|
25 | ,_usage (usage ) |
---|
26 | { |
---|
27 | log_printf(FUNC,Behavioural,"Entity","Begin"); |
---|
28 | _interfaces = new Interfaces (name, usage); |
---|
29 | #ifdef POSITION |
---|
30 | _is_map = false; |
---|
31 | #endif |
---|
32 | log_printf(FUNC,Behavioural,"Entity","End"); |
---|
33 | }; |
---|
34 | |
---|
35 | Entity::Entity (const Entity & entity): |
---|
36 | _name (entity._name ) |
---|
37 | ,_type (entity._type ) |
---|
38 | #ifdef POSITION |
---|
39 | ,_schema (entity._schema ) |
---|
40 | #endif |
---|
41 | ,_usage (entity._usage ) |
---|
42 | { |
---|
43 | log_printf(FUNC,Behavioural,"Entity (copy)","Begin"); |
---|
44 | _interfaces = entity._interfaces; |
---|
45 | #ifdef POSITION |
---|
46 | _is_map = entity._is_map ; |
---|
47 | _comment = entity._comment ; |
---|
48 | #endif |
---|
49 | log_printf(FUNC,Behavioural,"Entity (copy)","End"); |
---|
50 | }; |
---|
51 | |
---|
52 | Entity::~Entity () |
---|
53 | { |
---|
54 | log_printf(FUNC,Behavioural,"~Entity","Begin"); |
---|
55 | delete _interfaces; |
---|
56 | log_printf(FUNC,Behavioural,"~Entity","End"); |
---|
57 | }; |
---|
58 | |
---|
59 | }; // end namespace behavioural |
---|
60 | }; // end namespace morpheo |
---|