#include <IGBheader.h>
|
| IGBheader (gzFile a=NULL, bool read=false, bool quiet=false) |
|
| IGBheader (FILE *f, bool read=false, bool quiet=false) |
|
| IGBheader (IGBheader *h) |
|
| ~IGBheader () |
|
int | write () |
|
int | read (bool quiet=false) |
|
void | fileptr (gzFile f) |
|
void | fileptr (FILE *f) |
|
void * | fileptr (void) |
|
void | close (void) |
|
void | swab (void *, int nd=-1) |
|
double | from_raw (double a) |
|
double | to_raw (double a) |
|
int | slice_sz () |
|
void | comment (char *) |
|
char ** | comment (void) |
|
int | data_size (void) |
|
int | x (void) |
|
int | x (bool &set) |
|
void | x (int a) |
|
int | y (void) |
|
int | y (bool &set) |
|
void | y (int a) |
|
int | z (void) |
|
int | z (bool &set) |
|
void | z (int a) |
|
int | t (void) |
|
int | t (bool &set) |
|
void | t (int a) |
|
int | type (void) |
|
int | type (bool &set) |
|
void | type (int a) |
|
void | type (char *) |
|
int | taille (void) |
|
int | taille (bool &set) |
|
void | taille (int a) |
|
int | num (void) |
|
int | num (bool &set) |
|
void | num (int a) |
|
int | bin (void) |
|
int | bin (bool &set) |
|
void | bin (int a) |
|
int | trame (void) |
|
int | trame (bool &set) |
|
void | trame (int a) |
|
const char * | systemestr (void) |
|
int | systeme (void) |
|
void | systeme (const char *s) |
|
unsigned int | lut (void) |
|
unsigned int | lut (bool &set) |
|
void | lut (unsigned int a) |
|
unsigned int | comp (void) |
|
unsigned int | comp (bool &set) |
|
void | comp (unsigned int a) |
|
float | epais (void) |
|
float | epais (bool &set) |
|
void | epais (float a) |
|
float | org_x (void) |
|
float | org_x (bool &set) |
|
void | org_x (float a) |
|
float | org_y (void) |
|
float | org_y (bool &set) |
|
void | org_y (float a) |
|
float | org_z (void) |
|
float | org_z (bool &set) |
|
void | org_z (float a) |
|
float | org_t (void) |
|
float | org_t (bool &set) |
|
void | org_t (float a) |
|
void | inc_x (float a) |
|
float | inc_x (bool &set) |
|
float | inc_x (void) |
|
void | inc_y (float a) |
|
float | inc_y (bool &set) |
|
float | inc_y (void) |
|
void | inc_z (float a) |
|
float | inc_z (bool &set) |
|
float | inc_z (void) |
|
void | inc_t (float a) |
|
float | inc_t (bool &set) |
|
float | inc_t (void) |
|
void | dim_x (float a) |
|
float | dim_x (bool &set) |
|
float | dim_x (void) |
|
void | dim_y (float a) |
|
float | dim_y (bool &set) |
|
float | dim_y (void) |
|
void | dim_z (float a) |
|
float | dim_z (bool &set) |
|
float | dim_z (void) |
|
void | dim_t (float a) |
|
float | dim_t (bool &set) |
|
float | dim_t (void) |
|
void | facteur (float a) |
|
float | facteur (bool &set) |
|
float | facteur (void) |
|
void | zero (float a) |
|
float | zero (bool &set) |
|
float | zero (void) |
|
void | vect_z (float *a) |
|
float * | vect_z (bool &set) |
|
float * | vect_z (void) |
|
void | unites_x (const char *a) |
|
char * | unites_x (bool &set) |
|
char * | unites_x (void) |
|
void | unites_y (const char *a) |
|
char * | unites_y (bool &set) |
|
char * | unites_y (void) |
|
void | unites_z (const char *a) |
|
char * | unites_z (bool &set) |
|
char * | unites_z (void) |
|
void | unites_t (const char *a) |
|
char * | unites_t (bool &set) |
|
char * | unites_t (void) |
|
void | unites (const char *a) |
|
char * | unites (bool &set) |
|
char * | unites (void) |
|
void | struct_desc (const char *a) |
|
char * | struct_desc (bool &set) |
|
char * | struct_desc (void) |
|
void | aut_name (const char *a) |
|
char * | aut_name (bool &set) |
|
char * | aut_name (void) |
|
void | transparent (void *a) |
|
void * | transparent (bool &set) |
|
void * | transparent (void) |
|
char * | transparentstr (void) |
|
int | num_components () |
|
int | endian () |
|
template<class T > |
int | read_data (T *dp, int numt=1, char *buf=NULL) |
|
template<class T > |
void | write_data (T *dp, int numt=1, char *buf=NULL) |
|
template<class T > |
void | to_bin (void *buf, T d) |
|
template<class T > |
T | convert_buffer_datum (void *buf, int a) |
|
Definition at line 189 of file IGBheader.h.
◆ IGBheader() [1/3]
IGBheader::IGBheader |
( |
gzFile |
a = NULL , |
|
|
bool |
read = false , |
|
|
bool |
quiet = false |
|
) |
| |
◆ IGBheader() [2/3]
IGBheader::IGBheader |
( |
FILE * |
f, |
|
|
bool |
read = false , |
|
|
bool |
quiet = false |
|
) |
| |
◆ IGBheader() [3/3]
opencarp::IGBheader::IGBheader |
( |
IGBheader * |
h | ) |
|
|
inline |
◆ ~IGBheader()
IGBheader::~IGBheader |
( |
| ) |
|
◆ aut_name() [1/3]
void opencarp::IGBheader::aut_name |
( |
const char * |
a | ) |
|
|
inline |
◆ aut_name() [2/3]
char* opencarp::IGBheader::aut_name |
( |
bool & |
set | ) |
|
|
inline |
◆ aut_name() [3/3]
char* opencarp::IGBheader::aut_name |
( |
void |
| ) |
|
|
inline |
◆ bin() [1/3]
int opencarp::IGBheader::bin |
( |
void |
| ) |
|
|
inline |
◆ bin() [2/3]
int opencarp::IGBheader::bin |
( |
bool & |
set | ) |
|
|
inline |
◆ bin() [3/3]
void opencarp::IGBheader::bin |
( |
int |
a | ) |
|
|
inline |
◆ close()
void opencarp::IGBheader::close |
( |
void |
| ) |
|
|
inline |
◆ comment() [1/2]
void IGBheader::comment |
( |
char * |
ligne | ) |
|
◆ comment() [2/2]
char** opencarp::IGBheader::comment |
( |
void |
| ) |
|
|
inline |
◆ comp() [1/3]
unsigned int opencarp::IGBheader::comp |
( |
void |
| ) |
|
|
inline |
◆ comp() [2/3]
unsigned int opencarp::IGBheader::comp |
( |
bool & |
set | ) |
|
|
inline |
◆ comp() [3/3]
void opencarp::IGBheader::comp |
( |
unsigned int |
a | ) |
|
|
inline |
◆ convert_buffer_datum()
template<class T >
T IGBheader::convert_buffer_datum |
( |
void * |
buf, |
|
|
int |
a |
|
) |
| |
convert the IGB data to the proper type
- Parameters
-
h | IGB header |
buf | raw IGB data |
a | index of datum |
Definition at line 456 of file IGBheader.h.
◆ data_size()
int opencarp::IGBheader::data_size |
( |
void |
| ) |
|
|
inline |
◆ dim_t() [1/3]
void opencarp::IGBheader::dim_t |
( |
float |
a | ) |
|
|
inline |
◆ dim_t() [2/3]
float opencarp::IGBheader::dim_t |
( |
bool & |
set | ) |
|
|
inline |
◆ dim_t() [3/3]
float opencarp::IGBheader::dim_t |
( |
void |
| ) |
|
|
inline |
◆ dim_x() [1/3]
void opencarp::IGBheader::dim_x |
( |
float |
a | ) |
|
|
inline |
◆ dim_x() [2/3]
float opencarp::IGBheader::dim_x |
( |
bool & |
set | ) |
|
|
inline |
◆ dim_x() [3/3]
float opencarp::IGBheader::dim_x |
( |
void |
| ) |
|
|
inline |
◆ dim_y() [1/3]
void opencarp::IGBheader::dim_y |
( |
float |
a | ) |
|
|
inline |
◆ dim_y() [2/3]
float opencarp::IGBheader::dim_y |
( |
bool & |
set | ) |
|
|
inline |
◆ dim_y() [3/3]
float opencarp::IGBheader::dim_y |
( |
void |
| ) |
|
|
inline |
◆ dim_z() [1/3]
void opencarp::IGBheader::dim_z |
( |
float |
a | ) |
|
|
inline |
◆ dim_z() [2/3]
float opencarp::IGBheader::dim_z |
( |
bool & |
set | ) |
|
|
inline |
◆ dim_z() [3/3]
float opencarp::IGBheader::dim_z |
( |
void |
| ) |
|
|
inline |
◆ endian()
int IGBheader::endian |
( |
| ) |
|
return whether the machine is big or little endian
Definition at line 1388 of file IGBheader.cc.
◆ epais() [1/3]
float opencarp::IGBheader::epais |
( |
void |
| ) |
|
|
inline |
◆ epais() [2/3]
float opencarp::IGBheader::epais |
( |
bool & |
set | ) |
|
|
inline |
◆ epais() [3/3]
void opencarp::IGBheader::epais |
( |
float |
a | ) |
|
|
inline |
◆ facteur() [1/3]
void opencarp::IGBheader::facteur |
( |
float |
a | ) |
|
|
inline |
◆ facteur() [2/3]
float opencarp::IGBheader::facteur |
( |
bool & |
set | ) |
|
|
inline |
◆ facteur() [3/3]
float opencarp::IGBheader::facteur |
( |
void |
| ) |
|
|
inline |
◆ fileptr() [1/3]
void IGBheader::fileptr |
( |
gzFile |
f | ) |
|
◆ fileptr() [2/3]
void IGBheader::fileptr |
( |
FILE * |
f | ) |
|
◆ fileptr() [3/3]
void* opencarp::IGBheader::fileptr |
( |
void |
| ) |
|
|
inline |
◆ from_raw()
double opencarp::IGBheader::from_raw |
( |
double |
a | ) |
|
|
inline |
◆ inc_t() [1/3]
void opencarp::IGBheader::inc_t |
( |
float |
a | ) |
|
|
inline |
◆ inc_t() [2/3]
float opencarp::IGBheader::inc_t |
( |
bool & |
set | ) |
|
|
inline |
◆ inc_t() [3/3]
float opencarp::IGBheader::inc_t |
( |
void |
| ) |
|
|
inline |
◆ inc_x() [1/3]
void opencarp::IGBheader::inc_x |
( |
float |
a | ) |
|
|
inline |
◆ inc_x() [2/3]
float opencarp::IGBheader::inc_x |
( |
bool & |
set | ) |
|
|
inline |
◆ inc_x() [3/3]
float opencarp::IGBheader::inc_x |
( |
void |
| ) |
|
|
inline |
◆ inc_y() [1/3]
void opencarp::IGBheader::inc_y |
( |
float |
a | ) |
|
|
inline |
◆ inc_y() [2/3]
float opencarp::IGBheader::inc_y |
( |
bool & |
set | ) |
|
|
inline |
◆ inc_y() [3/3]
float opencarp::IGBheader::inc_y |
( |
void |
| ) |
|
|
inline |
◆ inc_z() [1/3]
void opencarp::IGBheader::inc_z |
( |
float |
a | ) |
|
|
inline |
◆ inc_z() [2/3]
float opencarp::IGBheader::inc_z |
( |
bool & |
set | ) |
|
|
inline |
◆ inc_z() [3/3]
float opencarp::IGBheader::inc_z |
( |
void |
| ) |
|
|
inline |
◆ lut() [1/3]
unsigned int opencarp::IGBheader::lut |
( |
void |
| ) |
|
|
inline |
◆ lut() [2/3]
unsigned int opencarp::IGBheader::lut |
( |
bool & |
set | ) |
|
|
inline |
◆ lut() [3/3]
void opencarp::IGBheader::lut |
( |
unsigned int |
a | ) |
|
|
inline |
◆ num() [1/3]
int opencarp::IGBheader::num |
( |
void |
| ) |
|
|
inline |
◆ num() [2/3]
int opencarp::IGBheader::num |
( |
bool & |
set | ) |
|
|
inline |
◆ num() [3/3]
void opencarp::IGBheader::num |
( |
int |
a | ) |
|
|
inline |
◆ num_components()
int opencarp::IGBheader::num_components |
( |
| ) |
|
|
inline |
◆ org_t() [1/3]
float opencarp::IGBheader::org_t |
( |
void |
| ) |
|
|
inline |
◆ org_t() [2/3]
float opencarp::IGBheader::org_t |
( |
bool & |
set | ) |
|
|
inline |
◆ org_t() [3/3]
void opencarp::IGBheader::org_t |
( |
float |
a | ) |
|
|
inline |
◆ org_x() [1/3]
float opencarp::IGBheader::org_x |
( |
void |
| ) |
|
|
inline |
◆ org_x() [2/3]
float opencarp::IGBheader::org_x |
( |
bool & |
set | ) |
|
|
inline |
◆ org_x() [3/3]
void opencarp::IGBheader::org_x |
( |
float |
a | ) |
|
|
inline |
◆ org_y() [1/3]
float opencarp::IGBheader::org_y |
( |
void |
| ) |
|
|
inline |
◆ org_y() [2/3]
float opencarp::IGBheader::org_y |
( |
bool & |
set | ) |
|
|
inline |
◆ org_y() [3/3]
void opencarp::IGBheader::org_y |
( |
float |
a | ) |
|
|
inline |
◆ org_z() [1/3]
float opencarp::IGBheader::org_z |
( |
void |
| ) |
|
|
inline |
◆ org_z() [2/3]
float opencarp::IGBheader::org_z |
( |
bool & |
set | ) |
|
|
inline |
◆ org_z() [3/3]
void opencarp::IGBheader::org_z |
( |
float |
a | ) |
|
|
inline |
◆ read()
int IGBheader::read |
( |
bool |
quiet = false | ) |
|
read in a header
- Parameters
-
quiet | do not print warnings/errors |
- Returns
- 0 if and only if all is o.k.
- Precondition
- the file has been opened
Definition at line 761 of file IGBheader.cc.
◆ read_data()
template<class T >
int IGBheader::read_data |
( |
T * |
dp, |
|
|
int |
numt = 1 , |
|
|
char * |
buf = NULL |
|
) |
| |
read in a number of time slices
- Parameters
-
dp[out] | values read |
numt | number of time slices |
buf | temporary buffer of raw data |
- Precondition
dp
must be allocated
- Postcondition
- will be filled
- Returns
- the number of items read
Definition at line 421 of file IGBheader.h.
◆ slice_sz()
int opencarp::IGBheader::slice_sz |
( |
| ) |
|
|
inline |
◆ struct_desc() [1/3]
void opencarp::IGBheader::struct_desc |
( |
const char * |
a | ) |
|
|
inline |
◆ struct_desc() [2/3]
char* opencarp::IGBheader::struct_desc |
( |
bool & |
set | ) |
|
|
inline |
◆ struct_desc() [3/3]
char* opencarp::IGBheader::struct_desc |
( |
void |
| ) |
|
|
inline |
◆ swab()
void IGBheader::swab |
( |
void * |
data, |
|
|
int |
nd = -1 |
|
) |
| |
swap bytes ]]
- Parameters
-
data | data buffer |
nd | number of items in buffer |
Definition at line 1334 of file IGBheader.cc.
◆ systeme() [1/2]
int opencarp::IGBheader::systeme |
( |
void |
| ) |
|
|
inline |
◆ systeme() [2/2]
void IGBheader::systeme |
( |
const char * |
s | ) |
|
◆ systemestr()
const char * IGBheader::systemestr |
( |
void |
| ) |
|
◆ t() [1/3]
int opencarp::IGBheader::t |
( |
void |
| ) |
|
|
inline |
◆ t() [2/3]
int opencarp::IGBheader::t |
( |
bool & |
set | ) |
|
|
inline |
◆ t() [3/3]
void opencarp::IGBheader::t |
( |
int |
a | ) |
|
|
inline |
◆ taille() [1/3]
int opencarp::IGBheader::taille |
( |
void |
| ) |
|
|
inline |
◆ taille() [2/3]
int opencarp::IGBheader::taille |
( |
bool & |
set | ) |
|
|
inline |
◆ taille() [3/3]
void opencarp::IGBheader::taille |
( |
int |
a | ) |
|
|
inline |
◆ to_bin()
template<class T >
void IGBheader::to_bin |
( |
void * |
buf, |
|
|
T |
d |
|
) |
| |
convert the data to the binary representation
- Parameters
-
buf | place to put raw binary IGB data |
d | datum |
Definition at line 519 of file IGBheader.h.
◆ to_raw()
double opencarp::IGBheader::to_raw |
( |
double |
a | ) |
|
|
inline |
◆ trame() [1/3]
int opencarp::IGBheader::trame |
( |
void |
| ) |
|
|
inline |
◆ trame() [2/3]
int opencarp::IGBheader::trame |
( |
bool & |
set | ) |
|
|
inline |
◆ trame() [3/3]
void opencarp::IGBheader::trame |
( |
int |
a | ) |
|
|
inline |
◆ transparent() [1/3]
void opencarp::IGBheader::transparent |
( |
void * |
a | ) |
|
|
inline |
◆ transparent() [2/3]
void* opencarp::IGBheader::transparent |
( |
bool & |
set | ) |
|
|
inline |
◆ transparent() [3/3]
void* opencarp::IGBheader::transparent |
( |
void |
| ) |
|
|
inline |
◆ transparentstr()
char* opencarp::IGBheader::transparentstr |
( |
void |
| ) |
|
|
inline |
◆ type() [1/4]
int opencarp::IGBheader::type |
( |
void |
| ) |
|
|
inline |
◆ type() [2/4]
int opencarp::IGBheader::type |
( |
bool & |
set | ) |
|
|
inline |
◆ type() [3/4]
void opencarp::IGBheader::type |
( |
int |
a | ) |
|
|
inline |
◆ type() [4/4]
void IGBheader::type |
( |
char * |
datatype | ) |
|
◆ unites() [1/3]
void opencarp::IGBheader::unites |
( |
const char * |
a | ) |
|
|
inline |
◆ unites() [2/3]
char* opencarp::IGBheader::unites |
( |
bool & |
set | ) |
|
|
inline |
◆ unites() [3/3]
char* opencarp::IGBheader::unites |
( |
void |
| ) |
|
|
inline |
◆ unites_t() [1/3]
void opencarp::IGBheader::unites_t |
( |
const char * |
a | ) |
|
|
inline |
◆ unites_t() [2/3]
char* opencarp::IGBheader::unites_t |
( |
bool & |
set | ) |
|
|
inline |
◆ unites_t() [3/3]
char* opencarp::IGBheader::unites_t |
( |
void |
| ) |
|
|
inline |
◆ unites_x() [1/3]
void opencarp::IGBheader::unites_x |
( |
const char * |
a | ) |
|
|
inline |
◆ unites_x() [2/3]
char* opencarp::IGBheader::unites_x |
( |
bool & |
set | ) |
|
|
inline |
◆ unites_x() [3/3]
char* opencarp::IGBheader::unites_x |
( |
void |
| ) |
|
|
inline |
◆ unites_y() [1/3]
void opencarp::IGBheader::unites_y |
( |
const char * |
a | ) |
|
|
inline |
◆ unites_y() [2/3]
char* opencarp::IGBheader::unites_y |
( |
bool & |
set | ) |
|
|
inline |
◆ unites_y() [3/3]
char* opencarp::IGBheader::unites_y |
( |
void |
| ) |
|
|
inline |
◆ unites_z() [1/3]
void opencarp::IGBheader::unites_z |
( |
const char * |
a | ) |
|
|
inline |
◆ unites_z() [2/3]
char* opencarp::IGBheader::unites_z |
( |
bool & |
set | ) |
|
|
inline |
◆ unites_z() [3/3]
char* opencarp::IGBheader::unites_z |
( |
void |
| ) |
|
|
inline |
◆ vect_z() [1/3]
void opencarp::IGBheader::vect_z |
( |
float * |
a | ) |
|
|
inline |
◆ vect_z() [2/3]
float* opencarp::IGBheader::vect_z |
( |
bool & |
set | ) |
|
|
inline |
◆ vect_z() [3/3]
float* opencarp::IGBheader::vect_z |
( |
void |
| ) |
|
|
inline |
◆ write()
◆ write_data()
template<class T >
void IGBheader::write_data |
( |
T * |
dp, |
|
|
int |
numt = 1 , |
|
|
char * |
buf = NULL |
|
) |
| |
write out a number of time slices
- Parameters
-
dp[in] | buffer of data |
numt | number of time slices |
buf | temporary buffer of raw data |
Definition at line 387 of file IGBheader.h.
◆ x() [1/3]
int opencarp::IGBheader::x |
( |
void |
| ) |
|
|
inline |
◆ x() [2/3]
int opencarp::IGBheader::x |
( |
bool & |
set | ) |
|
|
inline |
◆ x() [3/3]
void opencarp::IGBheader::x |
( |
int |
a | ) |
|
|
inline |
◆ y() [1/3]
int opencarp::IGBheader::y |
( |
void |
| ) |
|
|
inline |
◆ y() [2/3]
int opencarp::IGBheader::y |
( |
bool & |
set | ) |
|
|
inline |
◆ y() [3/3]
void opencarp::IGBheader::y |
( |
int |
a | ) |
|
|
inline |
◆ z() [1/3]
int opencarp::IGBheader::z |
( |
void |
| ) |
|
|
inline |
◆ z() [2/3]
int opencarp::IGBheader::z |
( |
bool & |
set | ) |
|
|
inline |
◆ z() [3/3]
void opencarp::IGBheader::z |
( |
int |
a | ) |
|
|
inline |
◆ zero() [1/3]
void opencarp::IGBheader::zero |
( |
float |
a | ) |
|
|
inline |
◆ zero() [2/3]
float opencarp::IGBheader::zero |
( |
bool & |
set | ) |
|
|
inline |
◆ zero() [3/3]
float opencarp::IGBheader::zero |
( |
void |
| ) |
|
|
inline |
The documentation for this class was generated from the following files: