NASA Logo
Ocean Color Science Software

ocssw V2022

#include <FileReader.hpp>

Public Member Functions

 AttributeReader (const std::filesystem::path &path, const std::string &mode="default", const std::unordered_set< std::string > &products_requested={})
 
 AttributeReader (netCDF::NcFile &nc, const std::string &key)
 
 AttributeReader (FileReaderHints &hints, const std::string &key)
 
 AttributeReader ()
 
 ~AttributeReader ()=default
 
void addAttributes (const std::filesystem::path &path, const std::string &mode="default", const std::unordered_set< std::string > &products_requested={})
 
void addAttributes (FileReaderHints &hints, const std::string &key)
 
void addAttributes (netCDF::NcFile &nc, const std::string &key)
 
template<typename T , std::enable_if_t< is_prod_gen_attr< T >, bool > = true, typename pointer_type = decltype((std::declval<T>().getAttrGen())), std::enable_if_t< std::is_same_v< pointer_type, const ProdAttrGeneric & >, bool > = true>
void addAttributes (T &&storage_object, const std::string &mode, const std::unordered_set< std::string > &products_requested={})
 
template<typename T , std::enable_if_t< is_iterable< T >, bool > = true, typename pointer_type = decltype(*(std::declval<T>().begin())), std::enable_if_t< std::is_same_v< pointer_type, const Attribute & >, bool > = true>
void addAttributes (const T &custom_attrs, const std::string &type, const std::string &mode="add")
 
const std::unordered_map< std::string, std::set< focs::Attribute > > & getAttrs () const
 

Protected Attributes

std::unique_ptr< ConfigReader_config
 
std::unordered_map< std::string, ConfigReaderconfigs
 
std::unordered_map< std::string, std::set< focs::Attribute > > _attributes
 
productInfo_t * info = nullptr
 

Detailed Description

Definition at line 130 of file FileReader.hpp.

Constructor & Destructor Documentation

◆ AttributeReader() [1/4]

AttributeReader ( const std::filesystem::path &  path,
const std::string mode = "default",
const std::unordered_set< std::string > &  products_requested = {} 
)

◆ AttributeReader() [2/4]

AttributeReader ( netCDF::NcFile &  nc,
const std::string key 
)

◆ AttributeReader() [3/4]

◆ AttributeReader() [4/4]

◆ ~AttributeReader()

~AttributeReader ( )
default

Member Function Documentation

◆ addAttributes() [1/5]

void addAttributes ( const std::filesystem::path &  path,
const std::string mode = "default",
const std::unordered_set< std::string > &  products_requested = {} 
)

◆ addAttributes() [2/5]

void addAttributes ( const T &  custom_attrs,
const std::string type,
const std::string mode = "add" 
)
inline

Definition at line 184 of file FileReader.hpp.

◆ addAttributes() [3/5]

void addAttributes ( FileReaderHints hints,
const std::string key 
)

◆ addAttributes() [4/5]

void addAttributes ( netCDF::NcFile &  nc,
const std::string key 
)

◆ addAttributes() [5/5]

void addAttributes ( T &&  storage_object,
const std::string mode,
const std::unordered_set< std::string > &  products_requested = {} 
)
inline

Definition at line 152 of file FileReader.hpp.

◆ getAttrs()

const std::unordered_map<std::string,std::set<focs::Attribute> >& getAttrs ( ) const

Member Data Documentation

◆ _attributes

std::unordered_map<std::string,std::set<focs::Attribute> > _attributes
protected

Definition at line 135 of file FileReader.hpp.

◆ _config

std::unique_ptr<ConfigReader> _config
protected

Definition at line 133 of file FileReader.hpp.

◆ configs

std::unordered_map<std::string,ConfigReader> configs
protected

Definition at line 134 of file FileReader.hpp.

◆ info

productInfo_t* info = nullptr
protected

Definition at line 136 of file FileReader.hpp.


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