Last change
on this file since 108 was
82,
checked in by rosiere, 16 years ago
|
- support locale (now must "just" translate)
- update all component with new test format
- update all component with usage
- New component : decod queue and prediction_unit
|
-
Property svn:keywords set to
Id
|
File size:
969 bytes
|
Line | |
---|
1 | /* |
---|
2 | * $Id: Component_set_component.cpp 82 2008-05-01 16:48:45Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/include/Component.h" |
---|
9 | |
---|
10 | namespace morpheo { |
---|
11 | namespace behavioural { |
---|
12 | |
---|
13 | #undef FUNCTION |
---|
14 | #define FUNCTION "Component::set_component" |
---|
15 | void Component::set_component (Component * component |
---|
16 | #ifdef POSITION |
---|
17 | ,uint32_t pos_x |
---|
18 | ,uint32_t pos_y |
---|
19 | ,uint32_t size_x |
---|
20 | ,uint32_t size_y |
---|
21 | #endif |
---|
22 | ,Tinstance_t instance |
---|
23 | ) |
---|
24 | { |
---|
25 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
26 | |
---|
27 | Entity * entity = component->_entity; |
---|
28 | |
---|
29 | Tcomponent_t * entry = new Tcomponent_t; |
---|
30 | |
---|
31 | entry->_component= component; |
---|
32 | entry->_instance = instance; |
---|
33 | entry->_entity = entity; |
---|
34 | |
---|
35 | _list_component->push_back(entry); |
---|
36 | |
---|
37 | #ifdef POSITION |
---|
38 | if (instance & INSTANCE_POSITION) |
---|
39 | entity->mapping( pos_x, pos_y, size_x, size_y); |
---|
40 | #endif |
---|
41 | |
---|
42 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
43 | }; |
---|
44 | |
---|
45 | }; // end namespace behavioural |
---|
46 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.