|
Beamlib
3.0.1
This is the Beam C++ class library.
|
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... | |
| BErrorTime & | set (int errNo, BTimeStamp errTime=BTimeStamp(), BString errStr="") |
| Set error number and message. More... | |
| BErrorTime & | clear () |
| 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... | |
Error return class with time field.
This provides an alternative to the standard BError return type for errors but includes BTimeStamp information.
| enum BErrorTime::Type |
| BErrorTime::BErrorTime | ( | int | errNo = None, |
| BTimeStamp | errTime = BTimeStamp(), |
||
| BString | errStr = "" |
||
| ) |
Create object.
| BErrorTime & BErrorTime::set | ( | int | errNo, |
| BTimeStamp | errTime = BTimeStamp(), |
||
| BString | errStr = "" |
||
| ) |
Set error number and message.
| BErrorTime & BErrorTime::clear | ( | ) |
Clear the error.
| int BErrorTime::getErrorNo | ( | ) | const |
Get The error number.
| BTimeStamp BErrorTime::getTime | ( | ) | const |
Get time.
| BString BErrorTime::getString | ( | ) | const |
Get error message.
| BErrorTime BErrorTime::copy | ( | ) |
Return an independant copy.
| BErrorTime::operator int | ( | ) | const |
Return error number.