libwreport 2.1
|
Implement fast access to information about WMO variables. More...
Go to the source code of this file.
Data Structures | |
class | wreport::Vartable |
Holds a variable information table. More... | |
Namespaces | |
namespace | wreport |
Main namespace. |
Implement fast access to information about WMO variables.
The measured value of a physical quantity has little meaning without specifying what quantity it represents, what units are used to measure it, and how many digits are significant for the value.
This module provides access to all this metadata:
There are many B tables with slight differences used by different meteorological centre or equipment. This module allows to access different vartables using Vartable::get().
Vartable and Varinfo have special memory management: they are never deallocated. This is a precise design choice to speed up passing and copying Varinfo values, that are used very intensely as they accompany all the physical values processed by DB-All.e and its components. This behaviour should not be a cause of memory leaks, since a software would only need to access a limited amount of B tables during its lifetime.
To construct a wreport::Varcode value one needs to provide three numbers: F, X and Y.
The normal text representation of a wreport::Varcode for a WMO B table uses the format Bxxyyy.