IODA Bundle
test_codecs_read.cc File Reference
#include "eckit/testing/Test.h"
#include "eckit/system/SystemInfo.h"
#include "eckit/io/DataHandle.h"
#include "eckit/eckit_ecbuild_config.h"
#include "odc/api/Odb.h"
#include "odc/core/Codec.h"
#include "odc/codec/Constant.h"
#include "odc/codec/Integer.h"
#include "odc/codec/IntegerMissing.h"
#include "odc/codec/Real.h"
#include "odc/codec/String.h"
#include <cmath>
#include <time.h>
#include <stdlib.h>
#include <algorithm>
Include dependency graph for test_codecs_read.cc:

Go to the source code of this file.

Classes

struct  anonymous_namespace{test_codecs_read.cc}::TestIntegerDecoding
 

Namespaces

 anonymous_namespace{test_codecs_read.cc}
 

Functions

size_t prepend_codec_selection_header (std::vector< unsigned char > &data, const std::string &codec_name, bool bigEndian=false)
 
 CASE ("Constant values are constant")
 
 CASE ("Constant integer values are constant")
 
 CASE ("constant strings are constant")
 
 CASE ("Constant integer or missing value behaves a bit oddly")
 
 CASE ("real constant or missing value is not quite constant")
 
 CASE ("Character strings are 8-byte sequences coerced into being treated as doubles")
 
 CASE ("long floating point values can include the missing data value")
 
 CASE ("short floating point values can include the missing data value")
 
 CASE ("32bit integers can be decoded direct to integers")
 
 CASE ("32bit integers are as-is")
 
 CASE ("16bit integers are stored with an offset. This need not (strictly) be integral!!")
 
 CASE ("16bit integers are stored with an offset and can be decoded to integers")
 
 CASE ("8bit integers are stored with an offset. This need not (strictly) be integral!!")
 
 CASE ("8bit integers are stored with an offset and can be decoded to integers")
 
 CASE ("Character strings can be stored in a flat list, and indexed")
 
 CASE ("Character strings can be stored in a flat list, and indexed, and be longer than 8 bytes")
 
int main (int argc, char *argv[])
 

Function Documentation

◆ CASE() [1/16]

CASE ( "16bit integers are stored with an offset and can be decoded to integers"  )

Definition at line 1318 of file test_codecs_read.cc.

Here is the call graph for this function:

◆ CASE() [2/16]

CASE ( "16bit integers are stored with an offset. This need not (strictly) be integral!!"  )

Definition at line 1192 of file test_codecs_read.cc.

Here is the call graph for this function:

◆ CASE() [3/16]

CASE ( "32bit integers are as-is"  )

Definition at line 1086 of file test_codecs_read.cc.

Here is the call graph for this function:

◆ CASE() [4/16]

CASE ( "32bit integers can be decoded direct to integers"  )

Definition at line 975 of file test_codecs_read.cc.

Here is the call graph for this function:

◆ CASE() [5/16]

CASE ( "8bit integers are stored with an offset and can be decoded to integers"  )

Definition at line 1561 of file test_codecs_read.cc.

Here is the call graph for this function:

◆ CASE() [6/16]

CASE ( "8bit integers are stored with an offset. This need not (strictly) be integral!!"  )

Definition at line 1450 of file test_codecs_read.cc.

Here is the call graph for this function:

◆ CASE() [7/16]

CASE ( "Character strings are 8-byte sequences coerced into being treated as doubles"  )

Definition at line 591 of file test_codecs_read.cc.

Here is the call graph for this function:

◆ CASE() [8/16]

CASE ( "Character strings can be stored in a flat  list,
and indexed"   
)

Definition at line 1678 of file test_codecs_read.cc.

Here is the call graph for this function:

◆ CASE() [9/16]

CASE ( "Character strings can be stored in a flat  list,
and  indexed,
and be longer than 8 bytes"   
)

Definition at line 1818 of file test_codecs_read.cc.

Here is the call graph for this function:

◆ CASE() [10/16]

CASE ( "Constant integer or missing value behaves a bit oddly"  )

Definition at line 352 of file test_codecs_read.cc.

Here is the call graph for this function:

◆ CASE() [11/16]

CASE ( "Constant integer values are constant"  )

Definition at line 155 of file test_codecs_read.cc.

Here is the call graph for this function:

◆ CASE() [12/16]

CASE ( "constant strings are constant"  )

Definition at line 253 of file test_codecs_read.cc.

Here is the call graph for this function:

◆ CASE() [13/16]

CASE ( "Constant values are constant"  )

Definition at line 63 of file test_codecs_read.cc.

Here is the call graph for this function:

◆ CASE() [14/16]

CASE ( "long floating point values can include the missing data value"  )

Definition at line 702 of file test_codecs_read.cc.

Here is the call graph for this function:

◆ CASE() [15/16]

CASE ( "real constant or missing value is not quite constant"  )

Definition at line 473 of file test_codecs_read.cc.

Here is the call graph for this function:

◆ CASE() [16/16]

CASE ( "short floating point values can include the missing data value"  )

Definition at line 825 of file test_codecs_read.cc.

Here is the call graph for this function:

◆ main()

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

Definition at line 1965 of file test_codecs_read.cc.

◆ prepend_codec_selection_header()

size_t prepend_codec_selection_header ( std::vector< unsigned char > &  data,
const std::string &  codec_name,
bool  bigEndian = false 
)

Definition at line 51 of file test_codecs_read.cc.

Here is the caller graph for this function: