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