Edinburgh Speech Tools  2.1-release
EST_io_aux.h File Reference

Utility IO Function header file. More...

#include "EST_unix.h"
#include "EST_common.h"
#include "EST_String.h"
#include "EST_types.h"
Include dependency graph for EST_io_aux.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define numeric_char(in)   (((in < '9' ) && (in > '0')) ? TRUE : FALSE)
 

Typedefs

typedef int SOCKET_FD
 

Functions

EST_String make_tmp_filename ()
 Make a unique temporary filename. More...
 
EST_String stdin_to_file ()
 Copy stdin to a file and return the name of that tmpfile. More...
 
int writable_file (char *filename)
 return true if this file is writeable More...
 
int readable_file (char *filename)
 return true if this file is readable More...
 
int delete_file (const EST_String &filename)
 OS independent way of removing a file. More...
 
EST_String uncompress_file_to_temporary (const EST_String &filename, const EST_String &prog_name)
 Uncompress file by calling program prog, and write it to new tempoary file. Return name of temporary file. More...
 
int compress_file_in_place (const EST_String &filename, const EST_String &prog_name)
 Uncompress file and over-write existing file with uncompressed version. More...
 
int compress_file (const EST_String &filename, const EST_String &new_filename, const EST_String &prog_name)
 compress file by calling program prog, writing result to new_filename More...
 
int socket_receive_file (SOCKET_FD fd, const EST_String &filename)
 
int socket_send_file (SOCKET_FD fd, const EST_String &filename)
 

Detailed Description

Utility IO Function header file.

Definition in file EST_io_aux.h.

Macro Definition Documentation

#define numeric_char (   in)    (((in < '9' ) && (in > '0')) ? TRUE : FALSE)

Definition at line 98 of file EST_io_aux.h.

Typedef Documentation

typedef int SOCKET_FD

Definition at line 104 of file EST_io_aux.h.

Function Documentation

int socket_receive_file ( SOCKET_FD  fd,
const EST_String filename 
)

Definition at line 74 of file filetrans.cc.

int socket_send_file ( SOCKET_FD  fd,
const EST_String filename 
)

Definition at line 112 of file filetrans.cc.