#include <Perimeter.hh>
ignition::rndf::PerimeterHeader::PerimeterHeader |
( |
| ) |
|
ignition::rndf::PerimeterHeader::~PerimeterHeader |
( |
| ) |
|
|
default |
bool ignition::rndf::PerimeterHeader::AddExit |
( |
const Exit & |
_newExit | ) |
|
Add a new exit.
- Parameters
-
[in] | _newExit | The exit to add. |
- Returns
- True when the exit was successfully added or false otherwise (e.g. if the exit was already existing or invalid).
std::vector<Exit>& ignition::rndf::PerimeterHeader::Exits |
( |
| ) |
|
Get a mutable reference to the vector of exits.
- Returns
- A mutable reference to the vector of exits.
const std::vector<Exit>& ignition::rndf::PerimeterHeader::Exits |
( |
| ) |
const |
Get the vector of exits.
- Returns
- The vector of exits.
bool ignition::rndf::PerimeterHeader::Load |
( |
std::ifstream & |
_rndfFile, |
|
|
const int |
_zoneId, |
|
|
const int |
_perimeterId, |
|
|
int & |
_lineNumber |
|
) |
| |
Parsing.
Load a perimeter header from an input stream coming from a text file. The expected format is the one specified on the RNDF spec.
- Parameters
-
[in,out] | _rndfFile | Input file stream. |
[in] | _zoneId | The zone Id in which the spot is located. |
[in] | _perimeterId | The perimeter Id. |
[in,out] | _lineNumber | Line number pointed by the stream position indicator. |
- Returns
- True if a perimeter header block was found and parsed or false otherwise (e.g.: EoF or incorrect format found).
unsigned int ignition::rndf::PerimeterHeader::NumExits |
( |
| ) |
const |
Exits.
Get the number of exits stored.
- Returns
- The number of exits in the current lane.
bool ignition::rndf::PerimeterHeader::RemoveExit |
( |
const Exit & |
_exit | ) |
|
Remove an existing exit.
- Parameters
-
[in] | _exit | The exit to be removed. |
- Returns
- True when the exit was successfully deleted or false otherwise (e.g. if the exit was not found or invalid).
The documentation for this class was generated from the following file: