IODA Bundle
Ingester::StrVecDataObject Class Reference

Container for data that can be expressed as lists of strings. More...

#include <StrVecDataObject.h>

Inheritance diagram for Ingester::StrVecDataObject:
[legend]
Collaboration diagram for Ingester::StrVecDataObject:
[legend]

Public Member Functions

 StrVecDataObject (const std::vector< std::string > &strVector)
 
 ~StrVecDataObject ()=default
 
ioda::Variable createVariable (ioda::ObsGroup &obsGroup, const std::string &name, const std::vector< ioda::Variable > &dimensions, const std::vector< ioda::Dimensions_t > &chunks, int compressionLevel) final
 Makes an ioda::Variable and ads it to the given ioda::ObsGroup. More...
 
void print () const final
 Print data to stdout for debug purposes. More...
 
size_t nrows () const final
 Get the number of rows represented in the data. More...
 
size_t ncols () const final
 Get the number of columns represented in the data. More...
 
std::vector< std::string > get () const
 

Static Private Member Functions

static ioda::VariableCreationParameters makeCreationParams (const std::vector< ioda::Dimensions_t > &chunks, int compressionLevel)
 Create an ioda::VariableCreationParameters for the data. More...
 

Private Attributes

const std::vector< std::string > strVector_
 The data. More...
 

Detailed Description

Container for data that can be expressed as lists of strings.

Definition at line 19 of file StrVecDataObject.h.

Constructor & Destructor Documentation

◆ StrVecDataObject()

Ingester::StrVecDataObject::StrVecDataObject ( const std::vector< std::string > &  strVector)
explicit

Definition at line 15 of file StrVecDataObject.cpp.

◆ ~StrVecDataObject()

Ingester::StrVecDataObject::~StrVecDataObject ( )
default

Member Function Documentation

◆ createVariable()

ioda::Variable Ingester::StrVecDataObject::createVariable ( ioda::ObsGroup obsGroup,
const std::string &  name,
const std::vector< ioda::Variable > &  dimensions,
const std::vector< ioda::Dimensions_t > &  chunks,
int  compressionLevel 
)
finalvirtual

Makes an ioda::Variable and ads it to the given ioda::ObsGroup.

Parameters
obsGroupObsgroup were to add the variable
nameThe name to associate with the variable (ex "latitude@MetaData")
dimensionsList of Variables to use as the dimensions for this new variable
chunksList of integers specifying the chunking dimensions
compressionLevelThe GZip compression level to use, must be 0-9

Implements Ingester::DataObject.

Definition at line 20 of file StrVecDataObject.cpp.

Here is the call graph for this function:

◆ get()

std::vector<std::string> Ingester::StrVecDataObject::get ( ) const
inline

Definition at line 47 of file StrVecDataObject.h.

Here is the caller graph for this function:

◆ makeCreationParams()

ioda::VariableCreationParameters Ingester::StrVecDataObject::makeCreationParams ( const std::vector< ioda::Dimensions_t > &  chunks,
int  compressionLevel 
)
staticprivate

Create an ioda::VariableCreationParameters for the data.

Parameters
chunksList of integers specifying the chunking dimensions
compressionLevelThe GZip compression level to use, must be 0-9

Definition at line 50 of file StrVecDataObject.cpp.

Here is the caller graph for this function:

◆ ncols()

size_t Ingester::StrVecDataObject::ncols ( ) const
finalvirtual

Get the number of columns represented in the data.

Implements Ingester::DataObject.

Definition at line 45 of file StrVecDataObject.cpp.

◆ nrows()

size_t Ingester::StrVecDataObject::nrows ( ) const
finalvirtual

Get the number of rows represented in the data.

Implements Ingester::DataObject.

Definition at line 40 of file StrVecDataObject.cpp.

◆ print()

void Ingester::StrVecDataObject::print ( ) const
finalvirtual

Print data to stdout for debug purposes.

Implements Ingester::DataObject.

Definition at line 32 of file StrVecDataObject.cpp.

Member Data Documentation

◆ strVector_

const std::vector<std::string> Ingester::StrVecDataObject::strVector_
private

The data.

Definition at line 51 of file StrVecDataObject.h.


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