MeteoIODoc 20261004.b9219c1f
Environmental timeseries pre-processing
Loading...
Searching...
No Matches
mio::iCSV::MetaDataSection Struct Reference

Detailed Description

Stores information on the METADATA section of a iCSV file.

#include <iCSVHelper.h>

Public Member Functions

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

Public Attributes

std::string field_delimiter = "0"
 The field delimiter character (must be as string for libz).
 
std::string geometry = ""
 The geometry information.
 
std::string srid = ""
 The spatial reference system identifier.
 
std::string station_id = ""
 The station identifier.
 
std::string timestamp_meaning = ""
 The meaning of the timestamp.
 
std::string doi = ""
 The Digital Object Identifier.
 
double nodata = default_nodata
 The nodata value.
 
double timezone = default_nodata
 The timezone value.
 
int epsg = -1
 The EPSG code.
 
std::map< std::string, std::string > optional_metadata = {}
 The optional metadata.
 
const std::vector< std::string > valid_delimiters = {",", "/", "\\", "|", ":", ";"}
 The 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.

◆ toString()

std::string mio::iCSV::MetaDataSection::toString ( ) const
inline

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

std::string mio::iCSV::MetaDataSection::field_delimiter = "0"

The field delimiter character (must be as string for libz).

◆ 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<std::string> mio::iCSV::MetaDataSection::valid_delimiters = {",", "/", "\\", "|", ":", ";"}

The valid delimiters.


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