radarlib  1.4.6
OdimH5v20::Format Class Reference

HDF5File class. More...

#include <radarlib/odimh5v20_format.hpp>

Static Public Member Functions

static std::string timeToYYYYMMDD (time_t value)
 Convert a time_t value to string. More...
 
static std::string timeToYYYYMMDD (double value)
 Convert a double value representing a time to string. More...
 
static std::string timeToHHMMSS (time_t value)
 Convert a time to a string. More...
 
static std::string timeToHHMMSSsss (time_t value)
 Convert a time to a string. More...
 
static std::string timeToHHMMSSsss (double value)
 Convert a time to a string. More...
 
static time_t YYYYMMDDToTime (const std::string &value)
 Convert a string to a time_t value. More...
 
static time_t HHMMSSToTime (const std::string &value)
 Convert a string to a time_t value. More...
 
static double HHMMSSsssToTime (const std::string &value)
 Convert a string to a time_t value. More...
 

Detailed Description

HDF5File class.

This is an provides several functions to format values according to OdimH5 specifications

Member Function Documentation

static std::string OdimH5v20::Format::timeToYYYYMMDD ( time_t  value)
static

Convert a time_t value to string.

Convert a time_t to a string formatted like 'YYYYMMDD'

Parameters
valuethe time to convert
Exceptions
OdimH5Exceptionif an unexpected error occurs
static std::string OdimH5v20::Format::timeToYYYYMMDD ( double  value)
static

Convert a double value representing a time to string.

Convert a double value representing a time to a string formatted like 'YYYY-MM-DD'. This function truncate the time to seconds

Parameters
valuethe time to convert
Exceptions
OdimH5Exceptionif an unexpected error occurs
static std::string OdimH5v20::Format::timeToHHMMSS ( time_t  value)
static

Convert a time to a string.

Convert a time to a string formatted like 'HHMMSS'.

Parameters
valuethe time to convert
Exceptions
OdimH5Exceptionif an unexpected error occurs
static std::string OdimH5v20::Format::timeToHHMMSSsss ( time_t  value)
static

Convert a time to a string.

Convert a time to a string formatted like 'HHMMSS.000'.

Parameters
valuethe time to convert
Exceptions
OdimH5Exceptionif an unexpected error occurs
static std::string OdimH5v20::Format::timeToHHMMSSsss ( double  value)
static

Convert a time to a string.

Convert a time to a string formatted like 'HHMMSS.sss'.

Parameters
valuethe time to convert
Exceptions
OdimH5Exceptionif an unexpected error occurs
static time_t OdimH5v20::Format::YYYYMMDDToTime ( const std::string &  value)
static

Convert a string to a time_t value.

Convert a string formatted like 'YYYYMMDD' to a time_t value.

Parameters
valuethe string to convert
Exceptions
OdimH5FormatExceptionif the string is not well formated
static time_t OdimH5v20::Format::HHMMSSToTime ( const std::string &  value)
static

Convert a string to a time_t value.

Convert a string formatted like 'HHMMSS' to a time_t value.

Parameters
valuethe string to convert
Exceptions
OdimH5FormatExceptionif the string is not well formated
static double OdimH5v20::Format::HHMMSSsssToTime ( const std::string &  value)
static

Convert a string to a time_t value.

Convert a string formatted like 'HHMMSS.sss' to a double value representing a time value.

Parameters
valuethe string to convert
Exceptions
OdimH5FormatExceptionif the string is not well formated

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