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

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

Modif mineur : ajout d'info de débug

Release non stable

File size: 2.3 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 "Include/ToString.h"
16#include "Include/Debug.h"
17
18using namespace std;
19
20namespace morpheo     {
21namespace behavioural {
22
23  // Virtual Class - Interface of each component
24  class XML
25  {
26    // -----[ fields ]----------------------------------------------------
27  private  : const string     _name              ;
28  private  : string           _filename_extension;
29  private  : string           _body              ;
30  private  : list<string>     _list_balise_name  ;
31
32    // -----[ methods ]---------------------------------------------------
33  public   :                  XML                 (string name);
34  public   :                  ~XML                (void);
35       
36  public   : bool             balise_open         (string name); // no attribut
37  public   : bool             balise_open_begin   (string name);
38  public   : bool             balise_open_end     (void);     
39  public   : bool             balise_close        (void);     
40  public   : bool             singleton           (string name); // no attribut
41  public   : bool             singleton_begin     (string name);
42  public   : bool             singleton_end       (void);
43  public   : bool             attribut            (string name, string value);
44  public   : bool             insert_XML          (XML    xml );
45
46  public   : void             filename_extension  (string extension);
47  public   : void             generate_file       (void);
48  public   : void             generate_file       (string encoding);
49  public   : string           get_body            (void);
50  public   : string           get_body            (uint32_t depth);
51
52  public   : bool             comment             (string text);
53  public   : bool             text                (string text);
54                                                 
55  private  : string           indent              (uint32_t depth );
56  private  : string           indent              (void);
57  private  : uint32_t         depth               (void);
58                                                 
59  private  : void             header              (string encoding);
60  };
61}; // end namespace behavioural         
62}; // end namespace morpheo             
63
64#endif
Note: See TracBrowser for help on using the repository browser.