NAH 1.0.6
Native Application Host - Library API Reference
Loading...
Searching...
No Matches
nah::WarningCollector Class Reference

#include <warnings.hpp>

Public Member Functions

void apply_override (const std::string &warning_key, WarningAction action)
 
void clear ()
 
void emit (const std::string &warning_key, std::unordered_map< std::string, std::string > fields={})
 
void emit (Warning warning)
 
void emit (Warning warning, const std::unordered_map< std::string, std::string > &fields)
 
void emit_with_context (Warning warning, const std::string &context)
 
std::vector< WarningObjectget_warnings () const
 
bool has_effective_warnings () const
 
bool has_errors () const
 
void set_profile (const HostProfile *profile)
 
 WarningCollector ()=default
 
 WarningCollector (const HostProfile *profile)
 
 WarningCollector (const std::unordered_map< std::string, WarningAction > &policy)
 

Detailed Description

Definition at line 24 of file warnings.hpp.

Constructor & Destructor Documentation

◆ WarningCollector() [1/3]

nah::WarningCollector::WarningCollector ( )
default

◆ WarningCollector() [2/3]

nah::WarningCollector::WarningCollector ( const std::unordered_map< std::string, WarningAction > &  policy)
inlineexplicit

Definition at line 30 of file warnings.hpp.

◆ WarningCollector() [3/3]

nah::WarningCollector::WarningCollector ( const HostProfile profile)
explicit

Member Function Documentation

◆ apply_override()

void nah::WarningCollector::apply_override ( const std::string &  warning_key,
WarningAction  action 
)

◆ clear()

void nah::WarningCollector::clear ( )

◆ emit() [1/3]

void nah::WarningCollector::emit ( const std::string &  warning_key,
std::unordered_map< std::string, std::string >  fields = {} 
)

◆ emit() [2/3]

void nah::WarningCollector::emit ( Warning  warning)

◆ emit() [3/3]

void nah::WarningCollector::emit ( Warning  warning,
const std::unordered_map< std::string, std::string > &  fields 
)

◆ emit_with_context()

void nah::WarningCollector::emit_with_context ( Warning  warning,
const std::string &  context 
)

◆ get_warnings()

std::vector< WarningObject > nah::WarningCollector::get_warnings ( ) const

◆ has_effective_warnings()

bool nah::WarningCollector::has_effective_warnings ( ) const

◆ has_errors()

bool nah::WarningCollector::has_errors ( ) const

◆ set_profile()

void nah::WarningCollector::set_profile ( const HostProfile profile)

The documentation for this class was generated from the following file: