Uses a BufrDescription and helper classes to parse the contents of a BUFR file.
More...
#include <BufrParser.h>
Uses a BufrDescription and helper classes to parse the contents of a BUFR file.
Definition at line 30 of file BufrParser.h.
◆ CatDataMap
◆ BufrParser() [1/2]
◆ BufrParser() [2/2]
Ingester::BufrParser::BufrParser |
( |
const eckit::Configuration & |
conf | ) |
|
|
explicit |
◆ ~BufrParser()
Ingester::BufrParser::~BufrParser |
( |
| ) |
|
◆ closeBufrFile()
void Ingester::BufrParser::closeBufrFile |
( |
| ) |
|
|
private |
◆ exportData()
◆ openBufrFile()
void Ingester::BufrParser::openBufrFile |
( |
const std::string & |
filepath, |
|
|
bool |
isWmoFormat, |
|
|
const std::string & |
tablepath |
|
) |
| |
|
private |
Opens a BUFR file using the Fortran BUFR interface.
- Parameters
-
filepath | Path to bufr file. |
isWmoFormat | optional Bufr file is in the standard format. |
tablepath | optional Path to WMO master tables (needed for standard bufr files). |
Definition at line 151 of file BufrParser.cpp.
◆ parse()
std::shared_ptr< DataContainer > Ingester::BufrParser::parse |
( |
const size_t |
maxMsgsToParse = 0 | ) |
|
|
finalvirtual |
Uses the provided description to parse the buffer file.
- Parameters
-
maxMsgsToParse | Messages to parse (0 for everything) |
Implements Ingester::Parser.
Definition at line 54 of file BufrParser.cpp.
◆ printMap()
void Ingester::BufrParser::printMap |
( |
const CatDataMap & |
map | ) |
|
|
private |
Convenience method to print the Categorical data map to stdout.
Definition at line 196 of file BufrParser.cpp.
◆ reset()
void Ingester::BufrParser::reset |
( |
| ) |
|
|
finalvirtual |
◆ splitData()
Function responsible for dividing the data into subcategories.
This function is intended to be called over and over for each specified Split object, sub-splitting the data given into all the possible subcategories.
- Parameters
-
splitMaps | Pre-split map of data. |
split | Object that knows how to split data. |
Definition at line 132 of file BufrParser.cpp.
◆ description_
The description the defines what to parse from the BUFR file.
Definition at line 49 of file BufrParser.h.
◆ fortranFileId_
unsigned int Ingester::BufrParser::fortranFileId_ |
|
private |
The Fortran file ID to an open BUFR file (0 when no file open)
Definition at line 52 of file BufrParser.h.
◆ table1FileId_
unsigned int Ingester::BufrParser::table1FileId_ |
|
private |
The Fortran file ID to an open BUFR file (0 when no file open)
Definition at line 55 of file BufrParser.h.
◆ table2FileId_
unsigned int Ingester::BufrParser::table2FileId_ |
|
private |
The Fortran file ID to an open BUFR file (0 when no file open)
Definition at line 58 of file BufrParser.h.
The documentation for this class was generated from the following files: