A Discrete-Event Network Simulator
API
file-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 FILE_CONFIG_H
22#define FILE_CONFIG_H
23
24#include <string>
25
26namespace ns3 {
27
34{
35public:
36 virtual ~FileConfig ();
41 virtual void SetFilename (std::string filename) = 0;
46 void SetSaveDeprecated (bool saveDeprecated);
50 virtual void Default (void) = 0;
54 virtual void Global (void) = 0;
58 virtual void Attributes (void) = 0;
59
60protected:
62};
63
69{
70public:
72 virtual ~NoneFileConfig ();
73 virtual void SetFilename (std::string filename);
74 virtual void Default (void);
75 virtual void Global (void);
76 virtual void Attributes (void);
77};
78
79} // namespace ns3
80
81#endif /* FILE_CONFIG_H */
base class for ConfigStore classes using files
Definition: file-config.h:34
void SetSaveDeprecated(bool saveDeprecated)
Set if to save deprecated attributes.
Definition: file-config.cc:30
virtual ~FileConfig()
Definition: file-config.cc:25
virtual void Attributes(void)=0
Load or save the attributes values.
virtual void SetFilename(std::string filename)=0
Set the file name.
bool m_saveDeprecated
save deprecated attributes
Definition: file-config.h:61
virtual void Global(void)=0
Load or save the global values.
virtual void Default(void)=0
Load or save the default values.
A dummy class (does nothing)
Definition: file-config.h:69
virtual ~NoneFileConfig()
Definition: file-config.cc:38
virtual void SetFilename(std::string filename)
Set the file name.
Definition: file-config.cc:42
virtual void Global(void)
Load or save the global values.
Definition: file-config.cc:48
virtual void Default(void)
Load or save the default values.
Definition: file-config.cc:45
virtual void Attributes(void)
Load or save the attributes values.
Definition: file-config.cc:51
Every class exported by the ns3 library is enclosed in the ns3 namespace.