OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022

#include <Product.hpp>

Public Member Functions

 Product ()
 
 Product (std::string name)
 
 Product (std::string name, const std::initializer_list< Attribute > &&attributes)
 
 Product (std::string name, const std::set< Attribute > &attributes)
 
 Product (std::string name, const std::set< Attribute > &&attributes, std::vector< std::shared_ptr< AttributeCondition >> &&conditions)
 
 Product (std::string name, const std::set< Attribute > &attributes, const std::vector< std::shared_ptr< AttributeCondition >> &&conditions)
 
 Product (std::string name, const std::vector< std::shared_ptr< AttributeCondition >> &conditions)
 
 Product (std::string name, std::vector< std::shared_ptr< AttributeCondition >> &&conditions)
 
void name (std::string name)
 
const std::stringname () const
 
auto & attributes ()
 
auto & conditions ()
 
auto & attributes () const
 
auto & conditions () const
 
void add_attribute (const Attribute &attr)
 
bool matches (const std::vector< Product > &other) const
 
bool matches (const Product &other) const
 
void variable (BaseVariable *variable)
 
BaseVariablevariable () const
 

Static Public Member Functions

static size_t skip_passed_char (const std::string &input, size_t pos, char c, bool in_quotes=false)
 
static std::vector< Productparse_list (const std::string &input)
 
static Product parse (const std::string &input)
 

Friends

bool operator== (const Product &me, const Product &other)
 
std::ostream & operator<< (std::ostream &out, const Product &product)
 

Detailed Description

Definition at line 303 of file Product.hpp.

Constructor & Destructor Documentation

◆ Product() [1/8]

Product ( )
inline

Definition at line 305 of file Product.hpp.

◆ Product() [2/8]

Product ( std::string  name)
inline

Definition at line 306 of file Product.hpp.

◆ Product() [3/8]

Product ( std::string  name,
const std::initializer_list< Attribute > &&  attributes 
)
inline

Definition at line 308 of file Product.hpp.

◆ Product() [4/8]

Product ( std::string  name,
const std::set< Attribute > &  attributes 
)
inline

Definition at line 309 of file Product.hpp.

◆ Product() [5/8]

Product ( std::string  name,
const std::set< Attribute > &&  attributes,
std::vector< std::shared_ptr< AttributeCondition >> &&  conditions 
)
inline

Definition at line 311 of file Product.hpp.

◆ Product() [6/8]

Product ( std::string  name,
const std::set< Attribute > &  attributes,
const std::vector< std::shared_ptr< AttributeCondition >> &&  conditions 
)
inline

Definition at line 312 of file Product.hpp.

◆ Product() [7/8]

Product ( std::string  name,
const std::vector< std::shared_ptr< AttributeCondition >> &  conditions 
)
inline

Definition at line 314 of file Product.hpp.

◆ Product() [8/8]

Product ( std::string  name,
std::vector< std::shared_ptr< AttributeCondition >> &&  conditions 
)
inline

Definition at line 315 of file Product.hpp.

Member Function Documentation

◆ add_attribute()

void add_attribute ( const Attribute attr)
inline

Definition at line 329 of file Product.hpp.

◆ attributes() [1/2]

auto& attributes ( )
inline

Definition at line 322 of file Product.hpp.

◆ attributes() [2/2]

auto& attributes ( ) const
inline

Definition at line 325 of file Product.hpp.

◆ conditions() [1/2]

auto& conditions ( )
inline

Definition at line 323 of file Product.hpp.

◆ conditions() [2/2]

auto& conditions ( ) const
inline

Definition at line 326 of file Product.hpp.

◆ matches() [1/2]

bool matches ( const Product other) const
inline

Definition at line 345 of file Product.hpp.

◆ matches() [2/2]

bool matches ( const std::vector< Product > &  other) const
inline

Definition at line 337 of file Product.hpp.

◆ name() [1/2]

const std::string& name ( ) const
inline

Definition at line 320 of file Product.hpp.

◆ name() [2/2]

void name ( std::string  name)
inline

Definition at line 319 of file Product.hpp.

◆ parse()

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

Definition at line 450 of file Product.hpp.

◆ parse_list()

static std::vector<Product> parse_list ( const std::string input)
inlinestatic

Definition at line 425 of file Product.hpp.

◆ skip_passed_char()

static size_t skip_passed_char ( const std::string input,
size_t  pos,
char  c,
bool  in_quotes = false 
)
inlinestatic

Definition at line 402 of file Product.hpp.

◆ variable() [1/2]

BaseVariable* variable ( ) const
inline

Definition at line 400 of file Product.hpp.

◆ variable() [2/2]

void variable ( BaseVariable variable)
inline

Definition at line 399 of file Product.hpp.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  out,
const Product product 
)
friend

Definition at line 376 of file Product.hpp.

◆ operator==

bool operator== ( const Product me,
const Product other 
)
friend

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