Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

miodevice.h File Reference

More...

#include <magic/mobject.h>
#include <magic/mlist.h>
#include <magic/mexception.h>

Go to the source code of this file.

Compounds

class  Buffer
 A character buffer readable and writable with standard I/O methods. More...

class  File
 A file object for reading, writing, or otherwise manipulating files. More...

class  IODevice
 Baseclass for I/O devices. More...


Enumerations

enum  io_modes {
  IO_Raw = 0x00000001, IO_Readable = 0x00000002, IO_Writable = 0x00000004, IO_ReadWrite = 0x00000006,
  IO_Append = 0x00000008, IO_Truncate = 0x00000010
}
enum  io_states { IO_Open = 0x00000100, IO_EOS = 0x00000200 }
enum  io_statuses {
  IO_Ok = 0x00000000, IO_ReadError = 0x00000001, IO_WriteError = 0x00000002, IO_FatalError = 0x00000003,
  IO_OpenError = 0x00000004, IO_ConnectError = 0x00000005 , IO_TimeOutError = 0x00000007, IO_OnCloseError = 0x00000008
}

Functions

 BEGIN_NAMESPACE (MagiC)


Detailed Description

Definition in file miodevice.h.


Enumeration Type Documentation

enum io_modes
 

Enumeration values:
IO_Raw  Raw (unbuffered) I/O-mode.
IO_Readable  I/O-mode for opening the device for reading.
IO_Writable  I/O-mode for opening the device for writing.
IO_ReadWrite  I/O-mode for opening the device for both reading and writing.
IO_Append  I/O-mode that indicates that device opened for writing should be opened at the end of file.
IO_Truncate  I/O-mode that indicates that device opened for writing should be truncated.

Definition at line 55 of file miodevice.h.

enum io_states
 

Enumeration values:
IO_Open  State flag that indicates that the device is open.
IO_EOS  The device is at end-of-stream.

Definition at line 67 of file miodevice.h.

enum io_statuses
 

Enumeration values:
IO_Ok  Operation was successful.
IO_ReadError  Error while reading.
IO_WriteError  Error while writing.
IO_FatalError  Fatal error.
IO_OpenError  Error while opening the device.
IO_ConnectError  Error while connecting the device.
IO_TimeOutError  Time out.
IO_OnCloseError  Error while closing the device.

Definition at line 73 of file miodevice.h.


Function Documentation

BEGIN_NAMESPACE MagiC   
 

This file is part of the MagiC++ library.

* * Copyright (C) 1998-2002 Marko Grönroos <magi@iki.fi> * *

* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; see the file COPYING.LIB. If * not, write to the Free Software Foundation, Inc., 59 Temple Place *

  • Suite 330, Boston, MA 02111-1307, USA. * *


Generated on Thu Feb 10 20:06:42 2005 for LibMagiC by doxygen1.2.18