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
|
Line | |
---|
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" |
---|
9 | #include "Common/include/Debug.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | |
---|
14 | #undef FUNCTION |
---|
15 | #define FUNCTION "Model::set_model" |
---|
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" |
---|
28 | void Model::set_model (std::string component, model_type_t type, bool debug) |
---|
29 | { |
---|
30 | // log_begin(Behavioural,FUNCTION); |
---|
31 | |
---|
32 | model_t model; |
---|
33 | model.type = type ; |
---|
34 | model.debug = debug; |
---|
35 | |
---|
36 | models [component] = model; |
---|
37 | |
---|
38 | // log_end(Behavioural,FUNCTION); |
---|
39 | } |
---|
40 | |
---|
41 | }; // end namespace behavioural |
---|
42 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.