#include <HxMessageHolder.h>
Public Methods | |
HxMessageHolder () | |
virtual STD_OSTREAM & | errorStream () |
virtual void | flush () |
virtual void | clearMessage () |
virtual bool | hasError () |
virtual char * | getMessage () |
|
00014 { 00015 _errorStr.rdbuf()->freeze(0); 00016 _errorStr.seekp(0); 00017 _message = NULL; 00018 //_capturing = 0; 00019 } |
|
00023 { 00024 //if(!_capturing) 00025 // return HxEnvironment::errorStream(); 00026 //else 00027 return _errorStr; 00028 } |
|
00032 { 00033 //if(!_capturing) { 00034 // HxEnvironment::flush(); 00035 //} 00036 //else 00037 if (_errorStr.pcount() > 0) { 00038 _errorStr << STD_ENDS; 00039 _message = _errorStr.str(); 00040 _errorStr.rdbuf()->freeze(0); 00041 _errorStr.seekp(0); 00042 } 00043 } |
|
00067 { 00068 if (_errorStr.pcount() > 0) { 00069 _errorStr << STD_ENDS; 00070 _errorStr.str(); 00071 _errorStr.rdbuf()->freeze(0); 00072 _errorStr.seekp(0); 00073 } 00074 _message = NULL; 00075 } |
|
00079 { 00080 return (_message != NULL); 00081 } |
|
00085 { 00086 static char* empty = ""; 00087 return (_message == NULL)? empty : _message; 00088 } |