Uses IodaDescription and parsed data to create IODA data.
More...
#include <IodaEncoder.h>
|
std::string | makeStrWithSubstitions (const std::string &prototype, const std::map< std::string, std::string > &subMap) |
| Create a string from a template string. More...
|
|
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. More...
|
|
bool | isInteger (const std::string &str) const |
|
std::string | fixCoordinatesStr (const std::string &coordStr, std::map< std::string, std::string > varMap) |
|
std::pair< std::string, std::string > | splitVar (const std::string &varNameStr) |
|
Uses IodaDescription and parsed data to create IODA data.
Definition at line 24 of file IodaEncoder.h.
◆ IodaEncoder() [1/2]
Ingester::IodaEncoder::IodaEncoder |
( |
const eckit::Configuration & |
conf | ) |
|
|
explicit |
◆ IodaEncoder() [2/2]
◆ encode()
Encode the data into an ioda::ObsGroup object.
- Parameters
-
data | The data container to use |
append | Add data to existing file? |
Definition at line 32 of file IodaEncoder.cpp.
◆ findSubIdxs()
std::vector< std::pair< std::string, std::pair< int, int > > > Ingester::IodaEncoder::findSubIdxs |
( |
const std::string & |
str | ) |
|
|
private |
Used to find indecies of { and } by the makeStrWithSubstitions method.
- Parameters
-
str | Template string to search. |
Definition at line 208 of file IodaEncoder.cpp.
◆ fixCoordinatesStr()
std::string Ingester::IodaEncoder::fixCoordinatesStr |
( |
const std::string & |
coordStr, |
|
|
std::map< std::string, std::string > |
varMap |
|
) |
| |
|
private |
◆ isInteger()
bool Ingester::IodaEncoder::isInteger |
( |
const std::string & |
str | ) |
const |
|
private |
◆ makeStrWithSubstitions()
std::string Ingester::IodaEncoder::makeStrWithSubstitions |
( |
const std::string & |
prototype, |
|
|
const std::map< std::string, std::string > & |
subMap |
|
) |
| |
|
private |
Create a string from a template string.
- Parameters
-
prototype | A template string ex: "my {dogType} barks". Sections labeled {key} are treated as keys into the dictionary that defines their replacment values. |
Definition at line 179 of file IodaEncoder.cpp.
◆ splitVar()
std::pair<std::string, std::string> Ingester::IodaEncoder::splitVar |
( |
const std::string & |
varNameStr | ) |
|
|
private |
◆ description_
The documentation for this class was generated from the following files: