Main Page   Packages   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

Device Class Reference

#include <Device.hpp>

List of all members.

Public Methods

 Device (const char *name="/dev/con1", int flags=O_RDWR, bool openit=true)
virtual ~Device ()
void Open ()
void Close ()
void Read (void *buf, size_t sz)
void Write (const void *buf, size_t sz)
char ReadChar ()
void WriteChar (char c)
int Select ()
void Raw ()
void Cooked ()
const char * getName () const
bool isOpen () const
bool getMode () const
int getFlags () const

Protected Attributes

int fd
bool opened
bool mode
int oflag
fd_set rfd
timeval tv
char name [20]
char buffer [80]

Private Methods

 Device (const Device &)
const Device & operator= (const Device &)


Constructor & Destructor Documentation

Device::Device const char *    name = "/dev/con1",
int    flags = O_RDWR,
bool    openit = true
 

virtual Device::~Device   [virtual]
 

Device::Device const Device &    [private]
 


Member Function Documentation

void Device::Close  
 

void Device::Cooked  
 

void Device::Open  
 

void Device::Raw  
 

void Device::Read void *    buf,
size_t    sz
 

char Device::ReadChar   [inline]
 

int Device::Select  
 

void Device::Write const void *    buf,
size_t    sz
 

void Device::WriteChar char    c [inline]
 

int Device::getFlags   const [inline]
 

bool Device::getMode   const [inline]
 

const char* Device::getName   const [inline]
 

bool Device::isOpen   const [inline]
 

const Device& Device::operator= const Device &    [private]
 


Member Data Documentation

char Device::buffer[ 80 ] [protected]
 

Definition at line 100 of file Device.hpp.

int Device::fd [protected]
 

Definition at line 89 of file Device.hpp.

bool Device::mode [protected]
 

Definition at line 92 of file Device.hpp.

char Device::name[ 20 ] [protected]
 

Definition at line 99 of file Device.hpp.

int Device::oflag [protected]
 

Definition at line 94 of file Device.hpp.

bool Device::opened [protected]
 

Definition at line 91 of file Device.hpp.

fd_set Device::rfd [protected]
 

Definition at line 96 of file Device.hpp.

struct timeval Device::tv [protected]
 

Definition at line 97 of file Device.hpp.


The documentation for this class was generated from the following file:
Generated on Sun Oct 14 18:48:32 2001 for Standard J2K Library by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001