Beamlib 3.1.1
This is the Beam C++ class library.
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
BErrorTime Class Reference

Error return class with time field. More...

#include <BErrorTime.h>

Public Types

enum  Type { None = 0 , Error = 1 }
 

Public Member Functions

 BErrorTime (int errNo=None, BTimeStamp errTime=BTimeStamp(), BString errStr="")
 Create object. More...
 
BErrorTimeset (int errNo, BTimeStamp errTime=BTimeStamp(), BString errStr="")
 Set error number and message. More...
 
BErrorTimeclear ()
 Clear the error. More...
 
int getErrorNo () const
 Get The error number. More...
 
BTimeStamp getTime () const
 Get time. More...
 
BString getString () const
 Get error message. More...
 
BErrorTime copy ()
 Return an independant copy. More...
 
 operator int () const
 Return error number. More...
 

Detailed Description

Error return class with time field.

This provides an alternative to the standard BError return type for errors but includes BTimeStamp information.

Member Enumeration Documentation

◆ Type

Enumerator
None 
Error 

Constructor & Destructor Documentation

◆ BErrorTime()

BErrorTime::BErrorTime ( int  errNo = None,
BTimeStamp  errTime = BTimeStamp(),
BString  errStr = "" 
)

Create object.

Member Function Documentation

◆ set()

BErrorTime & BErrorTime::set ( int  errNo,
BTimeStamp  errTime = BTimeStamp(),
BString  errStr = "" 
)

Set error number and message.

◆ clear()

BErrorTime & BErrorTime::clear ( )

Clear the error.

◆ getErrorNo()

int BErrorTime::getErrorNo ( ) const

Get The error number.

◆ getTime()

BTimeStamp BErrorTime::getTime ( ) const

Get time.

◆ getString()

BString BErrorTime::getString ( ) const

Get error message.

◆ copy()

BErrorTime BErrorTime::copy ( )

Return an independant copy.

◆ operator int()

BErrorTime::operator int ( ) const

Return error number.


The documentation for this class was generated from the following files: