radarlib  1.4.6
OdimH5v21::AZTimes Class Reference

Azimuth angles pair. More...

#include <radarlib/odimh5v21_support.hpp>

Public Member Functions

 AZTimes ()
 Create an object with start and stop set to 0. More...
 
 AZTimes (double start, double stop)
 Create a pair and set fields decoding the indicated string. More...
 
 AZTimes (const std::string &str)
 Create a pair and object fields decoding the indicated string. More...
 
void set (double start, double stop)
 Set fields. More...
 
void parse (const std::string &str)
 Set object fields decoding the indicated string The string must be formated acording to OdimH5 specifications. More...
 
std::string toString () const
 Convert times to a string formated acording to OdimH5 specifications. More...
 

Static Public Member Functions

static std::vector< AZTimesparseSequence (const std::string &str)
 Create a collection of azimuth times splitting and decoding a string. More...
 
static std::vector< AZTimesparseSimpleArrays (const std::vector< double > &first, const std::vector< double > &second)
 Create a collection of azimuth times importing two vector of double. More...
 
static std::string toString (const std::vector< AZTimes > &right)
 Convert a collection of azimuth timesto a string formated acording to OdimH5 specifications. More...
 

Public Attributes

double start
 Start azimuth time (seconds.milliseconds) More...
 
double stop
 Start azimuth time (seconds.milliseconds) More...
 

Detailed Description

Azimuth angles pair.

This class represent a ray's start and stop azimuth times expressed as 'secconds.milliseconds' from 1970

See Also
PolarScan | AZAngles

Constructor & Destructor Documentation

OdimH5v21::AZTimes::AZTimes ( )

Create an object with start and stop set to 0.

OdimH5v21::AZTimes::AZTimes ( double  start,
double  stop 
)

Create a pair and set fields decoding the indicated string.

Parameters
startvalue for start time
stopvalue for stop time
OdimH5v21::AZTimes::AZTimes ( const std::string &  str)

Create a pair and object fields decoding the indicated string.

Parameters
stra string formatted like "value:value"
Exceptions
OdimH5FormatExceptionThrowed when string format is not valid

Member Function Documentation

void OdimH5v21::AZTimes::set ( double  start,
double  stop 
)

Set fields.

Parameters
startvalue for start time
stopvalue for stop time
void OdimH5v21::AZTimes::parse ( const std::string &  str)

Set object fields decoding the indicated string The string must be formated acording to OdimH5 specifications.

Parameters
strthe string to parse
Exceptions
OdimH5FormatExceptionThrowed when string format is not valid
std::string OdimH5v21::AZTimes::toString ( ) const

Convert times to a string formated acording to OdimH5 specifications.

std::vector< AZTimes > OdimH5v21::AZTimes::parseSequence ( const std::string &  str)
static

Create a collection of azimuth times splitting and decoding a string.

Parameters
stra string formatted like "value:value,value:value,..."
Exceptions
OdimH5FormatExceptionThrowed when string format is not valid
std::vector< AZTimes > OdimH5v21::AZTimes::parseSimpleArrays ( const std::vector< double > &  first,
const std::vector< double > &  second 
)
static

Create a collection of azimuth times importing two vector of double.

Parameters
firsta vector of double
seconda vector of double
Exceptions
OdimH5FormatExceptionThrowed when string format is not valid
std::string OdimH5v21::AZTimes::toString ( const std::vector< AZTimes > &  right)
static

Convert a collection of azimuth timesto a string formated acording to OdimH5 specifications.

Member Data Documentation

double OdimH5v21::AZTimes::start

Start azimuth time (seconds.milliseconds)

Azimuth start time is always lower than stop time

double OdimH5v21::AZTimes::stop

Start azimuth time (seconds.milliseconds)

Azimuth stop time is always bigger than start time


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