IODA Bundle
odc::api Namespace Reference

Classes

struct  ColumnInfo
 
struct  OdbTypes
 
struct  OdbTypes< IGNORE >
 
struct  OdbTypes< INTEGER >
 
struct  OdbTypes< REAL >
 
struct  OdbTypes< STRING >
 
struct  OdbTypes< BITFIELD >
 
struct  OdbTypes< DOUBLE >
 
struct  FrameImpl
 Internal types. More...
 
class  ReaderImpl
 
struct  DecoderImpl
 
struct  SpanImpl
 
class  Settings
 
class  SpanVisitor
 
class  Span
 
class  Reader
 
class  Frame
 
class  Decoder
 
class  StridedDataT
 

Typedefs

using StridedData = StridedDataT< char >
 
using ConstStridedData = StridedDataT< const char >
 

Enumerations

enum  ColumnType {
  IGNORE = 0 , INTEGER = 1 , REAL = 2 , STRING = 3 ,
  BITFIELD = 4 , DOUBLE = 5
}
 

Functions

size_t odbFromCSV (DataHandle &dh_in, DataHandle &dh_out, const std::string &delimiter)
 odbFromCSV returns number of lines imported More...
 
size_t odbFromCSV (std::istream &in, DataHandle &dh_out, const std::string &delimiter)
 
size_t odbFromCSV (const std::string &in, eckit::DataHandle &dh_out, const std::string &delimiter)
 
void encode (DataHandle &out, const std::vector< ColumnInfo > &columns, const std::vector< ConstStridedData > &data, const std::map< std::string, std::string > &properties, size_t maxRowsPerFrame)
 
void encode (eckit::DataHandle &out, const std::vector< ColumnInfo > &columns, const std::vector< ConstStridedData > &data, const std::map< std::string, std::string > &properties={}, size_t maxRowsPerFrame=10000)
 
size_t odbFromCSV (eckit::DataHandle &dh_in, eckit::DataHandle &dh_out, const std::string &delimiter=",")
 odbFromCSV returns number of lines imported More...
 
size_t odbFromCSV (std::istream &is, eckit::DataHandle &dh_out, const std::string &delimiter=",")
 

Variables

constexpr int NUM_TYPES = 6
 

Typedef Documentation

◆ ConstStridedData

using odc::api::ConstStridedData = typedef StridedDataT<const char>

Definition at line 174 of file StridedData.h.

◆ StridedData

using odc::api::StridedData = typedef StridedDataT<char>

Definition at line 173 of file StridedData.h.

Enumeration Type Documentation

◆ ColumnType

Enumerator
IGNORE 
INTEGER 
REAL 
STRING 
BITFIELD 
DOUBLE 

Definition at line 22 of file ColumnType.h.

Function Documentation

◆ encode() [1/2]

void odc::api::encode ( DataHandle &  out,
const std::vector< ColumnInfo > &  columns,
const std::vector< ConstStridedData > &  data,
const std::map< std::string, std::string > &  properties,
size_t  maxRowsPerFrame 
)

Definition at line 400 of file Odb.cc.

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

◆ encode() [2/2]

void odc::api::encode ( eckit::DataHandle &  out,
const std::vector< ColumnInfo > &  columns,
const std::vector< ConstStridedData > &  data,
const std::map< std::string, std::string > &  properties = {},
size_t  maxRowsPerFrame = 10000 
)

Definition at line 400 of file Odb.cc.

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

◆ odbFromCSV() [1/5]

size_t odc::api::odbFromCSV ( const std::string &  in,
eckit::DataHandle &  dh_out,
const std::string &  delimiter 
)

Definition at line 393 of file Odb.cc.

Here is the call graph for this function:

◆ odbFromCSV() [2/5]

size_t odc::api::odbFromCSV ( DataHandle &  dh_in,
DataHandle &  dh_out,
const std::string &  delimiter 
)

odbFromCSV returns number of lines imported

Definition at line 375 of file Odb.cc.

Here is the caller graph for this function:

◆ odbFromCSV() [3/5]

size_t odc::api::odbFromCSV ( eckit::DataHandle &  dh_in,
eckit::DataHandle &  dh_out,
const std::string &  delimiter = "," 
)

odbFromCSV returns number of lines imported

Definition at line 375 of file Odb.cc.

Here is the caller graph for this function:

◆ odbFromCSV() [4/5]

size_t odc::api::odbFromCSV ( std::istream &  in,
DataHandle &  dh_out,
const std::string &  delimiter 
)

Definition at line 384 of file Odb.cc.

Here is the call graph for this function:

◆ odbFromCSV() [5/5]

size_t odc::api::odbFromCSV ( std::istream &  is,
eckit::DataHandle &  dh_out,
const std::string &  delimiter = "," 
)

Definition at line 384 of file Odb.cc.

Here is the call graph for this function:

Variable Documentation

◆ NUM_TYPES

constexpr int odc::api::NUM_TYPES = 6
constexpr

Definition at line 31 of file ColumnType.h.