#include <ParkingSpot.hh>
manifold::rndf::ParkingSpotHeader::ParkingSpotHeader |
( |
| ) |
|
manifold::rndf::ParkingSpotHeader::~ParkingSpotHeader |
( |
| ) |
|
|
default |
Checkpoint.
Get a mutable reference to the checkpoint.
- Returns
- A mutable reference to the checkpoint.
Get the checkpoint.
- Returns
- The checkpoint.
bool manifold::rndf::ParkingSpotHeader::Load |
( |
std::ifstream & |
_rndfFile, |
|
|
const int |
_zoneId, |
|
|
const int |
_spotId, |
|
|
int & |
_lineNumber |
|
) |
| |
Parsing.
Load a parking spot 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] | _spotId | The spot Id. |
[in,out] | _lineNumber | Line number pointed by the stream position indicator. |
- Returns
- True if a parking spot header block was found and parsed or false otherwise (e.g.: EoF or incorrect format found).
bool manifold::rndf::ParkingSpotHeader::SetWidth |
( |
const double |
_newWidth | ) |
|
Set the parking spot width.
- Parameters
-
[in] | _newWidth | The new width in meters. |
double manifold::rndf::ParkingSpotHeader::Width |
( |
| ) |
const |
Width.
Get the parking spot width in meters.
- Returns
- Return the parking spot width in meters.
The documentation for this class was generated from the following file: