source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/XML_generate_file.cpp @ 3

Last change on this file since 3 was 3, checked in by kane, 17 years ago

1) Ajout d'un "printer" XML pour la configuration de paramètres

2) Fin du composant "Two_Level_Branch_Predictor"

validation * systemc

  • vhdl
File size: 666 bytes
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/XML.h"
9#include <fstream>
10using namespace std;
11
12namespace morpheo              {
13namespace behavioural          {
14
15  void XML::generate_file (string encoding)
16  {
17    header (encoding);
18
19    string name     = _name;
20    string filename =  name + ".xml";
21
22    cout << "Generate file \""<< filename << "\"" << endl;
23
24    ofstream file;
25    file.open(filename.c_str(),ios::out | ios::trunc);
26
27    file << get_body();
28
29    file.close();
30  };
31
32  void XML::generate_file (void)
33  {
34    generate_file("UTF-8");
35  };
36
37}; // end namespace behavioural         
38}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.