OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022

#include <Product.hpp>

Public Member Functions

 Attribute (const std::string &name, AttributeType value)
 
const std::stringname () const
 
const AttributeTypevalue () const
 
const AttributeTypeoperator* () 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 (const std::string &input)
 

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 39 of file Product.hpp.

Constructor & Destructor Documentation

◆ Attribute()

Attribute ( const std::string name,
AttributeType  value 
)
inline

Definition at line 41 of file Product.hpp.

Member Function Documentation

◆ as_double()

double as_double ( ) const
inline

Definition at line 47 of file Product.hpp.

◆ as_string()

std::string as_string ( ) const
inline

Definition at line 51 of file Product.hpp.

◆ as_vector()

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

Definition at line 56 of file Product.hpp.

◆ name()

const std::string& name ( ) const
inline

Definition at line 43 of file Product.hpp.

◆ operator*()

const AttributeType& operator* ( ) const
inline

Definition at line 45 of file Product.hpp.

◆ parse()

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

Definition at line 85 of file Product.hpp.

◆ value()

const AttributeType& value ( ) const
inline

Definition at line 44 of file Product.hpp.

Friends And Related Function Documentation

◆ operator<

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

Definition at line 66 of file Product.hpp.

◆ operator<<

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

Definition at line 60 of file Product.hpp.

◆ operator== [1/2]

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

Definition at line 78 of file Product.hpp.

◆ operator== [2/2]

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

Definition at line 74 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