|
@@ -6,6 +6,7 @@
|
|
|
|
|
|
#include "Road.h"
|
|
#include "Road.h"
|
|
#include "controller.h"
|
|
#include "controller.h"
|
|
|
|
+#include "junctiongroup.h"
|
|
//--Prototypes--
|
|
//--Prototypes--
|
|
//main
|
|
//main
|
|
class Header;
|
|
class Header;
|
|
@@ -37,6 +38,7 @@ private:
|
|
vector<Road> mRoadVector;
|
|
vector<Road> mRoadVector;
|
|
vector<Junction> mJunctionVector;
|
|
vector<Junction> mJunctionVector;
|
|
vector<Controller> mControllerVector;
|
|
vector<Controller> mControllerVector;
|
|
|
|
+ vector<JunctionGroup> mJunctionGroupVector;
|
|
|
|
|
|
/**
|
|
/**
|
|
* Indices of the last added records
|
|
* Indices of the last added records
|
|
@@ -44,6 +46,7 @@ private:
|
|
unsigned int mLastAddedRoad;
|
|
unsigned int mLastAddedRoad;
|
|
unsigned int mLastAddedJunction;
|
|
unsigned int mLastAddedJunction;
|
|
unsigned int mLastAddedController;
|
|
unsigned int mLastAddedController;
|
|
|
|
+ unsigned int mLastAddedJunctionGroup;
|
|
|
|
|
|
// //-------------------------------------------------
|
|
// //-------------------------------------------------
|
|
|
|
|
|
@@ -81,6 +84,7 @@ public:
|
|
unsigned int AddRoad(string name, double length, string id, string junction);
|
|
unsigned int AddRoad(string name, double length, string id, string junction);
|
|
unsigned int AddJunction(string name, string id);
|
|
unsigned int AddJunction(string name, string id);
|
|
unsigned int AddController(string id);
|
|
unsigned int AddController(string id);
|
|
|
|
+ unsigned int AddJunctionGroup(std::string id, std::string type);
|
|
|
|
|
|
/**
|
|
/**
|
|
* Methods used to delete records from the respective vectors
|
|
* Methods used to delete records from the respective vectors
|
|
@@ -88,6 +92,7 @@ public:
|
|
void DeleteRoad(unsigned int index);
|
|
void DeleteRoad(unsigned int index);
|
|
void DeleteJunction(unsigned int index);
|
|
void DeleteJunction(unsigned int index);
|
|
void DeleteController(unsigned int index);
|
|
void DeleteController(unsigned int index);
|
|
|
|
+ void DeleteJunctionGroup(unsigned int index);
|
|
|
|
|
|
//-------------------------------------------------
|
|
//-------------------------------------------------
|
|
|
|
|
|
@@ -97,12 +102,15 @@ public:
|
|
Road* GetLastRoad();
|
|
Road* GetLastRoad();
|
|
Junction* GetLastJunction();
|
|
Junction* GetLastJunction();
|
|
Controller* GetLastController();
|
|
Controller* GetLastController();
|
|
|
|
+ JunctionGroup* GetLastJunctionGroup();
|
|
|
|
|
|
/**
|
|
/**
|
|
* Getters for the last added records in their respective vectors
|
|
* Getters for the last added records in their respective vectors
|
|
*/
|
|
*/
|
|
Road* GetLastAddedRoad();
|
|
Road* GetLastAddedRoad();
|
|
Controller* GetLastAddedController();
|
|
Controller* GetLastAddedController();
|
|
|
|
+ Junction* GetLastAddedJunction();
|
|
|
|
+ JunctionGroup* GetLastAddedJunctionGroup();
|
|
|
|
|
|
/**
|
|
/**
|
|
* Getter for the OpenDrive header
|
|
* Getter for the OpenDrive header
|
|
@@ -124,6 +132,10 @@ public:
|
|
vector<Controller> * GetControllerVector();
|
|
vector<Controller> * GetControllerVector();
|
|
Controller* GetController(unsigned int i);
|
|
Controller* GetController(unsigned int i);
|
|
unsigned int GetControllerCount();
|
|
unsigned int GetControllerCount();
|
|
|
|
+ //Junction Group records
|
|
|
|
+ vector<JunctionGroup> * GetJunctionGroupVector();
|
|
|
|
+ JunctionGroup* GetJunctionGroup(unsigned int i);
|
|
|
|
+ unsigned int GetJunctionGroupCount();
|
|
|
|
|
|
//-------------------------------------------------
|
|
//-------------------------------------------------
|
|
|
|
|