source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration/include/Generator.h @ 88

Last change on this file since 88 was 88, checked in by rosiere, 15 years ago

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1#ifndef morpheo_behavioural_configuration_Generator_h
2#define morpheo_behavioural_configuration_Generator_h
3
4/*
5 * $Id: Generator.h 88 2008-12-10 18:31:39Z rosiere $
6 *
7 * [ Description ]
8 *
9 */
10
11#include "Behavioural/Configuration/include/Parameter_definition.h"
12#include "Behavioural/Configuration/include/Link_definition.h"
13#include "Behavioural/Configuration/include/XMLUtils.h"
14#include <map>
15
16namespace morpheo {
17namespace behavioural {
18namespace configuration {
19
20  class Generator
21  {
22    // -----[ fields ]----------------------------------------------------
23  private  : std::string _filename;
24  private  : std::map<std::string, Parameter_definition *> * _array_param;
25  private  : std::map<std::string, Link_definition *>      * _array_link;
26
27    // -----[ methods ]---------------------------------------------------
28  public   :                        Generator  (std::string filename);
29  public   :                       ~Generator  ();
30
31  public   : Parameter_definition * getParam   (std::string name);
32  public   : Link_definition *      getLink    (std::string name);
33   
34
35  public   : void                   test       (std::string param,
36                                                std::string x);
37  public   : void                   test       (std::string link,
38                                                std::string father_name,
39                                                bool        father_is_src,
40                                                bool        father_is_dest);
41                                   
42  private  : void                   insert     (Parameter_definition * param);
43  private  : void                   insert     (Link_definition      * param);
44  private  : void                   fromFile   (std::string filename);
45                                   
46  public   : void                   toFile     (std::string dirname=".");
47  private  : XML                    toXML      (void);
48  private  : std::string            print      (uint32_t depth);
49  public   : friend std::ostream&   operator<< (std::ostream& output,
50                                              morpheo::behavioural::configuration::Generator & x);
51  };
52
53}; // end namespace configuration
54}; // end namespace behavioural
55}; // end namespace morpheo             
56
57#endif
Note: See TracBrowser for help on using the repository browser.