Wheefun I/O Library
0.0.5
Useful I/O Primitives.
|
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. | |
An IO sharing mode.
anonymous enum |
An ownership type for an IOShare.
Enumerator | |
---|---|
WEAK | An ownership type corresponding to |
ACQUIRE | An ownership type corresponding to |
DUP | An ownership type corresponding to |