IODA Bundle
encode.cc File Reference
#include <memory>
#include <cstring>
#include <fcntl.h>
#include <unistd.h>
#include "eckit/filesystem/TmpFile.h"
#include "eckit/io/Buffer.h"
#include "eckit/testing/Test.h"
#include "odc/api/odc.h"
Include dependency graph for encode.cc:

Go to the source code of this file.

Classes

struct  std::default_delete< odc_encoder_t >
 
struct  std::default_delete< odc_reader_t >
 
struct  std::default_delete< odc_frame_t >
 
struct  std::default_delete< odc_decoder_t >
 
struct  custom_buffer_t
 

Namespaces

 std
 

Macros

#define CHECK_RETURN(x)   EXPECT((x) == ODC_SUCCESS)
 

Typedefs

typedef long(* write_fn) (void *handle, const void *buffer, long length)
 

Functions

 CASE ("Encode data in standard tabular form")
 
 CASE ("Encode from columnar data")
 
 CASE ("Encode data with custom stride")
 
 CASE ("Encode with more rows that fit inside a table")
 
 CASE ("Encode to a file descriptor")
 
long custom_buffer_write (custom_buffer_t *handle, const void *buffer, long length)
 
 CASE ("Encode to a custom output stream")
 
int main (int argc, char *argv[])
 

Macro Definition Documentation

◆ CHECK_RETURN

#define CHECK_RETURN (   x)    EXPECT((x) == ODC_SUCCESS)

Definition at line 28 of file encode.cc.

Typedef Documentation

◆ write_fn

typedef long(* write_fn) (void *handle, const void *buffer, long length)

Definition at line 607 of file encode.cc.

Function Documentation

◆ CASE() [1/6]

CASE ( "Encode data in standard tabular form"  )

Definition at line 54 of file encode.cc.

Here is the call graph for this function:

◆ CASE() [2/6]

CASE ( "Encode data with custom stride"  )

Definition at line 309 of file encode.cc.

Here is the call graph for this function:

◆ CASE() [3/6]

CASE ( "Encode from columnar data"  )

Definition at line 207 of file encode.cc.

Here is the call graph for this function:

◆ CASE() [4/6]

CASE ( "Encode to a custom output stream"  )

Definition at line 616 of file encode.cc.

Here is the call graph for this function:

◆ CASE() [5/6]

CASE ( "Encode to a file descriptor"  )

Definition at line 522 of file encode.cc.

Here is the call graph for this function:

◆ CASE() [6/6]

CASE ( "Encode with more rows that fit inside a table"  )

Definition at line 410 of file encode.cc.

Here is the call graph for this function:

◆ custom_buffer_write()

long custom_buffer_write ( custom_buffer_t handle,
const void *  buffer,
long  length 
)

Definition at line 608 of file encode.cc.

Here is the caller graph for this function:

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 689 of file encode.cc.