|
Developer Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
/////////////////////////////////////////////////
RawIO.hh
Basic IO class.
Variables:
- BRCPtrC driver;
-
Methods:
- RawIOC()
-
NULL io.
- RawIOC(int fd,BooleanT NoClose = FALSE)
-
Open a file handle.
- RawIOC(const char * filename,IntT fmode)
-
Open a file, fmode uses same permisions
as open.
RawIOC(IntT PortNo,IntT BaudRate = 9600)
Open a serial port.
- RawIOC(RawIOBaseC & drv)
-
New driver.
- RawIOC(const RawIOC & drv)
-
Copy constructor.
- IntT Write(const void * buff,IntT size)
-
Write 'size' bytes from 'buff' to file handle.
returns number of charactors written.
- IntT Read(void * buff,IntT size)
-
Read from file.
- IntT LSeek(IntT off,IntT where)
-
Seek to start of file.
Ret: -1 == Error.
otherwise absolute location of error.
- IntT Close()
-
Close file handle.
- IntT ErrorNo() const
-
Get a UNIX style error number.
Ret: 0 == No error.
-1 == Not supported.
- void Dump(ostream & out)
-
Dump to stream.
- BooleanT IsValid() const
-
test if its a valid handle.
|
Programmer:eep1cg, Documentation by CxxDoc: Tue Mar 20 10:49:27 2001
|