Loading...
Searching...
No Matches
satellite-output-fstream-wrapper.h
Go to the documentation of this file.
1/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2013 Magister Solutions Ltd.
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: Frans Laakso <frans.laakso@magister.fi>
19 */
20
21#ifndef SAT_OUTPUT_FSTREAM_WRAPPER_H
22#define SAT_OUTPUT_FSTREAM_WRAPPER_H
23
24#include "ns3/object.h"
25#include "ns3/simple-ref-count.h"
26
27#include <fstream>
28
29namespace ns3
30{
31
41class SatOutputFileStreamWrapper : public SimpleRefCount<SatOutputFileStreamWrapper>
42{
43 public:
49 SatOutputFileStreamWrapper(std::string filename, std::ios::openmode filemode);
50
55
60 std::ofstream* GetStream(void);
61
62 private:
66 std::ofstream* m_ofstream;
67
72};
73
74} // namespace ns3
75
76#endif /* SAT_OUTPUT_FSTREAM_WRAPPER_H */
SatOutputFileStreamWrapper(std::string filename, std::ios::openmode filemode)
Constructor.
std::ofstream * GetStream(void)
Return a pointer to an ofstream previously set in the wrapper.
std::ofstream * m_ofstream
Output file stream.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.