#include <Perimeter.hh>
Public Member Functions | |
| PerimeterHeader () | |
| Default constructor. More... | |
| ~PerimeterHeader ()=default | |
| Destructor. More... | |
| bool | AddExit (const Exit &_newExit) |
| Add a new exit. More... | |
| std::vector< Exit > & | Exits () |
| Get a mutable reference to the vector of exits. More... | |
| const std::vector< Exit > & | Exits () const |
| Get the vector of exits. More... | |
| bool | Load (std::ifstream &_rndfFile, const int _zoneId, const int _perimeterId, int &_lineNumber) |
| Parsing. More... | |
| unsigned int | NumExits () const |
| Exits. More... | |
| bool | RemoveExit (const Exit &_exit) |
| Remove an existing exit. More... | |
| ignition::rndf::PerimeterHeader::PerimeterHeader | ( | ) |
Default constructor.
|
default |
Destructor.
| bool ignition::rndf::PerimeterHeader::AddExit | ( | const Exit & | _newExit | ) |
Add a new exit.
| [in] | _newExit | The exit to add. |
| std::vector<Exit>& ignition::rndf::PerimeterHeader::Exits | ( | ) |
Get a mutable reference to the vector of exits.
| const std::vector<Exit>& ignition::rndf::PerimeterHeader::Exits | ( | ) | const |
Get 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.
| [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. |
| unsigned int ignition::rndf::PerimeterHeader::NumExits | ( | ) | const |
Exits.
Get the number of exits stored.
| bool ignition::rndf::PerimeterHeader::RemoveExit | ( | const Exit & | _exit | ) |
Remove an existing exit.
| [in] | _exit | The exit to be removed. |