1 | /* |
---|
2 | * $Id: Entity_test_map.cpp 82 2008-05-01 16:48:45Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/include/Entity.h" |
---|
9 | #include <iostream> |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | |
---|
14 | #undef FUNCTION |
---|
15 | #define FUNCTION "Entity::test_map" |
---|
16 | bool Entity::test_map (uint32_t depth, bool top_level, bool is_behavioural) |
---|
17 | { |
---|
18 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
19 | |
---|
20 | std::string tab = std::string(depth,'\t'); |
---|
21 | log_printf(NONE,Behavioural,FUNCTION, "%s* Entity \"%s\"",tab.c_str(),_name.c_str()); |
---|
22 | |
---|
23 | bool _return = _interfaces->test_map(depth+1,top_level, is_behavioural); |
---|
24 | |
---|
25 | #ifndef DEBUG |
---|
26 | if (_return == false) |
---|
27 | { |
---|
28 | std::cerr << "In entity \"" << _name << "\" (type : \"" << _type << "\"), a lot of port is not connected !" << std::endl; |
---|
29 | } |
---|
30 | #endif |
---|
31 | |
---|
32 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
33 | |
---|
34 | return _return; |
---|
35 | }; |
---|
36 | |
---|
37 | // #undef FUNCTION |
---|
38 | // #define FUNCTION "Entity::test_equi" |
---|
39 | // bool Entity::test_equi (uint32_t depth) |
---|
40 | // { |
---|
41 | // log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
42 | |
---|
43 | // std::string tab = std::string(depth,'\t'); |
---|
44 | // log_printf(NONE,Behavioural,FUNCTION, "%s* Entity \"%s\"",tab.c_str(),_name.c_str()); |
---|
45 | |
---|
46 | // bool _return = _interfaces->test_equi(depth+1); |
---|
47 | |
---|
48 | // #ifndef DEBUG |
---|
49 | // if (_return == false) |
---|
50 | // { |
---|
51 | // std::cerr << "In entity \"" << _name << "\" (type : \"" << _type << "\"), a lot of port is not connected !" << std::endl; |
---|
52 | // } |
---|
53 | // #endif |
---|
54 | |
---|
55 | // log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
56 | |
---|
57 | // return _return; |
---|
58 | // }; |
---|
59 | |
---|
60 | }; // end namespace behavioural |
---|
61 | }; // end namespace morpheo |
---|