debug_tools.h File Reference

Useful tools for debug. More...

#include <stdio.h>

Include dependency graph for debug_tools.h:

Go to the source code of this file.

Classes

struct  AutoFile

Functions

int error_messager (const char *filenum, const int line, const char *errormessage)
bool file_exists (const char *file_name)
int write_vector_to_file (FILE *fp, double *vector, size_t n, int offset)
int write_vector_to_file (const char *file_name, double *vector, size_t n, int offset)
int read_vector_from_file (FILE *fp, double *vector, size_t n, int offset)
int read_vector_from_file (const char *file_name, double *vector, size_t n, int offset)
int write_vector_to_file (const char *file_name, double *vector, const int n)
int write_int_vector_to_file (const char *file_name, int *vector, const int n)
int read_vector_from_file (const char *file_name, double *vector, const int n)


Detailed Description

Useful tools for debug.

Author:
Borschuk Oleg
Date:
19.06.2006 This source code is released under the terms of the BSD License. See LICENSE for more details.
Todo:
Obsolete, should be removed

Function Documentation

int error_messager ( const char *  filenum,
const int  line,
const char *  errormessage 
)

bool file_exists ( const char *  file_name  ) 

int read_vector_from_file ( const char *  file_name,
double *  vector,
const int  n 
)

int read_vector_from_file ( const char *  file_name,
double *  vector,
size_t  n,
int  offset 
)

int read_vector_from_file ( FILE *  fp,
double *  vector,
size_t  n,
int  offset 
)

Parameters:
offset number of items from beginning of file
Returns:
0 if successful

int write_int_vector_to_file ( const char *  file_name,
int *  vector,
const int  n 
)

int write_vector_to_file ( const char *  file_name,
double *  vector,
const int  n 
)

int write_vector_to_file ( const char *  file_name,
double *  vector,
size_t  n,
int  offset 
)

int write_vector_to_file ( FILE *  fp,
double *  vector,
size_t  n,
int  offset 
)

Parameters:
offset number of items from beginning of file
Returns:
0 if successful


Generated on Fri Nov 13 12:07:12 2009 for TheBSEagleProject by  doxygen 1.5.8