IODA Bundle
odc::core::MetaData Class Reference

#include <MetaData.h>

Inheritance diagram for odc::core::MetaData:
[legend]
Collaboration diagram for odc::core::MetaData:
[legend]

Public Member Functions

 MetaData ()
 
 MetaData (int)
 
 MetaData (int, Column *)
 
 MetaData (const MetaData &)
 
MetaDataclone () const
 
unsigned long long rowsNumber () const
 
void rowsNumber (unsigned long long n)
 
unsigned long long dataSize () const
 
void dataSize (unsigned long long n)
 
MetaDataoperator= (const MetaData &)
 
MetaDataoperator+= (const MetaData &)
 
MetaData operator+ (const MetaData &)
 
bool operator== (const MetaData &) const
 Check if number of columns, column names and column types are equal. Values not checked. More...
 
bool equals (const MetaData &md, bool compareDataSizes=true) const
 
bool equalsIncludingConstants (const MetaData &, const std::vector< std::string > &constColumns) const
 
bool operator!= (const MetaData &other) const
 
bool compatible (const MetaData &other) const
 
void operator|= (const MetaData &other)
 
template<typename ByteStream >
void save (DataStream< ByteStream > &ds) const
 
template<typename ByteStream >
void load (DataStream< ByteStream > &ds)
 
void setSize (size_t)
 
MetaDataaddColumn (const std::string &name, const std::string &type)
 
template<typename ByteOrder >
MetaDataaddColumnPrivate (const std::string &name, const std::string &type)
 
bool allColumnsInitialised () const
 
MetaDataaddBitfield (const std::string &name, const eckit::sql::BitfieldDef &)
 
template<typename ByteOrder >
MetaDataaddBitfieldPrivate (const std::string &name, const eckit::sql::BitfieldDef &)
 
bool hasColumn (const std::string &) const
 
ColumncolumnByName (const std::string &) const
 
size_t columnIndex (const std::string &) const
 
void resetStats ()
 
template<typename ByteOrder >
void resetCodecs ()
 
virtual ~MetaData ()
 
virtual void print (std::ostream &s) const
 
template<typename ByteOrder >
void save (DataStream< ByteOrder > &ds) const
 
template<typename ByteOrder >
void load (DataStream< ByteOrder > &ds)
 

Static Public Member Functions

static api::ColumnType convertType (const std::string &)
 

Private Attributes

unsigned long long rowsNumber_
 
unsigned long long dataSize_
 

Friends

std::ostream & operator<< (std::ostream &s, const MetaData &p)
 

Detailed Description

Definition at line 31 of file MetaData.h.

Constructor & Destructor Documentation

◆ MetaData() [1/4]

odc::core::MetaData::MetaData ( )

Definition at line 23 of file MetaData.cc.

Here is the caller graph for this function:

◆ MetaData() [2/4]

odc::core::MetaData::MetaData ( int  i)

Definition at line 24 of file MetaData.cc.

◆ MetaData() [3/4]

odc::core::MetaData::MetaData ( int  i,
Column p 
)

Definition at line 25 of file MetaData.cc.

◆ MetaData() [4/4]

odc::core::MetaData::MetaData ( const MetaData md)

Definition at line 28 of file MetaData.cc.

◆ ~MetaData()

odc::core::MetaData::~MetaData ( )
virtual

Definition at line 77 of file MetaData.cc.

Member Function Documentation

◆ addBitfield()

MetaData & odc::core::MetaData::addBitfield ( const std::string &  name,
const eckit::sql::BitfieldDef &  bf 
)

Definition at line 297 of file MetaData.cc.

Here is the caller graph for this function:

◆ addBitfieldPrivate()

template<typename ByteOrder >
MetaData & odc::core::MetaData::addBitfieldPrivate ( const std::string &  name,
const eckit::sql::BitfieldDef &  bd 
)

Definition at line 152 of file MetaData.h.

◆ addColumn()

MetaData & odc::core::MetaData::addColumn ( const std::string &  name,
const std::string &  type 
)

Definition at line 279 of file MetaData.cc.

Here is the caller graph for this function:

◆ addColumnPrivate()

template<typename ByteOrder >
MetaData & odc::core::MetaData::addColumnPrivate ( const std::string &  name,
const std::string &  type 
)

Definition at line 139 of file MetaData.h.

Here is the call graph for this function:

◆ allColumnsInitialised()

bool odc::core::MetaData::allColumnsInitialised ( ) const

Definition at line 284 of file MetaData.cc.

Here is the caller graph for this function:

◆ clone()

MetaData * odc::core::MetaData::clone ( ) const

Definition at line 57 of file MetaData.cc.

Here is the call graph for this function:

◆ columnByName()

Column * odc::core::MetaData::columnByName ( const std::string &  name) const

Definition at line 84 of file MetaData.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ columnIndex()

size_t odc::core::MetaData::columnIndex ( const std::string &  name) const

Definition at line 95 of file MetaData.cc.

Here is the caller graph for this function:

◆ compatible()

bool odc::core::MetaData::compatible ( const MetaData other) const

Definition at line 231 of file MetaData.cc.

Here is the call graph for this function:

◆ convertType()

ColumnType odc::core::MetaData::convertType ( const std::string &  t)
static

Definition at line 35 of file MetaData.cc.

◆ dataSize() [1/2]

unsigned long long odc::core::MetaData::dataSize ( ) const
inline

Definition at line 42 of file MetaData.h.

Here is the caller graph for this function:

◆ dataSize() [2/2]

void odc::core::MetaData::dataSize ( unsigned long long  n)
inline

Definition at line 43 of file MetaData.h.

◆ equals()

bool odc::core::MetaData::equals ( const MetaData md,
bool  compareDataSizes = true 
) const

Definition at line 216 of file MetaData.cc.

Here is the caller graph for this function:

◆ equalsIncludingConstants()

bool odc::core::MetaData::equalsIncludingConstants ( const MetaData other,
const std::vector< std::string > &  constColumns 
) const

Definition at line 171 of file MetaData.cc.

Here is the call graph for this function:

◆ hasColumn()

bool odc::core::MetaData::hasColumn ( const std::string &  name) const

Definition at line 87 of file MetaData.cc.

Here is the caller graph for this function:

◆ load() [1/2]

template<typename ByteOrder >
void odc::core::MetaData::load ( DataStream< ByteOrder > &  ds)

Definition at line 121 of file MetaData.h.

Here is the call graph for this function:

◆ load() [2/2]

template<typename ByteStream >
void odc::core::MetaData::load ( DataStream< ByteStream > &  ds)
Here is the caller graph for this function:

◆ operator!=()

bool odc::core::MetaData::operator!= ( const MetaData other) const
inline

Definition at line 55 of file MetaData.h.

◆ operator+()

MetaData odc::core::MetaData::operator+ ( const MetaData rhs)

Definition at line 164 of file MetaData.cc.

◆ operator+=()

MetaData & odc::core::MetaData::operator+= ( const MetaData rhs)

Definition at line 136 of file MetaData.cc.

◆ operator=()

MetaData & odc::core::MetaData::operator= ( const MetaData other)

Definition at line 112 of file MetaData.cc.

◆ operator==()

bool odc::core::MetaData::operator== ( const MetaData other) const

Check if number of columns, column names and column types are equal. Values not checked.

Definition at line 212 of file MetaData.cc.

Here is the call graph for this function:

◆ operator|=()

void odc::core::MetaData::operator|= ( const MetaData other)

Definition at line 151 of file MetaData.cc.

◆ print()

void odc::core::MetaData::print ( std::ostream &  s) const
virtual

Definition at line 272 of file MetaData.cc.

◆ resetCodecs()

template<typename ByteOrder >
void odc::core::MetaData::resetCodecs ( )
inline

Definition at line 96 of file MetaData.h.

Here is the caller graph for this function:

◆ resetStats()

void odc::core::MetaData::resetStats ( )

Definition at line 263 of file MetaData.cc.

Here is the caller graph for this function:

◆ rowsNumber() [1/2]

unsigned long long odc::core::MetaData::rowsNumber ( ) const
inline

Definition at line 39 of file MetaData.h.

Here is the caller graph for this function:

◆ rowsNumber() [2/2]

void odc::core::MetaData::rowsNumber ( unsigned long long  n)
inline

Definition at line 40 of file MetaData.h.

◆ save() [1/2]

template<typename ByteOrder >
void odc::core::MetaData::save ( DataStream< ByteOrder > &  ds) const

Definition at line 112 of file MetaData.h.

Here is the call graph for this function:

◆ save() [2/2]

template<typename ByteStream >
void odc::core::MetaData::save ( DataStream< ByteStream > &  ds) const

◆ setSize()

void odc::core::MetaData::setSize ( size_t  n)

Definition at line 64 of file MetaData.cc.

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  s,
const MetaData p 
)
friend

Definition at line 102 of file MetaData.h.

Member Data Documentation

◆ dataSize_

unsigned long long odc::core::MetaData::dataSize_
private

Definition at line 107 of file MetaData.h.

◆ rowsNumber_

unsigned long long odc::core::MetaData::rowsNumber_
private

Definition at line 106 of file MetaData.h.


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