source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Configuration_Parameters.cpp @ 81

Last change on this file since 81 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1#ifdef CONFIGURATION
2/*
3 * $Id: Configuration_Parameters.cpp 81 2008-04-15 18:40:01Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/include/Configuration_Parameters.h"
10
11namespace morpheo              {
12namespace behavioural          {
13   
14#undef  FUNCTION
15#define FUNCTION "Configuration_Parameters::Configuration_Parameters"
16  Configuration_Parameters::Configuration_Parameters  (std::string   name   ,
17                                                       uint32_t value  ,
18                                                       uint32_t min    ,
19                                                       uint32_t max    ,
20                                                       std::string   step   ,
21                                                       uint32_t value_default,
22                                                       uint32_t level  ,
23                                                       std::string   comment):
24    _name    (name         ),
25    _value   (value        ),
26    _min     (min          ),
27    _max     (max          ),
28    _step    (step         ),
29    _default (value_default),
30    _level   (level        ),
31    _comment (comment      )
32  {
33    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
34    if ((value<min) or (value>max))
35      throw (ErrorMorpheo ("Parameters \""+name+"\" is out of bound : "+toString(value)+" not include in ["+toString(min)+":"+toString(max)+"]"));
36    log_printf(FUNC,Behavioural,FUNCTION,"End");
37  };
38   
39
40#undef  FUNCTION
41#define FUNCTION "Configuration_Parameters::~Configuration_Parameters"
42  Configuration_Parameters::~Configuration_Parameters () 
43  {
44    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
45    log_printf(FUNC,Behavioural,FUNCTION,"End");
46  };
47
48}; // end namespace behavioural         
49}; // end namespace morpheo             
50#endif
Note: See TracBrowser for help on using the repository browser.