All Classes Namespaces Files Functions Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
manifold::rndf::ParkingSpotHeader Class Reference

#include <ParkingSpot.hh>

Public Member Functions

 ParkingSpotHeader ()
 Default constructor. More...
 
 ~ParkingSpotHeader ()=default
 Destructor. More...
 
rndf::CheckpointCheckpoint ()
 Checkpoint. More...
 
const rndf::CheckpointCheckpoint () const
 Get the checkpoint. More...
 
bool Load (std::ifstream &_rndfFile, const int _zoneId, const int _spotId, int &_lineNumber)
 Parsing. More...
 
bool SetWidth (const double _newWidth)
 Set the parking spot width. More...
 
double Width () const
 Width. More...
 

Constructor & Destructor Documentation

manifold::rndf::ParkingSpotHeader::ParkingSpotHeader ( )

Default constructor.

manifold::rndf::ParkingSpotHeader::~ParkingSpotHeader ( )
default

Destructor.

Member Function Documentation

rndf::Checkpoint& manifold::rndf::ParkingSpotHeader::Checkpoint ( )

Checkpoint.

Get a mutable reference to the checkpoint.

Returns
A mutable reference to the checkpoint.
const rndf::Checkpoint& manifold::rndf::ParkingSpotHeader::Checkpoint ( ) const

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]_rndfFileInput file stream.
[in]_zoneIdThe zone Id in which the spot is located.
[in]_spotIdThe spot Id.
[in,out]_lineNumberLine 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]_newWidthThe 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: