MeteoIODoc 2.11.0
mio::iCSV::MetaDataSection Struct Reference

Detailed Description

Stores information on the METADATA section of a iCSV file.

#include <iCSVHelper.h>

Public Member Functions

void setEPSG (const int &in_epsg)
 Set the EPSG code and update the SRID. More...
 
std::string getOptionalMetaData (const std::string &key) const
 Get the value of an optional metadata field. More...
 
std::map< std::string, std::string > toMetaMap () const
 Convert the metadata section to a map. More...
 
std::map< std::string, std::string > toOutputMap () const
 Convert the metadata section to an output map. More...
 

Public Attributes

char field_delimiter = '0'
 
std::string geometry = ""
 
std::string srid = ""
 
int epsg = -1
 
std::string station_id = ""
 
std::string timestamp_meaning = ""
 
double nodata = default_nodata
 
double timezone = default_nodata
 
std::string doi = ""
 
std::map< std::string, std::string > optional_metadata = {}
 
const std::vector< char > valid_delimiters = {',', '/', '\\', '|', ':', ';'}
 

Member Function Documentation

◆ getOptionalMetaData()

std::string mio::iCSV::MetaDataSection::getOptionalMetaData ( const std::string &  key) const
inline

Get the value of an optional metadata field.

Parameters
keyThe key of the optional metadata field.
Returns
The value of the optional metadata field.

◆ setEPSG()

void mio::iCSV::MetaDataSection::setEPSG ( const int &  in_epsg)
inline

Set the EPSG code and update the SRID.

Parameters
in_epsgThe EPSG code.

◆ toMetaMap()

std::map< std::string, std::string > mio::iCSV::MetaDataSection::toMetaMap ( ) const
inline

Convert the metadata section to a map.

Returns
The metadata section as a map.

◆ toOutputMap()

std::map< std::string, std::string > mio::iCSV::MetaDataSection::toOutputMap ( ) const
inline

Convert the metadata section to an output map.

Returns
The metadata section as an output map.

Member Data Documentation

◆ doi

std::string mio::iCSV::MetaDataSection::doi = ""

The Digital Object Identifier.

◆ epsg

int mio::iCSV::MetaDataSection::epsg = -1

The EPSG code.

◆ field_delimiter

char mio::iCSV::MetaDataSection::field_delimiter = '0'

The field delimiter character.

◆ geometry

std::string mio::iCSV::MetaDataSection::geometry = ""

The geometry information.

◆ nodata

double mio::iCSV::MetaDataSection::nodata = default_nodata

The nodata value.

◆ optional_metadata

std::map<std::string, std::string> mio::iCSV::MetaDataSection::optional_metadata = {}

The optional metadata.

◆ srid

std::string mio::iCSV::MetaDataSection::srid = ""

The spatial reference system identifier.

◆ station_id

std::string mio::iCSV::MetaDataSection::station_id = ""

The station identifier.

◆ timestamp_meaning

std::string mio::iCSV::MetaDataSection::timestamp_meaning = ""

The meaning of the timestamp.

◆ timezone

double mio::iCSV::MetaDataSection::timezone = default_nodata

The timezone value.

◆ valid_delimiters

const std::vector<char> mio::iCSV::MetaDataSection::valid_delimiters = {',', '/', '\\', '|', ':', ';'}

The valid delimiters.


The documentation for this struct was generated from the following file: