source: trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Parameters.h @ 44

Last change on this file since 44 was 44, checked in by rosiere, 17 years ago

Modification des classes d'encapsulation des interfaces.
Stable sur tous les composants actuels

File size: 1.7 KB
Line 
1#ifndef morpheo_behavioural_Parameters_h
2#define morpheo_behavioural_Parameters_h
3
4/*
5 * $Id$
6 *
7 * [ Description ]
8 *
9 */
10
11#include <stdint.h>
12#include <iostream>
13#include <math.h>
14#include "Behavioural/Constant/Constant_OpenRISC.h"
15#include "Behavioural/include/Environnement.h"
16#include "Common/include/ErrorMorpheo.h"
17#include "Common/include/ToString.h"
18#include "Common/include/Debug.h"
19
20using namespace morpheo::behavioural::constant;
21using namespace std;
22
23namespace morpheo     {
24namespace behavioural {
25
26  // Virtual Class - Interface of each component
27  class Parameters
28  {
29    // -----[ fields ]----------------------------------------------------
30
31    // -----[ methods ]---------------------------------------------------
32  public   :                  Parameters            (void);
33  public   : virtual          ~Parameters           ();
34       
35    // methods to print and test parameters
36  public   : virtual string   print                 (uint32_t depth) = 0;
37  public   : virtual string   msg_error             (void) = 0;
38
39    // methods to generate configuration file
40
41   
42    // methods to test
43  public   :         void     test                  (void);
44  public   :         bool     is_natural            (double  val );
45  public   :         bool     is_positive           (double  val );
46  public   :         bool     is_multiple           (uint32_t val1,
47                                                     uint32_t val2);
48  public   :         bool     is_between_inclusive  (uint32_t val,
49                                                     uint32_t min,
50                                                     uint32_t max);
51  public   :         bool     is_between_exclusive  (uint32_t val,
52                                                     uint32_t min,
53                                                     uint32_t max);
54  };
55
56}; // end namespace behavioural         
57}; // end namespace morpheo             
58
59#endif
Note: See TracBrowser for help on using the repository browser.