65 return (_string != 0) ? *_string : _nullStr;
67 void print(std::ostream& ostr)
const;
71 if (_string != 0)
delete _string;
73 _string=
new std::string(str);
82 _failure=(i==0?1:i); _success=0;
86 _success=(i==0?1:i); _failure=0;
95 static std::string _nullStr;
std::ostream & operator<<(std::ostream &os, const TrkErrCode &trkerr)
void print(std::ostream &ostr) const
TrkErrCode & operator=(const TrkErrCode &)
const std::string & message() const
void setSuccess(int i, const char *str=0)
void setMessage(const char *str=0)
void setFailure(int i, const char *str=0)