IODA Bundle
odccapi.cc File Reference
#include "eckit/runtime/Main.h"
#include "odc/core/MetaData.h"
#include "odc/core/TablesReader.h"
#include "odc/ODAHandle.h"
#include "odc/ODBAPISettings.h"
#include "odc/ODBAPIVersion.h"
#include "odc/odccapi.h"
#include "odc/Select.h"
#include "odc/SelectIterator.h"
#include "odc/Reader.h"
#include "odc/Writer.h"
#include "odc/api/odc.h"
Include dependency graph for odccapi.cc:

Go to the source code of this file.

Functions

template<typename T , typename I >
int get_bitfield (T it, int index, char **bitfield_names, char **bitfield_sizes, int *nSize, int *sSize)
 
void odb_start ()
 
int odc_git_sha1 (const char **o)
 
void odb_start_with_args (int argc, char *argv[])
 
double odb_count (const char *filename)
 
int get_blocks_offsets (const char *fileName, size_t *numberOfBlocks, off_t **offsets, size_t **sizes)
 
int release_blocks_offsets (off_t **offsets)
 
int release_blocks_sizes (size_t **sizes)
 
unsigned int odb_get_headerBufferSize ()
 
void odb_set_headerBufferSize (unsigned int n)
 
unsigned int odb_get_setvbufferSize ()
 
void odb_set_setvbufferSize (unsigned int n)
 
unsigned int odc_format_version_major ()
 
unsigned int odc_format_version_minor ()
 
oda_ptr odb_read_create (const char *config, int *err)
 
oda_ptr odb_create (const char *config, int *err)
 
oda_ptr odb_select_create (const char *config, int *err)
 
oda_writer_ptr odb_writer_create (const char *config, int *err)
 
int odb_read_destroy (oda_ptr o)
 
int odb_destroy (oda_ptr o)
 
int odb_select_destroy (oda_ptr o)
 
int odb_writer_destroy (oda_writer_ptr o)
 
oda_read_iterator_ptr odb_create_read_iterator (oda_ptr co, const char *filename, int *err)
 
oda_select_iterator_ptr odb_create_select_iterator (oda_ptr co, const char *sql, int *err)
 
oda_select_iterator_ptr odb_create_select_iterator_from_file (oda_ptr co, const char *sql, const char *filename, int *err)
 
int odb_read_iterator_destroy (oda_read_iterator_ptr it)
 
int odb_select_iterator_destroy (oda_select_iterator_ptr it)
 
int odb_read_iterator_get_no_of_columns (oda_read_iterator_ptr it, int *numberOfColumns)
 
int odb_read_iterator_get_column_size_doubles (oda_read_iterator_ptr it, int n, int *size)
 
int odb_read_iterator_get_column_offset (oda_read_iterator_ptr it, int n, int *offset)
 
int odb_select_iterator_get_no_of_columns (oda_select_iterator_ptr it, int *numberOfColumns)
 
int odb_select_iterator_get_column_size_doubles (oda_select_iterator_ptr it, int n, int *size)
 
int odb_select_iterator_get_column_offset (oda_select_iterator_ptr it, int n, int *offset)
 
int odb_read_iterator_get_column_type (oda_select_iterator_ptr it, int n, int *type)
 
int odb_select_iterator_get_column_type (oda_select_iterator_ptr it, int n, int *type)
 
int odb_read_iterator_get_column_name (oda_read_iterator_ptr it, int n, char **name, int *size_name)
 
int odb_select_iterator_get_column_name (oda_select_iterator_ptr it, int n, char **name, int *size_name)
 
int odb_read_iterator_get_next_row (oda_read_iterator_ptr it, int count, double *data, int *new_dataset)
 
int odb_select_iterator_get_next_row (oda_select_iterator_ptr it, int count, double *data, int *new_dataset)
 
oda_write_iterator_ptr odb_create_append_iterator (oda_ptr co, const char *filename, int *err)
 
oda_write_iterator_ptr odb_create_write_iterator (oda_ptr co, const char *filename, int *err)
 
int odb_write_iterator_destroy (oda_write_iterator_ptr wi)
 
int odb_write_iterator_set_no_of_columns (oda_write_iterator_ptr wi, int n)
 
int odb_write_iterator_set_column (oda_write_iterator_ptr wi, int index, int type, const char *name)
 
int odb_write_iterator_set_bitfield (oda_write_iterator_ptr wi, int index, int type, const char *name, const char *bitfieldNames, const char *bitfieldSizes)
 
int odb_write_iterator_set_column_size_doubles (oda_write_iterator_ptr wi, int n, int size)
 
int odb_write_iterator_get_row_buffer_size_doubles (oda_write_iterator_ptr wi, int *size)
 
int odb_write_iterator_get_column_offset (oda_write_iterator_ptr wi, int n, int *offset)
 
int odb_read_iterator_get_missing_value (oda_read_iterator_ptr ri, int index, double *value)
 
int odb_read_iterator_get_row_buffer_size_doubles (oda_read_iterator_ptr ri, int *size)
 
int odb_select_iterator_get_row_buffer_size_doubles (oda_select_iterator_ptr ri, int *size)
 
int odb_write_iterator_set_missing_value (oda_write_iterator_ptr wi, int index, double value)
 
int odb_write_iterator_write_header (oda_write_iterator_ptr wi)
 
int odb_write_iterator_set_next_row (oda_write_iterator_ptr wi, double *data, int count)
 
int odb_read_iterator_get_bitfield (oda_read_iterator_ptr it, int index, char **bitfield_names, char **bitfield_sizes, int *nSize, int *sSize)
 
int odb_select_iterator_get_bitfield (oda_select_iterator_ptr it, int index, char **bitfield_names, char **bitfield_sizes, int *nSize, int *sSize)
 

Variables

char * dummyCommandLineArgs [] = { const_cast<char*>("odbcapi"), 0 }
 

Function Documentation

◆ get_bitfield()

template<typename T , typename I >
int get_bitfield ( it,
int  index,
char **  bitfield_names,
char **  bitfield_sizes,
int *  nSize,
int *  sSize 
)

Definition at line 40 of file odccapi.cc.

◆ get_blocks_offsets()

int get_blocks_offsets ( const char *  fileName,
size_t *  numberOfBlocks,
off_t **  offsets,
size_t **  sizes 
)

Definition at line 102 of file odccapi.cc.

◆ odb_count()

double odb_count ( const char *  filename)

Definition at line 90 of file odccapi.cc.

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

◆ odb_create()

oda_ptr odb_create ( const char *  config,
int *  err 
)

Definition at line 151 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_create_append_iterator()

oda_write_iterator_ptr odb_create_append_iterator ( oda_ptr  co,
const char *  filename,
int *  err 
)

Definition at line 375 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_create_read_iterator()

oda_read_iterator_ptr odb_create_read_iterator ( oda_ptr  co,
const char *  filename,
int *  err 
)

Definition at line 198 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_create_select_iterator()

oda_select_iterator_ptr odb_create_select_iterator ( oda_ptr  co,
const char *  sql,
int *  err 
)

Definition at line 215 of file odccapi.cc.

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

◆ odb_create_select_iterator_from_file()

oda_select_iterator_ptr odb_create_select_iterator_from_file ( oda_ptr  co,
const char *  sql,
const char *  filename,
int *  err 
)

Definition at line 240 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_create_write_iterator()

oda_write_iterator_ptr odb_create_write_iterator ( oda_ptr  co,
const char *  filename,
int *  err 
)

Definition at line 387 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_destroy()

int odb_destroy ( oda_ptr  o)

Definition at line 181 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_get_headerBufferSize()

unsigned int odb_get_headerBufferSize ( )

Definition at line 132 of file odccapi.cc.

◆ odb_get_setvbufferSize()

unsigned int odb_get_setvbufferSize ( )

Definition at line 135 of file odccapi.cc.

◆ odb_read_create()

oda_ptr odb_read_create ( const char *  config,
int *  err 
)
Parameters
configignored for now.

Definition at line 144 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_read_destroy()

int odb_read_destroy ( oda_ptr  o)

Definition at line 175 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_read_iterator_destroy()

int odb_read_iterator_destroy ( oda_read_iterator_ptr  it)

Definition at line 252 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_read_iterator_get_bitfield()

int odb_read_iterator_get_bitfield ( oda_read_iterator_ptr  it,
int  index,
char **  bitfield_names,
char **  bitfield_sizes,
int *  nSize,
int *  sSize 
)

Definition at line 527 of file odccapi.cc.

◆ odb_read_iterator_get_column_name()

int odb_read_iterator_get_column_name ( oda_read_iterator_ptr  it,
int  n,
char **  name,
int *  size_name 
)

Definition at line 320 of file odccapi.cc.

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

◆ odb_read_iterator_get_column_offset()

int odb_read_iterator_get_column_offset ( oda_read_iterator_ptr  it,
int  n,
int *  offset 
)

Definition at line 278 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_read_iterator_get_column_size_doubles()

int odb_read_iterator_get_column_size_doubles ( oda_read_iterator_ptr  it,
int  n,
int *  size 
)

Definition at line 271 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_read_iterator_get_column_type()

int odb_read_iterator_get_column_type ( oda_select_iterator_ptr  it,
int  n,
int *  type 
)

Definition at line 306 of file odccapi.cc.

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

◆ odb_read_iterator_get_missing_value()

int odb_read_iterator_get_missing_value ( oda_read_iterator_ptr  ri,
int  index,
double *  value 
)

Definition at line 479 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_read_iterator_get_next_row()

int odb_read_iterator_get_next_row ( oda_read_iterator_ptr  it,
int  count,
double *  data,
int *  new_dataset 
)

Definition at line 336 of file odccapi.cc.

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

◆ odb_read_iterator_get_no_of_columns()

int odb_read_iterator_get_no_of_columns ( oda_read_iterator_ptr  it,
int *  numberOfColumns 
)

Definition at line 264 of file odccapi.cc.

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

◆ odb_read_iterator_get_row_buffer_size_doubles()

int odb_read_iterator_get_row_buffer_size_doubles ( oda_read_iterator_ptr  ri,
int *  size 
)

Definition at line 493 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_select_create()

oda_ptr odb_select_create ( const char *  config,
int *  err 
)
Parameters
configignored for now.

Definition at line 157 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_select_destroy()

int odb_select_destroy ( oda_ptr  o)

Definition at line 186 of file odccapi.cc.

◆ odb_select_iterator_destroy()

int odb_select_iterator_destroy ( oda_select_iterator_ptr  it)

Definition at line 258 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_select_iterator_get_bitfield()

int odb_select_iterator_get_bitfield ( oda_select_iterator_ptr  it,
int  index,
char **  bitfield_names,
char **  bitfield_sizes,
int *  nSize,
int *  sSize 
)

Definition at line 535 of file odccapi.cc.

◆ odb_select_iterator_get_column_name()

int odb_select_iterator_get_column_name ( oda_select_iterator_ptr  it,
int  n,
char **  name,
int *  size_name 
)

Definition at line 328 of file odccapi.cc.

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

◆ odb_select_iterator_get_column_offset()

int odb_select_iterator_get_column_offset ( oda_select_iterator_ptr  it,
int  n,
int *  offset 
)

Definition at line 299 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_select_iterator_get_column_size_doubles()

int odb_select_iterator_get_column_size_doubles ( oda_select_iterator_ptr  it,
int  n,
int *  size 
)

Definition at line 292 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_select_iterator_get_column_type()

int odb_select_iterator_get_column_type ( oda_select_iterator_ptr  it,
int  n,
int *  type 
)

Definition at line 313 of file odccapi.cc.

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

◆ odb_select_iterator_get_next_row()

int odb_select_iterator_get_next_row ( oda_select_iterator_ptr  it,
int  count,
double *  data,
int *  new_dataset 
)

Definition at line 358 of file odccapi.cc.

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

◆ odb_select_iterator_get_no_of_columns()

int odb_select_iterator_get_no_of_columns ( oda_select_iterator_ptr  it,
int *  numberOfColumns 
)

Definition at line 285 of file odccapi.cc.

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

◆ odb_select_iterator_get_row_buffer_size_doubles()

int odb_select_iterator_get_row_buffer_size_doubles ( oda_select_iterator_ptr  ri,
int *  size 
)

Definition at line 500 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_set_headerBufferSize()

void odb_set_headerBufferSize ( unsigned int  n)

Definition at line 133 of file odccapi.cc.

◆ odb_set_setvbufferSize()

void odb_set_setvbufferSize ( unsigned int  n)

Definition at line 136 of file odccapi.cc.

◆ odb_start()

void odb_start ( )

Definition at line 74 of file odccapi.cc.

Here is the call graph for this function:

◆ odb_start_with_args()

void odb_start_with_args ( int  argc,
char *  argv[] 
)

Definition at line 85 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_write_iterator_destroy()

int odb_write_iterator_destroy ( oda_write_iterator_ptr  wi)

Definition at line 399 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_write_iterator_get_column_offset()

int odb_write_iterator_get_column_offset ( oda_write_iterator_ptr  wi,
int  n,
int *  offset 
)

Definition at line 472 of file odccapi.cc.

◆ odb_write_iterator_get_row_buffer_size_doubles()

int odb_write_iterator_get_row_buffer_size_doubles ( oda_write_iterator_ptr  wi,
int *  size 
)

Definition at line 465 of file odccapi.cc.

◆ odb_write_iterator_set_bitfield()

int odb_write_iterator_set_bitfield ( oda_write_iterator_ptr  wi,
int  index,
int  type,
const char *  name,
const char *  bitfieldNames,
const char *  bitfieldSizes 
)

Definition at line 418 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_write_iterator_set_column()

int odb_write_iterator_set_column ( oda_write_iterator_ptr  wi,
int  index,
int  type,
const char *  name 
)

Definition at line 412 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_write_iterator_set_column_size_doubles()

int odb_write_iterator_set_column_size_doubles ( oda_write_iterator_ptr  wi,
int  n,
int  size 
)

Definition at line 458 of file odccapi.cc.

◆ odb_write_iterator_set_missing_value()

int odb_write_iterator_set_missing_value ( oda_write_iterator_ptr  wi,
int  index,
double  value 
)

Definition at line 507 of file odccapi.cc.

◆ odb_write_iterator_set_next_row()

int odb_write_iterator_set_next_row ( oda_write_iterator_ptr  wi,
double *  data,
int  count 
)

Definition at line 521 of file odccapi.cc.

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

◆ odb_write_iterator_set_no_of_columns()

int odb_write_iterator_set_no_of_columns ( oda_write_iterator_ptr  wi,
int  n 
)

Definition at line 405 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_write_iterator_write_header()

int odb_write_iterator_write_header ( oda_write_iterator_ptr  wi)

Definition at line 514 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_writer_create()

oda_writer_ptr odb_writer_create ( const char *  config,
int *  err 
)
Parameters
configignored for now.

Definition at line 167 of file odccapi.cc.

Here is the caller graph for this function:

◆ odb_writer_destroy()

int odb_writer_destroy ( oda_writer_ptr  o)

Definition at line 192 of file odccapi.cc.

Here is the caller graph for this function:

◆ odc_format_version_major()

unsigned int odc_format_version_major ( )

Definition at line 138 of file odccapi.cc.

Here is the call graph for this function:

◆ odc_format_version_minor()

unsigned int odc_format_version_minor ( )

Definition at line 139 of file odccapi.cc.

Here is the call graph for this function:

◆ odc_git_sha1()

int odc_git_sha1 ( const char **  o)

Definition at line 81 of file odccapi.cc.

Here is the call graph for this function:

◆ release_blocks_offsets()

int release_blocks_offsets ( off_t **  offsets)

Definition at line 129 of file odccapi.cc.

◆ release_blocks_sizes()

int release_blocks_sizes ( size_t **  sizes)

Definition at line 130 of file odccapi.cc.

Variable Documentation

◆ dummyCommandLineArgs

char* dummyCommandLineArgs[] = { const_cast<char*>("odbcapi"), 0 }

Definition at line 35 of file odccapi.cc.