NASA Logo
Ocean Color Science Software

ocssw V2022

#include <Product.hpp>

Inheritance diagram for Attribute:
[legend]

Public Member Functions

 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
 

Static Public Member Functions

static Attribute parse_attribute (const netCDF::NcAtt &att)
 
static Attribute parse_attribute (const rapidjson::Value::ConstMemberIterator &data)
 
static Attribute parse (const std::string &input)
 

Protected Attributes

std::string name_
 
ANY a_value_
 
size_t attr_len_
 

Friends

std::ostream & operator<< (std::ostream &out, const Attribute &attribute)
 
bool operator< (const Attribute &left, const Attribute &right)
 
bool operator== (const Attribute &left, const std::string &name)
 
bool operator== (const Attribute &left, const Attribute &right)
 

Detailed Description

Definition at line 193 of file Product.hpp.

Constructor & Destructor Documentation

◆ Attribute() [1/2]

Attribute ( )
default

◆ ~Attribute()

virtual ~Attribute ( )
virtualdefault

◆ Attribute() [2/2]

Attribute ( const std::string name,
const ANY value,
size_t  attr_len 
)
inline

Definition at line 197 of file Product.hpp.

Member Function Documentation

◆ a_value()

const ANY& a_value ( ) const
inline

Definition at line 199 of file Product.hpp.

◆ as_double()

double as_double ( ) const
inline

Definition at line 203 of file Product.hpp.

◆ as_string()

std::string as_string ( ) const
inline

Definition at line 207 of file Product.hpp.

◆ as_vector()

std::vector<T> as_vector ( ) const
inline

Definition at line 212 of file Product.hpp.

◆ attr_len()

size_t attr_len ( ) const
inline

Definition at line 200 of file Product.hpp.

◆ name()

const std::string& name ( ) const
inline

Definition at line 198 of file Product.hpp.

◆ parse()

static Attribute parse ( const std::string input)
inlinestatic

Definition at line 241 of file Product.hpp.

◆ parse_attribute() [1/2]

static Attribute parse_attribute ( const netCDF::NcAtt &  att)
static

◆ parse_attribute() [2/2]

static Attribute parse_attribute ( const rapidjson::Value::ConstMemberIterator &  data)
static

Friends And Related Function Documentation

◆ operator<

bool operator< ( const Attribute left,
const Attribute right 
)
friend

Definition at line 222 of file Product.hpp.

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const Attribute attribute 
)
friend

Definition at line 216 of file Product.hpp.

◆ operator== [1/2]

bool operator== ( const Attribute left,
const Attribute right 
)
friend

Definition at line 234 of file Product.hpp.

◆ operator== [2/2]

bool operator== ( const Attribute left,
const std::string name 
)
friend

Definition at line 230 of file Product.hpp.

Member Data Documentation

◆ a_value_

ANY a_value_
protected

Definition at line 281 of file Product.hpp.

◆ attr_len_

size_t attr_len_
protected

Definition at line 283 of file Product.hpp.

◆ name_

std::string name_
protected

Definition at line 279 of file Product.hpp.


The documentation for this class was generated from the following file:
  • /gfs-oceanweb/web/ocssw/ocssw_src/include/focs/Product.hpp