UFO
ufo::Variable Class Reference

#include <Variable.h>

Inheritance diagram for ufo::Variable:
Collaboration diagram for ufo::Variable:

Public Member Functions

 Variable (const eckit::Configuration &)
 
 Variable (const std::string &, const eckit::LocalConfiguration conf=eckit::LocalConfiguration())
 
 Variable (const std::string &, const std::vector< int > &)
 
 Variable (const Variable &, const std::string &)
 
 ~Variable ()
 
size_t size () const
 
Variable operator[] (const size_t) const
 
const std::string & variable () const
 
std::string variable (const size_t) const
 
const std::string & group () const
 
const std::vector< int > & channels () const
 
std::string fullName () const
 
oops::Variables toOopsVariables () const
 
const eckit::LocalConfiguration & options () const
 

Static Public Member Functions

static const std::string classname ()
 

Private Member Functions

void print (std::ostream &) const
 

Private Attributes

std::string varname_
 
std::string grpname_
 
std::vector< int > channels_
 
eckit::LocalConfiguration options_
 

Detailed Description

Definition at line 23 of file Variable.h.

Constructor & Destructor Documentation

◆ Variable() [1/4]

ufo::Variable::Variable ( const eckit::Configuration &  conf)
explicit

Definition at line 31 of file Variable.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Variable() [2/4]

ufo::Variable::Variable ( const std::string &  fullname,
const eckit::LocalConfiguration  conf = eckit::LocalConfiguration() 
)
explicit

Definition at line 48 of file Variable.cc.

Here is the call graph for this function:

◆ Variable() [3/4]

ufo::Variable::Variable ( const std::string &  fullname,
const std::vector< int > &  channels 
)

Definition at line 57 of file Variable.cc.

Here is the call graph for this function:

◆ Variable() [4/4]

ufo::Variable::Variable ( const Variable var,
const std::string &  group 
)

Definition at line 66 of file Variable.cc.

◆ ~Variable()

ufo::Variable::~Variable ( )

Definition at line 73 of file Variable.cc.

Member Function Documentation

◆ channels()

const std::vector< int > & ufo::Variable::channels ( ) const

Definition at line 122 of file Variable.cc.

Here is the caller graph for this function:

◆ classname()

static const std::string ufo::Variable::classname ( )
inlinestatic

Definition at line 25 of file Variable.h.

◆ fullName()

std::string ufo::Variable::fullName ( ) const

Return the full variable name including the group name (but no channel number), e.g. air_pressure@MetaData.

Definition at line 128 of file Variable.cc.

Here is the caller graph for this function:

◆ group()

const std::string & ufo::Variable::group ( ) const

Definition at line 116 of file Variable.cc.

Here is the caller graph for this function:

◆ operator[]()

Variable ufo::Variable::operator[] ( const size_t  jch) const

Definition at line 88 of file Variable.cc.

Here is the call graph for this function:

◆ options()

const eckit::LocalConfiguration& ufo::Variable::options ( ) const
inline

Definition at line 47 of file Variable.h.

Here is the caller graph for this function:

◆ print()

void ufo::Variable::print ( std::ostream &  os) const
private

Definition at line 150 of file Variable.cc.

◆ size()

size_t ufo::Variable::size ( ) const

Definition at line 78 of file Variable.cc.

Here is the caller graph for this function:

◆ toOopsVariables()

oops::Variables ufo::Variable::toOopsVariables ( ) const

Definition at line 139 of file Variable.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ variable() [1/2]

const std::string & ufo::Variable::variable ( ) const

Definition at line 99 of file Variable.cc.

Here is the caller graph for this function:

◆ variable() [2/2]

std::string ufo::Variable::variable ( const size_t  jch) const

Definition at line 105 of file Variable.cc.

Here is the call graph for this function:

Member Data Documentation

◆ channels_

std::vector<int> ufo::Variable::channels_
private

Definition at line 53 of file Variable.h.

◆ grpname_

std::string ufo::Variable::grpname_
private

Definition at line 52 of file Variable.h.

◆ options_

eckit::LocalConfiguration ufo::Variable::options_
private

Definition at line 54 of file Variable.h.

◆ varname_

std::string ufo::Variable::varname_
private

Definition at line 51 of file Variable.h.


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