NASA Logo
Ocean Color Science Software

ocssw V2022

#include <RuntimeAttributes.hpp>

Inheritance diagram for RuntimeAttribute:
[legend]
Collaboration diagram for RuntimeAttribute:
[legend]

Public Member Functions

bool is_valid_attribute () const
 
 RuntimeAttribute ()=default
 
 RuntimeAttribute (const std::string &name, DataProviderConfiguration &configuration)
 
const std::stringget_name () const
 
const std::stringget_grp_name () const
 
std::unique_ptr< RuntimeAttributeinit_attribute (const std::string &name, DataProviderConfiguration &configuration)
 
virtual ~RuntimeAttribute ()=default
 
- Public Member Functions inherited from Attribute
 Attribute ()=default
 
virtual ~Attribute ()=default
 
 Attribute (const std::string &name, const ANY &value, size_t attr_len)
 
const std::stringname () const
 
const ANYa_value () const
 
size_t attr_len () const
 
double as_double () const
 
std::string as_string () const
 
template<typename T >
std::vector< T > as_vector () const
 

Protected Member Functions

void check_needs ()
 

Protected Attributes

std::unordered_map< std::string, focs::BaseVariable * > available_products
 
std::string _run_time_name {}
 
std::string _group_name {}
 
std::string _product_name {}
 
std::vector< std::stringneeded_products {}
 
bool are_needed_products_found {false}
 
- Protected Attributes inherited from Attribute
std::string name_
 
ANY a_value_
 
size_t attr_len_
 

Additional Inherited Members

- Static Public Member Functions inherited from Attribute
static Attribute parse_attribute (const netCDF::NcAtt &att)
 
static Attribute parse_attribute (const rapidjson::Value::ConstMemberIterator &data)
 
static Attribute parse (const std::string &input)
 

Detailed Description

Definition at line 10 of file RuntimeAttributes.hpp.

Constructor & Destructor Documentation

◆ RuntimeAttribute() [1/2]

RuntimeAttribute ( )
default

◆ RuntimeAttribute() [2/2]

RuntimeAttribute ( const std::string name,
DataProviderConfiguration configuration 
)

◆ ~RuntimeAttribute()

virtual ~RuntimeAttribute ( )
virtualdefault

Member Function Documentation

◆ check_needs()

void check_needs ( )
protected

◆ get_grp_name()

const std::string& get_grp_name ( ) const
inline

Definition at line 26 of file RuntimeAttributes.hpp.

◆ get_name()

const std::string& get_name ( ) const
inline

Definition at line 25 of file RuntimeAttributes.hpp.

◆ init_attribute()

std::unique_ptr<RuntimeAttribute> init_attribute ( const std::string name,
DataProviderConfiguration configuration 
)

◆ is_valid_attribute()

bool is_valid_attribute ( ) const
inline

Definition at line 21 of file RuntimeAttributes.hpp.

Member Data Documentation

◆ _group_name

std::string _group_name {}
protected

Definition at line 14 of file RuntimeAttributes.hpp.

◆ _product_name

std::string _product_name {}
protected

Definition at line 15 of file RuntimeAttributes.hpp.

◆ _run_time_name

std::string _run_time_name {}
protected

Definition at line 13 of file RuntimeAttributes.hpp.

◆ are_needed_products_found

bool are_needed_products_found {false}
protected

Definition at line 17 of file RuntimeAttributes.hpp.

◆ available_products

std::unordered_map<std::string, focs::BaseVariable *> available_products
protected

Definition at line 12 of file RuntimeAttributes.hpp.

◆ needed_products

std::vector<std::string> needed_products {}
protected

Definition at line 16 of file RuntimeAttributes.hpp.


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