ErrorReporter Class
The ErrorReporter handles reporting and retrieval of an error string. More...
Header: | #include <ErrorReporter> |
Inherits: | IErrorReporter |
Public Functions
virtual | ~ErrorReporter() |
Reimplemented Public Functions
virtual void | AddIssue(const std::string &issuemessage, IssueLevel level, const std::string &filename = std::string(), int line = -1) |
virtual void | ClearLastErrorMessage() |
virtual const char * | GetLastErrorMessage() const |
- 3 public functions inherited from IErrorReporter
Reimplemented Protected Functions
virtual std::string | GetLevelString(IssueLevel level) |
- 1 protected function inherited from IErrorReporter
Detailed Description
The ErrorReporter handles reporting and retrieval of an error string.
Member Function Documentation
[virtual]
ErrorReporter::~ErrorReporter()
Destroys the instance of ErrorReporter. The destructor is virtual.
[virtual]
void ErrorReporter::AddIssue(const std::string &issuemessage, IssueLevel level, const std::string &filename = std::string(), int line = -1)
Reimplemented from IErrorReporter::AddIssue().
Generates an issue string in the form <filename>:<line>: <level string>: <issuemessage>.
[virtual]
void ErrorReporter::ClearLastErrorMessage()
Reimplemented from IErrorReporter::ClearLastErrorMessage().
Clears the error message.
[virtual]
const char *ErrorReporter::GetLastErrorMessage() const
Reimplemented from IErrorReporter::GetLastErrorMessage().
Gets the last error-message that is set in the reporter instance.
[virtual protected]
std::string ErrorReporter::GetLevelString(IssueLevel level)
Reimplemented from IErrorReporter::GetLevelString().
Returns the string that corresponds to level.
Returns WARNING for eWarning, OK for eINFO and ERROR otherwise.
Get started with CDP Studio today
Let us help you take your great ideas and turn them into the products your customer will love.