LibSWOC++ 1.5.14
Solid Wall of C++
Loading...
Searching...
No Matches
swoc::Errata::Data Struct Reference

Implementation class. More...

#include <Errata.h>

Collaboration diagram for swoc::Errata::Data:
Collaboration graph

Public Types

using self_type = Data
 Self reference type.
 

Public Member Functions

 Data (swoc::MemArena &&arena)
 
bool empty () const
 Check if there are any notes.
 
std::string_view localize (std::string_view src)
 
swoc::MemSpan< char > remnant ()
 Get the remnant of the current block in the arena.
 
swoc::MemSpan< char > alloc (size_t n)
 Allocate from the arena.
 

Public Attributes

TextView _annotation_glue_text = DEFAULT_ANNOTATION_GLUE_TEXT
 
TextView _annotation_severity_glue_text = DEFAULT_SEVERITY_GLUE_TEXT
 
TextView _severity_glue_text = DEFAULT_SEVERITY_GLUE_TEXT
 
TextView _indent_text = DEFAULT_INDENT_TEXT
 
bool _glue_final_p = true
 Add glue after the last annotation?
 
std::optional< Severity_severity
 Severity.
 
code_type _code {DEFAULT_CODE}
 Message code / ID.
 
Container _notes
 The message stack.
 
swoc::MemArena _arena
 Annotation text storage.
 

Detailed Description

Implementation class.

Definition at line 168 of file Errata.h.

Member Typedef Documentation

◆ self_type

Self reference type.

Definition at line 169 of file Errata.h.

Constructor & Destructor Documentation

◆ Data()

swoc::Errata::Data::Data ( swoc::MemArena && arena)
inline

Construct and take ownership of arena.

Definition at line 1008 of file Errata.h.

Member Function Documentation

◆ alloc()

swoc::MemSpan< char > swoc::Errata::Data::alloc ( size_t n)
inline

Allocate from the arena.

Definition at line 1018 of file Errata.h.

◆ empty()

bool swoc::Errata::Data::empty ( ) const
inline

Check if there are any notes.

Definition at line 1023 of file Errata.h.

◆ localize()

string_view swoc::Errata::Data::localize ( std::string_view src)

Duplicate src in the arena for this instance.

Parameters
srcSource data.
Returns
View of copy in this arena.

Definition at line 29 of file Errata.cc.

◆ remnant()

swoc::MemSpan< char > swoc::Errata::Data::remnant ( )
inline

Get the remnant of the current block in the arena.

Definition at line 1013 of file Errata.h.

Member Data Documentation

◆ _annotation_glue_text

TextView swoc::Errata::Data::_annotation_glue_text = DEFAULT_ANNOTATION_GLUE_TEXT

Definition at line 192 of file Errata.h.

◆ _annotation_severity_glue_text

TextView swoc::Errata::Data::_annotation_severity_glue_text = DEFAULT_SEVERITY_GLUE_TEXT

Definition at line 193 of file Errata.h.

◆ _arena

swoc::MemArena swoc::Errata::Data::_arena

Annotation text storage.

Definition at line 201 of file Errata.h.

◆ _code

code_type swoc::Errata::Data::_code {DEFAULT_CODE}

Message code / ID.

Definition at line 199 of file Errata.h.

◆ _glue_final_p

bool swoc::Errata::Data::_glue_final_p = true

Add glue after the last annotation?

Definition at line 196 of file Errata.h.

◆ _indent_text

TextView swoc::Errata::Data::_indent_text = DEFAULT_INDENT_TEXT

Definition at line 195 of file Errata.h.

◆ _notes

Container swoc::Errata::Data::_notes

The message stack.

Definition at line 200 of file Errata.h.

◆ _severity

std::optional<Severity> swoc::Errata::Data::_severity

Severity.

Definition at line 198 of file Errata.h.

◆ _severity_glue_text

TextView swoc::Errata::Data::_severity_glue_text = DEFAULT_SEVERITY_GLUE_TEXT

Definition at line 194 of file Errata.h.


The documentation for this struct was generated from the following files: