Last change
on this file since 134 was
131,
checked in by rosiere, 15 years ago
|
1) add constant method
2) test with systemc 2.2.0
|
-
Property svn:keywords set to
Id
|
File size:
842 bytes
|
Rev | Line | |
---|
[112] | 1 | /* |
---|
| 2 | * $Id: Model_set_model.cpp 131 2009-07-08 18:40:08Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Model.h" |
---|
[118] | 9 | #include "Common/include/Debug.h" |
---|
[112] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | |
---|
| 14 | #undef FUNCTION |
---|
[113] | 15 | #define FUNCTION "Model::set_model" |
---|
[131] | 16 | void Model::set_model (model_type_t type, bool debug) |
---|
| 17 | { |
---|
| 18 | // log_begin(Behavioural,FUNCTION); |
---|
| 19 | |
---|
| 20 | default_type = type ; |
---|
| 21 | default_debug = debug; |
---|
| 22 | |
---|
| 23 | // log_end(Behavioural,FUNCTION); |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | #undef FUNCTION |
---|
| 27 | #define FUNCTION "Model::set_model" |
---|
[118] | 28 | void Model::set_model (std::string component, model_type_t type, bool debug) |
---|
[112] | 29 | { |
---|
[129] | 30 | // log_begin(Behavioural,FUNCTION); |
---|
[112] | 31 | |
---|
| 32 | model_t model; |
---|
| 33 | model.type = type ; |
---|
| 34 | model.debug = debug; |
---|
| 35 | |
---|
| 36 | models [component] = model; |
---|
| 37 | |
---|
[129] | 38 | // log_end(Behavioural,FUNCTION); |
---|
[112] | 39 | } |
---|
| 40 | |
---|
| 41 | }; // end namespace behavioural |
---|
| 42 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.