radar-coord-conversion-utility  0.7
generic Namespace Reference

Generic utility namespace. More...

Functions

bool checkBeamDistance (float value)
 Check if BeamDistance is a valid value. More...
 
bool checkElevation (float value)
 Check if Elevation is a valid value. More...
 
bool checkLatitude (float value)
 Check if latitude is a valid value. More...
 
bool checkLongitude (float value)
 Check if longitude is a valid value. More...
 
float getMissing ()
 Return the missing value used for private attribute (NaN if available or the maximum float supported) More...
 
bool isMissing (float value)
 Check if the float value passed is set to missing value. More...
 

Detailed Description

Generic utility namespace.

Function Documentation

bool generic::checkBeamDistance ( float  value)

Check if BeamDistance is a valid value.

Parameters
[in]value- BeamDistance value to be controlled (greater-equal 0.)
Returns
true if BeamDistance is valide.
bool generic::checkElevation ( float  value)

Check if Elevation is a valid value.

Parameters
[in]value- Elevation value to be controlled (degree above horizon [-5., +90.])
Returns
true if Elevation valide.
bool generic::checkLatitude ( float  value)

Check if latitude is a valid value.

Parameters
[in]value- Latitude value to be controlled (degree N [-90., +90.])
Returns
true if latitude valide.
bool generic::checkLongitude ( float  value)

Check if longitude is a valid value.

Parameters
[in]value- Longitude value to be controlled (degree E [-180., +180.])
Returns
true if longitude valide.
float generic::getMissing ( )

Return the missing value used for private attribute (NaN if available or the maximum float supported)

bool generic::isMissing ( float  value)

Check if the float value passed is set to missing value.

Returns
true is value is equal to missing