IODA Bundle
test_codecs_write.cc File Reference
#include <cmath>
#include <ctime>
#include <cstdlib>
#include <algorithm>
#include "eckit/eckit_ecbuild_config.h"
#include "eckit/io/Buffer.h"
#include "eckit/system/SystemInfo.h"
#include "eckit/testing/Test.h"
#include "odc/api/ColumnType.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 dependency graph for test_codecs_write.cc:

Go to the source code of this file.

Classes

class  EndianCodecSave
 

Functions

size_t prepend_codec_selection_header (std::vector< unsigned char > &data, const std::string &codec_name, bool bigEndian=false)
 
 CASE ("Constant values consume no space in the output data buffer")
 
 CASE ("Constant integer values consume no space in the output data buffer")
 
 CASE ("constant strings consume no output data space")
 
 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 are as-is")
 
 CASE ("16bit integers are stored with an offset. This need not (strictly) be integral!!")
 
 CASE ("8bit integers are stored with an offset. This need not (strictly) be integral!!")
 
 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 longer than 8 bytes")
 
int main (int argc, char *argv[])
 

Function Documentation

◆ CASE() [1/13]

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

Definition at line 1045 of file test_codecs_write.cc.

Here is the call graph for this function:

◆ CASE() [2/13]

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

Definition at line 945 of file test_codecs_write.cc.

Here is the call graph for this function:

◆ CASE() [3/13]

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

Definition at line 1183 of file test_codecs_write.cc.

Here is the call graph for this function:

◆ CASE() [4/13]

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

Definition at line 554 of file test_codecs_write.cc.

Here is the call graph for this function:

◆ CASE() [5/13]

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

Definition at line 1314 of file test_codecs_write.cc.

Here is the call graph for this function:

◆ CASE() [6/13]

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

Definition at line 1462 of file test_codecs_write.cc.

Here is the call graph for this function:

◆ CASE() [7/13]

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

Definition at line 342 of file test_codecs_write.cc.

Here is the call graph for this function:

◆ CASE() [8/13]

CASE ( "Constant integer values consume no space in the output data buffer"  )

Definition at line 189 of file test_codecs_write.cc.

Here is the call graph for this function:

◆ CASE() [9/13]

CASE ( "constant strings consume no output data space"  )

Definition at line 267 of file test_codecs_write.cc.

Here is the call graph for this function:

◆ CASE() [10/13]

CASE ( "Constant values consume no space in the output data buffer"  )

Definition at line 114 of file test_codecs_write.cc.

Here is the call graph for this function:

◆ CASE() [11/13]

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

Definition at line 647 of file test_codecs_write.cc.

Here is the call graph for this function:

◆ CASE() [12/13]

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

Definition at line 447 of file test_codecs_write.cc.

Here is the call graph for this function:

◆ CASE() [13/13]

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

Definition at line 776 of file test_codecs_write.cc.

Here is the call graph for this function:

◆ main()

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

Definition at line 1614 of file test_codecs_write.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 58 of file test_codecs_write.cc.