A Discrete-Event Network Simulator
API
xml-config.h
Go to the documentation of this file.
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2 /*
3  * Copyright (c) 2009 INRIA
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation;
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  *
18  * Author: Mathieu Lacage <mathieu.lacage@cutebugs.net>
19  */
20 
21 #ifndef XML_CONFIG_STORE_H
22 #define XML_CONFIG_STORE_H
23 
24 #include <string>
25 #include <libxml/xmlwriter.h>
26 #include <libxml/xmlreader.h>
27 #include "file-config.h"
28 
29 namespace ns3 {
30 
35 class XmlConfigSave : public FileConfig
36 {
37 public:
38  XmlConfigSave ();
39  virtual ~XmlConfigSave ();
40 
41  virtual void SetFilename (std::string filename);
42  virtual void Default (void);
43  virtual void Global (void);
44  virtual void Attributes (void);
45 private:
46  xmlTextWriterPtr m_writer;
47 };
48 
53 class XmlConfigLoad : public FileConfig
54 {
55 public:
56  XmlConfigLoad ();
57  virtual ~XmlConfigLoad ();
58 
59  virtual void SetFilename (std::string filename);
60  virtual void Default (void);
61  virtual void Global (void);
62  virtual void Attributes (void);
63 private:
64  std::string m_filename;
65 };
66 
67 } // namespace ns3
68 
69 #endif /* XML_CONFIG_STORE_H */
virtual void Attributes(void)
Definition: xml-config.cc:315
virtual void SetFilename(std::string filename)
Definition: xml-config.cc:233
virtual void Default(void)
Definition: xml-config.cc:101
virtual ~XmlConfigSave()
Definition: xml-config.cc:79
virtual ~XmlConfigLoad()
Definition: xml-config.cc:227
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual void SetFilename(std::string filename)
Definition: xml-config.cc:42
virtual void Global(void)
Definition: xml-config.cc:190
std::string m_filename
Definition: xml-config.h:64
virtual void Attributes(void)
Definition: xml-config.cc:147
virtual void Global(void)
Definition: xml-config.cc:277
virtual void Default(void)
Definition: xml-config.cc:239
xmlTextWriterPtr m_writer
Definition: xml-config.h:46