Wheefun I/O Library  0.0.5
Useful I/O Primitives.
Public Types | Public Member Functions | Public Attributes | List of all members
wfio::IOShare Struct Reference

An IO sharing mode. More...

#include <iotype.h>

Public Types

enum  { O_WEAK = ::WFIO_IOSHARE_O_WEAK, O_ACQUIRE = ::WFIO_IOSHARE_O_ACQUIRE, O_DUP = ::WFIO_IOSHARE_O_DUP, M_OWNERSHIP = ::WFIO_IOSHARE_M_OWNERSHIP }
 
enum  Ownership { WEAK = ::WFIO_IOSHARE_O_WEAK, ACQUIRE = ::WFIO_IOSHARE_O_ACQUIRE, DUP = ::WFIO_IOSHARE_O_WEAK }
 An ownership type for an IOShare. More...
 
typedef ::wfio_ioshare_t CType
 

Public Member Functions

 IOShare () throw ()
 Construct the default IOShare.
 
 IOShare (int value) throw ()
 Construct an IOShare from an explicit value.
 
Ownership ownership () const throw ()
 Obtain the ownership type from this IOShare.
 
void ownership (Ownership ownership) throw ()
 Set the ownership type of this IOShare.
 
 operator int () const throw ()
 Convert this IOShare to an integer.
 

Public Attributes

int value
 The literal value for this IOShare.
 

Detailed Description

An IO sharing mode.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
O_WEAK 

An IOShare mode indicating that the stream is shared weakly.

O_ACQUIRE 

An IOShare mode indicating that the stream is acquired.

O_DUP 

An IOShare mode indicating that the stream is duplicated.

M_OWNERSHIP 

An IOShare mask selecting the ownership mode for this mode.

◆ Ownership

An ownership type for an IOShare.

Enumerator
WEAK 

An ownership type corresponding to O_WEAK.

ACQUIRE 

An ownership type corresponding to O_ACQUIRE.

DUP 

An ownership type corresponding to O_DUP.


The documentation for this struct was generated from the following file: