Last change
on this file since 103 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:
729 bytes
|
Rev | Line | |
---|
[31] | 1 | /* |
---|
| 2 | * $Id: Component_set_entity.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
[42] | 8 | #include "Behavioural/include/Component.h" |
---|
[31] | 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | |
---|
[43] | 13 | #undef FUNCTION |
---|
| 14 | #define FUNCTION "Component::set_entity" |
---|
[75] | 15 | Entity * Component::set_entity (std::string name |
---|
| 16 | ,std::string type |
---|
[42] | 17 | #ifdef POSITION |
---|
| 18 | ,schema_t schema |
---|
| 19 | #endif |
---|
| 20 | ) |
---|
[31] | 21 | { |
---|
[43] | 22 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 23 | |
---|
[42] | 24 | Entity * entity = new Entity (name |
---|
| 25 | ,type |
---|
| 26 | #ifdef POSITION |
---|
| 27 | ,schema |
---|
| 28 | #endif |
---|
[57] | 29 | ,_usage |
---|
[42] | 30 | ); |
---|
[31] | 31 | _entity = entity; |
---|
| 32 | |
---|
[43] | 33 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
| 34 | |
---|
[31] | 35 | return entity; |
---|
| 36 | }; |
---|
| 37 | |
---|
| 38 | }; // end namespace behavioural |
---|
| 39 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.