An internal private RNDF header class. More...
#include <RNDF.hh>
Public Member Functions | |
| RNDFHeader () | |
| Default constructor. More... | |
| ~RNDFHeader ()=default | |
| Destructor. More... | |
| std::string | Date () const |
| Date. More... | |
| bool | Load (std::ifstream &_rndfFile, int &_lineNumber) |
| Parsing. More... | |
| void | SetDate (const std::string &_newDate) const |
| Set the creation date. More... | |
| void | SetVersion (const std::string &_version) const |
| Set the format version. More... | |
| std::string | Version () const |
| Version. More... | |
An internal private RNDF header class.
| manifold::rndf::RNDFHeader::RNDFHeader | ( | ) |
Default constructor.
|
default |
Destructor.
| std::string manifold::rndf::RNDFHeader::Date | ( | ) | const |
Date.
Get the creation date.
| bool manifold::rndf::RNDFHeader::Load | ( | std::ifstream & | _rndfFile, |
| int & | _lineNumber | ||
| ) |
Parsing.
Load a RNDF 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,out] | _lineNumber | Line number pointed by the stream position indicator. |
| void manifold::rndf::RNDFHeader::SetDate | ( | const std::string & | _newDate | ) | const |
Set the creation date.
| [in] | _date | The new creation date. |
| void manifold::rndf::RNDFHeader::SetVersion | ( | const std::string & | _version | ) | const |
Set the format version.
| [in] | _version | The new version. |
| std::string manifold::rndf::RNDFHeader::Version | ( | ) | const |
Version.
Get the format version. E.g.: "2.3.6".