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

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

Class Position qui encapsule la génération des fichiers de positions

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