|
|
static bool | readImage (const char *filename, goSignal3D< void > *signal, bool linear=false) throw (goFileIOException, goTypeException) |
| |
| static bool | writeImage (const char *filename, const goSignal3DBase< void > *signal) throw (goFileIOException, goTypeException) |
| | Write an image file from a goSignal3DBase<void> object. More...
|
| |
| template<class T > |
| static bool | writeBinaryMatrix (const goMath::Matrix< T > &, FILE *f) |
| | Write binary matrix as described in the gnuplot manual. More...
|
| |
|
template<class T > |
| static bool | writeBinaryMatrix (const goMath::Matrix< T > &, const char *filename) |
| |
| static FILE * | createTempFile (goString &filenameRet) |
| | Creates a temporary file. More...
|
| |
| static bool | remove (const goString &filename) |
| | Removes a file. More...
|
| |
| static goSize_t | fileSize (const char *filename) |
| | Uses fseek() to find out the file size. More...
|
| |
| static bool | readASCII (const char *filename, goString &target) |
| | Read ASCII string from file. More...
|
| |
| static bool | readASCII (FILE *f, goString &target, goSize_t sz) |
| | Read a fixed number of characters from an ASCII file. More...
|
| |
| static bool | readASCIIMax (FILE *f, goString &target, goSize_t max) |
| | Reads up to max characters or until 0. More...
|
| |
| static bool | readASCII (FILE *f, goString &target) |
| | Read until 0 is read or nothing else can be read. More...
|
| |
| static bool | readASCIILine (FILE *f, goString &target) |
| | Read a line of ascii text. More...
|
| |
| static bool | writeASCII (const char *filename, const goString &str) |
| | Write ASCII string to file. More...
|
| |
| static bool | writeASCII (FILE *f, const goString &str) |
| | Write a string to an already open file. More...
|
| |
| static bool | fileExists (const char *filename) |
| | Check if a file exists. More...
|
| |
| static bool | mkdir (const char *pathname) |
| | Create a directory. More...
|
| |
Reading/writing files and some utility functions.
Provides file reading/writing facilities.
template<class T >
| bool goFileIO::writeBinaryMatrix |
( |
const goMath::Matrix< T > & |
M, |
|
|
FILE * |
f |
|
) |
| |
|
static |
Write binary matrix as described in the gnuplot manual.
The data looks like:
<N+1> <y0> <y1> <y2> ... <yN>
<x0> <z0,0> <z0,1> <z0,2> ... <z0,N>
<x1> <z1,0> <z1,1> <z1,2> ... <z1,N>
: : : : ... :
- Parameters
-
| M | Matrix (goFloat or goDouble type) |
| filename | File name. |
- Returns
- True if successful, false otherwise.