This documentation is not the
Latest Release
.
A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
raw-text-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 RAW_TEXT_CONFIG_H
22
#define RAW_TEXT_CONFIG_H
23
24
#include <string>
25
#include <fstream>
26
#include "
file-config.h
"
27
28
namespace
ns3
{
29
34
class
RawTextConfigSave
:
public
FileConfig
35
{
36
public
:
37
RawTextConfigSave
();
38
virtual
~RawTextConfigSave
();
39
virtual
void
SetFilename
(std::string filename);
40
virtual
void
Default
(
void
);
41
virtual
void
Global
(
void
);
42
virtual
void
Attributes
(
void
);
43
private
:
44
std::ofstream *
m_os
;
45
};
46
51
class
RawTextConfigLoad
:
public
FileConfig
52
{
53
public
:
54
RawTextConfigLoad
();
55
virtual
~RawTextConfigLoad
();
56
virtual
void
SetFilename
(std::string filename);
57
virtual
void
Default
(
void
);
58
virtual
void
Global
(
void
);
59
virtual
void
Attributes
(
void
);
60
private
:
61
std::string
Strip
(std::string value);
62
std::ifstream *
m_is
;
63
};
64
65
}
// namespace ns3
66
67
#endif
/* RAW_TEXT_CONFIG_H */
ns3::RawTextConfigSave
Definition:
raw-text-config.h:34
ns3::RawTextConfigLoad::Attributes
virtual void Attributes(void)
Definition:
raw-text-config.cc:172
file-config.h
ns3::RawTextConfigLoad::SetFilename
virtual void SetFilename(std::string filename)
Definition:
raw-text-config.cc:120
ns3::RawTextConfigSave::SetFilename
virtual void SetFilename(std::string filename)
Definition:
raw-text-config.cc:47
ns3::RawTextConfigLoad::~RawTextConfigLoad
virtual ~RawTextConfigLoad()
Definition:
raw-text-config.cc:110
ns3::RawTextConfigSave::~RawTextConfigSave
virtual ~RawTextConfigSave()
Definition:
raw-text-config.cc:37
ns3::FileConfig
Definition:
file-config.h:32
ns3::RawTextConfigSave::RawTextConfigSave
RawTextConfigSave()
Definition:
raw-text-config.cc:33
ns3::RawTextConfigLoad::Global
virtual void Global(void)
Definition:
raw-text-config.cc:154
ns3::RawTextConfigLoad::RawTextConfigLoad
RawTextConfigLoad()
Definition:
raw-text-config.cc:106
ns3::RawTextConfigLoad::Strip
std::string Strip(std::string value)
Definition:
raw-text-config.cc:126
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::RawTextConfigSave::Attributes
virtual void Attributes(void)
Definition:
raw-text-config.cc:86
ns3::RawTextConfigSave::Default
virtual void Default(void)
Definition:
raw-text-config.cc:53
ns3::RawTextConfigSave::m_os
std::ofstream * m_os
Definition:
raw-text-config.h:44
ns3::RawTextConfigLoad::m_is
std::ifstream * m_is
Definition:
raw-text-config.h:62
ns3::RawTextConfigSave::Global
virtual void Global(void)
Definition:
raw-text-config.cc:76
ns3::RawTextConfigLoad
Definition:
raw-text-config.h:51
ns3::RawTextConfigLoad::Default
virtual void Default(void)
Definition:
raw-text-config.cc:136
src
config-store
model
raw-text-config.h
Generated on Wed Nov 11 2015 20:00:26 for ns-3 by
1.8.9.1