|
LibSWOC++ 1.5.14
Solid Wall of C++
|
#include <Errata.h>

Public Member Functions | |
| self_type & | clear () |
| Reset to the message to default state. | |
| swoc::TextView | text () const |
| Get the text of the message. | |
| unsigned short | level () const |
| Get the nesting level. | |
| bool | has_severity () const |
Check if this has a Severity. | |
| Severity | severity (Severity default_severity=DEFAULT_SEVERITY) const |
| self_type & | assign (Severity severity) |
| Set the severity of this. | |
Protected Types | |
| using | Linkage = swoc::IntrusiveLinkage<self_type, &self_type::_next, &self_type::_prev> |
Protected Member Functions | |
| Annotation () | |
| Annotation (std::string_view text, std::optional< Severity > severity=std::optional< Severity >{}, unsigned short level=0) | |
Protected Attributes | |
| std::string_view | _text |
| Annotation text. | |
| unsigned short | _level {0} |
| Nesting level for display purposes. | |
| std::optional< Severity > | _severity |
| Severity. | |
| self_type * | _next {nullptr} |
| self_type * | _prev {nullptr} |
Friends | |
| class | Errata |
| class | swoc::MemArena |
An annotation to the Errata consisting of a severity and informative text.
The text cannot be changed because of memory ownership risks.
|
protected |
|
inlineprotecteddefault |
Default constructor. The message has default severity and empty text.
|
inlineexplicitprotected |
Construct with text.
| text | Annotation content (literal). |
| severity | Local severity. |
| level | Nesting level. |
text is presumed to be stable for the Annotation lifetime - this constructor simply copies the view.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Annotation text.