Navigation

Operators and Keywords

Function List:

C++ API

data-conv.h File Reference

#include <climits>
#include "mach-info.h"

Include dependency graph for data-conv.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Classes

class  oct_data_conv

Defines

#define octave_data_conv_h   1

Enumerations

enum  save_type {
  LS_U_CHAR = 0, LS_U_SHORT = 1, LS_U_INT = 2, LS_CHAR = 3,
  LS_SHORT = 4, LS_INT = 5, LS_FLOAT = 6, LS_DOUBLE = 7,
  LS_U_LONG = 8, LS_LONG = 9
}

Functions

OCTAVE_API void do_double_format_conversion (void *data, int len, oct_mach_info::float_format from_fmt, oct_mach_info::float_format to_fmt=oct_mach_info::native_float_format())
OCTAVE_API void do_float_format_conversion (void *data, int len, oct_mach_info::float_format from_fmt, oct_mach_info::float_format to_fmt=oct_mach_info::native_float_format())
OCTAVE_API void do_float_format_conversion (void *data, size_t sz, int len, oct_mach_info::float_format from_fmt, oct_mach_info::float_format to_fmt=oct_mach_info::native_float_format())
OCTAVE_API void read_doubles (std::istream &is, double *data, save_type type, int len, bool swap, oct_mach_info::float_format fmt)
OCTAVE_API void write_doubles (std::ostream &os, const double *data, save_type type, int len)
OCTAVE_API void read_floats (std::istream &is, float *data, save_type type, int len, bool swap, oct_mach_info::float_format fmt)
OCTAVE_API void write_floats (std::ostream &os, const float *data, save_type type, int len)

Define Documentation

#define octave_data_conv_h   1


Enumeration Type Documentation

enum save_type

Enumerator:
LS_U_CHAR 
LS_U_SHORT 
LS_U_INT 
LS_CHAR 
LS_SHORT 
LS_INT 
LS_FLOAT 
LS_DOUBLE 
LS_U_LONG 
LS_LONG 


Function Documentation

OCTAVE_API void do_double_format_conversion ( void *  data,
int  len,
oct_mach_info::float_format  from_fmt,
oct_mach_info::float_format  to_fmt = oct_mach_info::native_float_format() 
)

OCTAVE_API void do_float_format_conversion ( void *  data,
size_t  sz,
int  len,
oct_mach_info::float_format  from_fmt,
oct_mach_info::float_format  to_fmt = oct_mach_info::native_float_format() 
)

OCTAVE_API void do_float_format_conversion ( void *  data,
int  len,
oct_mach_info::float_format  from_fmt,
oct_mach_info::float_format  to_fmt = oct_mach_info::native_float_format() 
)

OCTAVE_API void read_doubles ( std::istream &  is,
double data,
save_type  type,
int  len,
bool  swap,
oct_mach_info::float_format  fmt 
)

OCTAVE_API void read_floats ( std::istream &  is,
float data,
save_type  type,
int  len,
bool  swap,
oct_mach_info::float_format  fmt 
)

OCTAVE_API void write_doubles ( std::ostream os,
const double data,
save_type  type,
int  len 
)

OCTAVE_API void write_floats ( std::ostream os,
const float data,
save_type  type,
int  len 
)