ONE - On-device Neural Engine
Loading...
Searching...
No Matches
hermes::Severity Class Referencefinal

#include <Severity.h>

Public Member Functions

const SeverityCategorycategory (void) const
 
const uint16_t & level (void) const
 Verbose level.
 

Friends

Severity fatal (void)
 
Severity error (void)
 
Severity warn (void)
 
Severity info (void)
 
Severity verbose (uint16_t level)
 

Detailed Description

Definition at line 40 of file Severity.h.

Member Function Documentation

◆ category()

const SeverityCategory & hermes::Severity::category ( void  ) const
inline

Definition at line 59 of file Severity.h.

59{ return _cat; }

Referenced by hermes::Source::buffer().

◆ level()

const uint16_t & hermes::Severity::level ( void  ) const
inline

Verbose level.

"level" is fixed as 0 for all the categories except VERBOSE.

0 (most significant) <— level —> 65535 (least significant)

Definition at line 68 of file Severity.h.

68{ return _lvl; }

Friends And Related Symbol Documentation

◆ error

Severity error ( void  )
friend

Definition at line 76 of file Severity.h.

76{ return Severity{ERROR, 0}; }
@ ERROR
Definition Severity.h:34

◆ fatal

Severity fatal ( void  )
friend

Definition at line 75 of file Severity.h.

75{ return Severity{FATAL, 0}; }
@ FATAL
Definition Severity.h:33

◆ info

Severity info ( void  )
friend

Definition at line 17 of file library_info.cc.

◆ verbose

Severity verbose ( uint16_t  level)
friend

Definition at line 79 of file Severity.h.

79{ return Severity{VERBOSE, level}; }
const uint16_t & level(void) const
Verbose level.
Definition Severity.h:68
@ VERBOSE
Definition Severity.h:37

◆ warn

Severity warn ( void  )
friend

Definition at line 77 of file Severity.h.

77{ return Severity{WARN, 0}; }
@ WARN
Definition Severity.h:35

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