mirror of
https://gitlab.ibr.cs.tu-bs.de/tschuber/ns-3-leo.git
synced 2025-06-08 10:03:58 +02:00
Move utils to thesis
This commit is contained in:
parent
ab0fcddb3e
commit
10c4cdda49
11 changed files with 2 additions and 191 deletions
|
@ -1,42 +0,0 @@
|
|||
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
|
||||
|
||||
#ifndef LEO_INPUT_FSTREAM_CONTAINER
|
||||
#define LEO_INPUT_FSTREAM_CONTAINER
|
||||
|
||||
#include <fstream>
|
||||
#include "ns3/object.h"
|
||||
#include "ns3/waypoint.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace ns3
|
||||
{
|
||||
|
||||
class LeoWaypointInputFileStreamContainer : public Object
|
||||
{
|
||||
public:
|
||||
static TypeId GetTypeId (void);
|
||||
|
||||
LeoWaypointInputFileStreamContainer ();
|
||||
virtual ~LeoWaypointInputFileStreamContainer ();
|
||||
|
||||
LeoWaypointInputFileStreamContainer (string filePath, Time lastTime);
|
||||
|
||||
bool GetNextSample (Waypoint &sample);
|
||||
|
||||
void SetFile (const string path);
|
||||
string GetFile () const;
|
||||
|
||||
void SetLastTime (const Time lastTime);
|
||||
Time GetLastTime () const;
|
||||
|
||||
private:
|
||||
string m_filePath;
|
||||
Time m_lastTime;
|
||||
ifstream m_input;
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue