Storage for a single message.
More...
#include <Errata.h>
Detailed Description
Storage for a single message.
Definition at line 427 of file Errata.h.
Member Typedef Documentation
Self reference type.
Definition at line 428 of file Errata.h.
Type for overriding success message test.
Definition at line 501 of file Errata.h.
Constructor & Destructor Documentation
ts::Errata::Message::Message |
( |
|
) |
[inline] |
Default constructor.
The message has Id = 0, default code, and empty text.
Definition at line 790 of file Errata.h.
ts::Errata::Message::Message |
( |
std::string const & |
text |
) |
[inline] |
Construct from text.
Id is zero and Code is default.
- Parameters:
-
| text | Finalized message text. |
Definition at line 793 of file Errata.h.
ts::Errata::Message::Message |
( |
Id |
id, |
|
|
std::string const & |
text | |
|
) |
| | [inline] |
Construct with id and text.
Code is default.
- Parameters:
-
| id | ID of message in table. |
| text | Final text for message. |
Definition at line 796 of file Errata.h.
ts::Errata::Message::Message |
( |
Id |
id, |
|
|
Code |
code, |
|
|
std::string const & |
text | |
|
) |
| | [inline] |
Construct with id, code, and text.
- Parameters:
-
Definition at line 799 of file Errata.h.
Member Function Documentation
Errata::Code ts::Errata::Message::getCode |
( |
|
) |
const [inline] |
Errata ts::Errata::Message::getErrata |
( |
|
) |
const [inline] |
Get the nested status.
- Returns:
- A status object, which is not
NULL
if there is a nested status stored in this item.
Definition at line 812 of file Errata.h.
References m_errata.
bool ts::Errata::Message::isCodeZero |
( |
Message const & |
m |
) |
[static] |
Indicate success if the message code is zero.
- Note:
- Used as the default success test.
Definition at line 41 of file Errata.cc.
Errata::Message & ts::Errata::Message::set |
( |
std::string const & |
text |
) |
[inline] |
Set the text.
- Parameters:
-
Definition at line 822 of file Errata.h.
References m_text.
Set the message Id.
- Parameters:
-
Definition at line 814 of file Errata.h.
References m_id.
Set the text.
- Parameters:
-
Definition at line 826 of file Errata.h.
References m_text.
Set the code.
- Parameters:
-
| code | New code for message. |
Definition at line 818 of file Errata.h.
References m_code.
std::string const & ts::Errata::Message::text |
( |
|
) |
const [inline] |
Get the text of the message.
Definition at line 810 of file Errata.h.
References m_text.
Field Documentation
The default message code.
This value is used as the Code value for constructing and clearing messages. It can be changed to control the value used for empty messages.
Definition at line 498 of file Errata.h.
Referenced by clear().
Initial value:
Definition at line 522 of file Errata.h.
Initial value:
Success message test.
When a message is tested for being "successful", this function is called. It may be overridden by a client. The initial value is DEFAULT_SUCCESS_TEST
.
- Note:
- This is only called when there are Messages in the Errata. An empty Errata (
NULL
or empty stack) is always a success. Only the top
Message is checked.
- Returns:
true
if the message indicates success, false
otherwise.
Definition at line 516 of file Errata.h.
Referenced by ts::Errata::isOK().
The documentation for this struct was generated from the following files: