A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
topology-reader-helper.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2010 Universita' di Firenze, Italy
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: Tommaso Pecorella (tommaso.pecorella@unifi.it)
19
* Author: Valerio Sartini (valesar@gmail.com)
20
*/
21
22
#ifndef TOPOLOGY_READER_HELPER_H
23
#define TOPOLOGY_READER_HELPER_H
24
25
#include "ns3/topology-reader.h"
26
#include <string>
27
34
namespace
ns3
{
35
41
class
TopologyReaderHelper
42
{
43
public
:
44
TopologyReaderHelper
();
45
50
void
SetFileName
(
const
std::string fileName);
51
56
void
SetFileType
(
const
std::string fileType);
57
62
Ptr<TopologyReader>
GetTopologyReader
();
63
64
private
:
65
Ptr<TopologyReader>
m_inputModel
;
66
std::string
m_fileName
;
67
std::string
m_fileType
;
68
};
69
70
}
// namespace ns3
71
72
73
#endif
/* TOPOLOGY_READER_HELPER_H */
ns3::Ptr
Smart pointer class similar to boost::intrusive_ptr.
Definition:
ptr.h:74
ns3::TopologyReaderHelper
Helper class which makes it easier to configure and use a generic TopologyReader.
Definition:
topology-reader-helper.h:42
ns3::TopologyReaderHelper::m_fileName
std::string m_fileName
Name of the input file.
Definition:
topology-reader-helper.h:66
ns3::TopologyReaderHelper::SetFileType
void SetFileType(const std::string fileType)
Sets the input file type.
Definition:
topology-reader-helper.cc:51
ns3::TopologyReaderHelper::TopologyReaderHelper
TopologyReaderHelper()
Definition:
topology-reader-helper.cc:39
ns3::TopologyReaderHelper::m_inputModel
Ptr< TopologyReader > m_inputModel
Smart pointer to the actual topology model.
Definition:
topology-reader-helper.h:65
ns3::TopologyReaderHelper::GetTopologyReader
Ptr< TopologyReader > GetTopologyReader()
Gets a Ptr<TopologyReader> to the actual TopologyReader.
Definition:
topology-reader-helper.cc:58
ns3::TopologyReaderHelper::SetFileName
void SetFileName(const std::string fileName)
Sets the input file name.
Definition:
topology-reader-helper.cc:45
ns3::TopologyReaderHelper::m_fileType
std::string m_fileType
Type of the input file (e.g., "Inet", "Orbis", etc.).
Definition:
topology-reader-helper.h:67
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
topology-read
helper
topology-reader-helper.h
Generated on Tue Feb 6 2024 19:21:27 for ns-3 by
1.9.1