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