source: trunk/IPs/systemC/processor/Morpheo/Behavioural/include/XML.h @ 71

Last change on this file since 71 was 71, checked in by rosiere, 16 years ago

Modification of Statisctics
Add a new systemC component : Load_Store_Queue (tested with one benchmark and one configuration). Store don't supported the Data Buss Error (Load is supported)

File size: 2.4 KB
Line 
1#ifndef morpheo_behavioural_XML_h
2#define morpheo_behavioural_XML_h
3
4/*
5 * $Id$
6 *
7 * [ Description ]
8 *
9 */
10
11#include <stdint.h>
12#include <iostream>
13#include <math.h>
14#include <list>
15#include "Common/include/ToString.h"
16#include "Common/include/Debug.h"
17
18namespace morpheo     {
19namespace behavioural {
20
21  // Virtual Class - Interface of each component
22  class XML
23  {
24    // -----[ fields ]----------------------------------------------------
25  private  : const std::string     _name              ;
26  private  : std::string           _filename_extension;
27  private  : std::string           _body              ;
28  private  : std::list<std::string>     _list_balise_name  ;
29
30    // -----[ methods ]---------------------------------------------------
31  public   :                  XML                 (std::string name);
32  public   :                  ~XML                (void);
33       
34  public   : bool             balise_open         (std::string name); // no attribut
35  public   : bool             balise_open_begin   (std::string name);
36  public   : bool             balise_open_end     (void);     
37  public   : bool             balise_close        (void);     
38  public   : bool             singleton           (std::string name); // no attribut
39  public   : bool             singleton_begin     (std::string name);
40  public   : bool             singleton_end       (void);
41  public   : bool             attribut            (std::string name, std::string value);
42  public   : bool             insert_XML          (XML    xml );
43
44  public   : void             filename_extension  (std::string extension);
45  public   : void             generate_file       (void);
46  public   : void             generate_file       (std::string encoding);
47  public   : std::string           get_body            (void);
48  public   : std::string           get_body            (uint32_t depth);
49
50  public   : bool             comment             (std::string text);
51  public   : bool             text                (std::string text);
52                                                 
53  private  : std::string           indent              (uint32_t depth );
54  private  : std::string           indent              (void);
55  private  : uint32_t         depth               (void);
56                                                 
57  private  : void             header              (std::string encoding);
58  };
59}; // end namespace behavioural         
60}; // end namespace morpheo             
61
62#endif
Note: See TracBrowser for help on using the repository browser.