VIP: Volume Image Processing


TivoliIO_util.h File Reference
#include <stdlib.h>
#include <stdio.h>
Include dependency graph for TivoliIO_util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  Coord
 
struct  CoordF
 
struct  LineCoord
 
struct  PlaneCoord
 
struct  Angle
 

Macros

#define __attribute__(a)
 
#define SHOW_LIM   1
 
#define HIDE_LIM   0
 
#define VTRUE   1
 
#define VFALSE   0
 
#define YES   1
 
#define NO   0
 
#define ONE   1
 
#define ZERO   0
 
#define OK   1
 
#define PB   0
 
#define IN   1
 
#define MSG   2
 
#define OUT   3
 
#define ON   1
 
#define OFF   0
 
#define T_HELPDIR   "T_HELPDIR"
 
#define WORLD   1
 
#define DATA   2
 
#define vinilum(a, b)
 
#define vaxilum(a, b)
 

Functions

void * mallocT (size_t size)
 
void * callocT (size_t nelem, size_t elsize)
 
void ** matAlloc (int lines, int columns, int elem_size)
 
void matFree (void **mat)
 
char * charMalloc (size_t length)
 
void exitError (char *errorText)
 
void printfexit (char *fname) __attribute__((__noreturn__))
 
void printftrace (int mode, char *fmt,...)
 
float ask_float (float *def, float *mini, float *maxi, char *comment)
 
int getMyInt (int liminf, int limsup, int show)
 
float getMyFloat (float liminf, float limsup, int show)
 
char * getMyName (char *question, int maxsize)
 
int getManicheanRep (char *question)
 
void matPrint (char name[], int rows, int cols, double **array)
 
int file_open_read (FILE **fp, const char *name)
 
int file_open_write (FILE **fp, const char *name)
 
int file_open_append (FILE **fp, const char *name)
 
int file_close (FILE **fp)
 
int file_write (void *ptr, size_t size, size_t length, FILE *fp)
 
int m_filename (char *base, char *name, int number)
 
int m_point_filename (char *base, char *name, int number)
 
int m_zero_filename (char *base, char *name, int number)
 
char * composeName (char *baseName, char *ext1, char *ext2)
 
int roundD2I (double f)
 
long int roundFloat2Long (float f)
 
int roundFloat2Int (float f)
 
unsigned char roundFloat2UChar (float f)
 
int printUsage (char *usageOf)
 
int printHelp (char *helpon)
 

Variables

int TRACE
 
int VERBOSE
 
int EXEC
 

Macro Definition Documentation

◆ __attribute__

#define __attribute__ ( a)
Value:
/* nothing */

Definition at line 38 of file TivoliIO_util.h.

◆ DATA

#define DATA   2

Definition at line 87 of file TivoliIO_util.h.

◆ HIDE_LIM

#define HIDE_LIM   0

Definition at line 49 of file TivoliIO_util.h.

◆ IN

#define IN   1

Definition at line 69 of file TivoliIO_util.h.

◆ MSG

#define MSG   2

Definition at line 70 of file TivoliIO_util.h.

◆ NO

#define NO   0

Definition at line 57 of file TivoliIO_util.h.

◆ OFF

#define OFF   0

Definition at line 76 of file TivoliIO_util.h.

◆ OK

#define OK   1

Definition at line 64 of file TivoliIO_util.h.

◆ ON

#define ON   1

Definition at line 75 of file TivoliIO_util.h.

◆ ONE

#define ONE   1

Definition at line 59 of file TivoliIO_util.h.

◆ OUT

#define OUT   3

Definition at line 71 of file TivoliIO_util.h.

◆ PB

#define PB   0

Definition at line 65 of file TivoliIO_util.h.

◆ SHOW_LIM

#define SHOW_LIM   1

Definition at line 48 of file TivoliIO_util.h.

◆ T_HELPDIR

#define T_HELPDIR   "T_HELPDIR"

Definition at line 79 of file TivoliIO_util.h.

◆ vaxilum

#define vaxilum ( a,
b )
Value:
((a)>(b)?(a):(b))

Definition at line 129 of file TivoliIO_util.h.

◆ VFALSE

#define VFALSE   0

Definition at line 54 of file TivoliIO_util.h.

◆ vinilum

#define vinilum ( a,
b )
Value:
((a)<(b)?(a):(b))

Definition at line 128 of file TivoliIO_util.h.

◆ VTRUE

#define VTRUE   1

Definition at line 53 of file TivoliIO_util.h.

◆ WORLD

#define WORLD   1

Definition at line 86 of file TivoliIO_util.h.

◆ YES

#define YES   1

Definition at line 56 of file TivoliIO_util.h.

◆ ZERO

#define ZERO   0

Definition at line 60 of file TivoliIO_util.h.

Function Documentation

◆ ask_float()

float ask_float ( float * def,
float * mini,
float * maxi,
char * comment )

◆ callocT()

void * callocT ( size_t nelem,
size_t elsize )
extern

References callocT().

Referenced by callocT().

◆ charMalloc()

char * charMalloc ( size_t length)

◆ composeName()

char * composeName ( char * baseName,
char * ext1,
char * ext2 )
extern

◆ exitError()

void exitError ( char * errorText)
extern

◆ file_close()

int file_close ( FILE ** fp)
extern

◆ file_open_append()

int file_open_append ( FILE ** fp,
const char * name )
extern

◆ file_open_read()

int file_open_read ( FILE ** fp,
const char * name )
extern

◆ file_open_write()

int file_open_write ( FILE ** fp,
const char * name )
extern

◆ file_write()

int file_write ( void * ptr,
size_t size,
size_t length,
FILE * fp )
extern

◆ getManicheanRep()

int getManicheanRep ( char * question)
extern

◆ getMyFloat()

float getMyFloat ( float liminf,
float limsup,
int show )
extern

◆ getMyInt()

int getMyInt ( int liminf,
int limsup,
int show )
extern

◆ getMyName()

char * getMyName ( char * question,
int maxsize )
extern

◆ m_filename()

int m_filename ( char * base,
char * name,
int number )
extern

◆ m_point_filename()

int m_point_filename ( char * base,
char * name,
int number )
extern

◆ m_zero_filename()

int m_zero_filename ( char * base,
char * name,
int number )
extern

◆ mallocT()

void * mallocT ( size_t size)
extern

References mallocT().

Referenced by mallocT().

◆ matAlloc()

void ** matAlloc ( int lines,
int columns,
int elem_size )
extern

References matAlloc().

Referenced by matAlloc().

◆ matFree()

void matFree ( void ** mat)
extern

References matFree().

Referenced by matFree().

◆ matPrint()

void matPrint ( char name[],
int rows,
int cols,
double ** array )
extern

References matPrint().

Referenced by matPrint().

◆ printfexit()

void printfexit ( char * fname)
extern

References printfexit().

Referenced by printfexit().

◆ printftrace()

void printftrace ( int mode,
char * fmt,
... )
extern

References printftrace().

Referenced by printftrace().

◆ printHelp()

int printHelp ( char * helpon)

◆ printUsage()

int printUsage ( char * usageOf)

◆ roundD2I()

int roundD2I ( double f)

◆ roundFloat2Int()

int roundFloat2Int ( float f)

◆ roundFloat2Long()

long int roundFloat2Long ( float f)

◆ roundFloat2UChar()

unsigned char roundFloat2UChar ( float f)

Variable Documentation

◆ EXEC

int EXEC
extern

◆ TRACE

int TRACE
extern

◆ VERBOSE

int VERBOSE
extern