Wheefun I/O Library  0.0.5
Useful I/O Primitives.
Classes | Functions
wfio::os::beos Namespace Reference

Elements of WFIO related to BeOS. More...

Classes

class  BeOSDevice
 A device wrapping a BeOS IO Object. More...
 

Functions

inline ::wfio_ecode_t errorFromNative (int error) throw ()
 Translate a BeOS error code into a WFIO error. More...
 

Detailed Description

Elements of WFIO related to BeOS.

Function Documentation

◆ errorFromNative()

inline ::wfio_ecode_t wfio::os::beos::errorFromNative ( int  error)
throw (
)

Translate a BeOS error code into a WFIO error.

This function attempts to translate an error code into its WFIO counterpart. It can operate on either negative or positive error codes; if the error code is positive, then it is converted into its negative counterpart before translation occurs.

Parameters
ecodeThe error code to translate.
Returns
The corresponding WFIO error code for this BeOS error code.