[62] | 1 | /* |
---|
| 2 | * $Id: Entity_test_map.cpp 88 2008-12-10 18:31:39Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Entity.h" |
---|
[78] | 9 | #include <iostream> |
---|
[62] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | |
---|
| 14 | #undef FUNCTION |
---|
| 15 | #define FUNCTION "Entity::test_map" |
---|
[82] | 16 | bool Entity::test_map (uint32_t depth, bool top_level, bool is_behavioural) |
---|
[62] | 17 | { |
---|
| 18 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 19 | |
---|
[88] | 20 | std::string tab = std::string(depth,' '); |
---|
| 21 | log_printf(INFO,Interface,FUNCTION,"%s* Entity \"%s\"",tab.c_str(),_name.c_str()); |
---|
[62] | 22 | |
---|
[82] | 23 | bool _return = _interfaces->test_map(depth+1,top_level, is_behavioural); |
---|
[62] | 24 | |
---|
[78] | 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 | |
---|
[62] | 32 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
| 33 | |
---|
| 34 | return _return; |
---|
| 35 | }; |
---|
| 36 | |
---|
[82] | 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'); |
---|
[88] | 44 | // log_printf(INFO,Behavioural,FUNCTION, "%s* Entity \"%s\"",tab.c_str(),_name.c_str()); |
---|
[82] | 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 | |
---|
[62] | 60 | }; // end namespace behavioural |
---|
| 61 | }; // end namespace morpheo |
---|