A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
file-config.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2009 INRIA
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Mathieu Lacage <mathieu.lacage@cutebugs.net>
7
*/
8
9
#ifndef FILE_CONFIG_H
10
#define FILE_CONFIG_H
11
12
#include <string>
13
14
namespace
ns3
15
{
16
17
/**
18
* \ingroup configstore
19
* \brief base class for ConfigStore classes using files
20
*
21
*/
22
class
FileConfig
23
{
24
public
:
25
virtual
~FileConfig
();
26
/**
27
* Set the file name
28
* \param filename the filename
29
*/
30
virtual
void
SetFilename
(std::string filename) = 0;
31
/**
32
* Load or save the default values
33
*/
34
virtual
void
Default
() = 0;
35
/**
36
* Load or save the global values
37
*/
38
virtual
void
Global
() = 0;
39
/**
40
* Load or save the attributes values
41
*/
42
virtual
void
Attributes
() = 0;
43
};
44
45
/**
46
* \ingroup configstore
47
* \brief A dummy class (does nothing)
48
*/
49
class
NoneFileConfig
:
public
FileConfig
50
{
51
public
:
52
NoneFileConfig
();
53
~NoneFileConfig
()
override
;
54
void
SetFilename
(std::string filename)
override
;
55
void
Default
()
override
;
56
void
Global
()
override
;
57
void
Attributes
()
override
;
58
};
59
60
}
// namespace ns3
61
62
#endif
/* FILE_CONFIG_H */
ns3::FileConfig
base class for ConfigStore classes using files
Definition
file-config.h:23
ns3::FileConfig::Attributes
virtual void Attributes()=0
Load or save the attributes values.
ns3::FileConfig::~FileConfig
virtual ~FileConfig()
Definition
file-config.cc:14
ns3::FileConfig::SetFilename
virtual void SetFilename(std::string filename)=0
Set the file name.
ns3::FileConfig::Default
virtual void Default()=0
Load or save the default values.
ns3::FileConfig::Global
virtual void Global()=0
Load or save the global values.
ns3::NoneFileConfig
A dummy class (does nothing)
Definition
file-config.h:50
ns3::NoneFileConfig::Default
void Default() override
Load or save the default values.
Definition
file-config.cc:32
ns3::NoneFileConfig::Global
void Global() override
Load or save the global values.
Definition
file-config.cc:37
ns3::NoneFileConfig::SetFilename
void SetFilename(std::string filename) override
Set the file name.
Definition
file-config.cc:27
ns3::NoneFileConfig::Attributes
void Attributes() override
Load or save the attributes values.
Definition
file-config.cc:42
ns3::NoneFileConfig::~NoneFileConfig
~NoneFileConfig() override
Definition
file-config.cc:22
ns3::NoneFileConfig::NoneFileConfig
NoneFileConfig()
Definition
file-config.cc:18
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
config-store
model
file-config.h
Generated on Fri Nov 8 2024 13:58:59 for ns-3 by
1.11.0