12 #include "eckit/config/LocalConfiguration.h"
27 explicit IodaEncoder(
const eckit::Configuration& conf);
33 std::map<SubCategory, ioda::ObsGroup>
encode(
const std::shared_ptr<DataContainer>& data,
44 const std::map<std::string, std::string>& subMap);
48 std::vector<std::pair<std::string, std::pair<int, int>>>
55 std::map<std::string, std::string> varMap);
58 std::pair<std::string, std::string>
splitVar(
const std::string& varNameStr);
Definitions for setting up backends with file and memory I/O.
Interfaces for ioda::Group and related classes.
Interfaces for ioda::ObsGroup and related classes.
Describes how to write data to IODA.
Uses IodaDescription and parsed data to create IODA data.
std::pair< std::string, std::string > splitVar(const std::string &varNameStr)
IodaEncoder(const eckit::Configuration &conf)
std::string fixCoordinatesStr(const std::string &coordStr, std::map< std::string, std::string > varMap)
std::map< SubCategory, ioda::ObsGroup > encode(const std::shared_ptr< DataContainer > &data, bool append=false)
Encode the data into an ioda::ObsGroup object.
std::string makeStrWithSubstitions(const std::string &prototype, const std::map< std::string, std::string > &subMap)
Create a string from a template string.
const IodaDescription description_
The description.
std::vector< std::pair< std::string, std::pair< int, int > > > findSubIdxs(const std::string &str)
Used to find indecies of { and } by the makeStrWithSubstitions method.
bool isInteger(const std::string &str) const