UT/UT_NTStreamUtil.h File Reference

#include "UT_API.h"
#include <stdio.h>
#include <fstream.h>
#include <SYS/SYS_Types.h>
#include "UT_TmpDir.h"
#include <iostream.h>
#include <strstream.h>

Go to the source code of this file.

Classes

class  UT_OStrStream
class  UT_TempStream
class  UT_StreamBufferFilter

Defines

#define NTBinaryMode   0
#define UT_NoCreate   ios::nocreate
#define DECLARE_PORTABLE_RW(type)

Typedefs

typedef int UT_EnumType

Enumerations

enum  UT_STRING_BINARY_IO { UT_STRING_8BIT_IO = 8, UT_STRING_16BIT_IO = 16, UT_STRING_32BIT_IO = 32, UT_STRING_64BIT_IO = 64 }

Functions

UT_API void UTbuildDOSCommandLine (char *dest, const char *const *args)
UT_API void UTbuildDOSCommandLine (UT_WorkBuffer &buf, const char *const *args)
UT_API void UTsaveStringBinary (ostream &os, const char *str, UT_STRING_BINARY_IO minbits)
UT_API bool UTwriteFiltered (ostream &os, const char *data, int size, UT_StreamBufferFilter *filter)
UT_API bool UTcopyStreamToStream (istream &is, ostream &os, unsigned maxlen=0xFFFFFFFF, UT_StreamBufferFilter *filter=NULL)
UT_API bool UTcopyStreamToStream (UT_IStream &is, ostream &os, unsigned maxlen=0xFFFFFFFF, UT_StreamBufferFilter *filter=NULL)
UT_API void UTcreateTempFileName (UT_String &tempfile, const char *matchExt=0)
UT_API bool UTcreateDirectoryForFile (const char *filename)
UT_API bool UTisDataAvailableOnFD (int fd)
UT_API bool UTisDataAvailableOnStdin ()
UT_API bool UTisStdinValid ()
UT_API void UTwaitForTimeoutOrDataOnFD (long clock_ticks, int fd)
UT_API void UTwaitForTimeoutOrDataOnStdin (long clock_ticks)


Define Documentation

#define DECLARE_PORTABLE_RW ( type   ) 

Value:

UT_API ostream &UTwrite( ostream &os, const type *src, int numelem = 1); \
    UT_API int UTfread( FILE *f, type *dest, int numelem = 1 ); \
    UT_API int UTfwrite( FILE *f, const type *src, int numelem = 1 );

Definition at line 119 of file UT_NTStreamUtil.h.

#define NTBinaryMode   0

Definition at line 47 of file UT_NTStreamUtil.h.

#define UT_NoCreate   ios::nocreate

Definition at line 54 of file UT_NTStreamUtil.h.


Typedef Documentation

typedef int UT_EnumType

Definition at line 13 of file UT_NTStreamUtil.h.


Enumeration Type Documentation

Enumerator:
UT_STRING_8BIT_IO 
UT_STRING_16BIT_IO 
UT_STRING_32BIT_IO 
UT_STRING_64BIT_IO 

Definition at line 18 of file UT_NTStreamUtil.h.


Function Documentation

UT_API void UTbuildDOSCommandLine ( UT_WorkBuffer buf,
const char *const *  args 
)

UT_API void UTbuildDOSCommandLine ( char *  dest,
const char *const *  args 
)

UT_API bool UTcopyStreamToStream ( UT_IStream is,
ostream &  os,
unsigned  maxlen = 0xFFFFFFFF,
UT_StreamBufferFilter filter = NULL 
)

UT_API bool UTcopyStreamToStream ( istream &  is,
ostream &  os,
unsigned  maxlen = 0xFFFFFFFF,
UT_StreamBufferFilter filter = NULL 
)

UT_API bool UTcreateDirectoryForFile ( const char *  filename  ) 

UT_API void UTcreateTempFileName ( UT_String tempfile,
const char *  matchExt = 0 
)

UT_API bool UTisDataAvailableOnFD ( int  fd  ) 

UT_API bool UTisDataAvailableOnStdin (  ) 

UT_API bool UTisStdinValid (  ) 

UT_API void UTsaveStringBinary ( ostream &  os,
const char *  str,
UT_STRING_BINARY_IO  minbits 
)

UT_API void UTwaitForTimeoutOrDataOnFD ( long  clock_ticks,
int  fd 
)

UT_API void UTwaitForTimeoutOrDataOnStdin ( long  clock_ticks  ) 

UT_API bool UTwriteFiltered ( ostream &  os,
const char *  data,
int  size,
UT_StreamBufferFilter filter 
)


Generated on Thu May 24 00:09:05 2012 for HDK by  doxygen 1.5.9