A Discrete-Event Network Simulator
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
14namespace ns3
15{
16
17/**
18 * \ingroup configstore
19 * \brief base class for ConfigStore classes using files
20 *
21 */
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 */
50{
51 public:
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 */
base class for ConfigStore classes using files
Definition file-config.h:23
virtual void Attributes()=0
Load or save the attributes values.
virtual ~FileConfig()
virtual void SetFilename(std::string filename)=0
Set the file name.
virtual void Default()=0
Load or save the default values.
virtual void Global()=0
Load or save the global values.
A dummy class (does nothing)
Definition file-config.h:50
void Default() override
Load or save the default values.
void Global() override
Load or save the global values.
void SetFilename(std::string filename) override
Set the file name.
void Attributes() override
Load or save the attributes values.
~NoneFileConfig() override
Every class exported by the ns3 library is enclosed in the ns3 namespace.