ARTS 2.5.4 (git: 31ce4f0e)
ArtsOut Class Reference

#include <messages.h>

Inheritance diagram for ArtsOut:
ArtsOut0 ArtsOut1 ArtsOut2 ArtsOut3

Public Member Functions

 ArtsOut (const int p, const Verbosity &v)
 
int get_priority () const
 
const Verbosityget_verbosity () const
 
bool sufficient_priority () const
 Does the current message have sufficient priority for output? More...
 
bool sufficient_priority_agenda () const
 Does the current message have sufficient priority for agenda? More...
 
bool sufficient_priority_screen () const
 Does the current message have sufficient priority for screen? More...
 
bool sufficient_priority_file () const
 Does the current message have sufficient priority for file? More...
 
bool in_main_agenda () const
 Are we in the main agenda? More...
 

Private Attributes

const Verbosityverbosity
 
int priority
 

Detailed Description

Definition at line 86 of file messages.h.

Constructor & Destructor Documentation

◆ ArtsOut()

ArtsOut::ArtsOut ( const int  p,
const Verbosity v 
)
inline

Definition at line 88 of file messages.h.

Member Function Documentation

◆ get_priority()

int ArtsOut::get_priority ( ) const
inline

Definition at line 90 of file messages.h.

References priority.

Referenced by operator<<().

◆ get_verbosity()

const Verbosity & ArtsOut::get_verbosity ( ) const
inline

Definition at line 91 of file messages.h.

References verbosity.

Referenced by arts_exit_with_error_message().

◆ in_main_agenda()

bool ArtsOut::in_main_agenda ( ) const
inline

Are we in the main agenda?

Returns
true if in main agenda, otherwise false.

Definition at line 130 of file messages.h.

References Verbosity::is_main_agenda(), and verbosity.

Referenced by sufficient_priority_agenda().

◆ sufficient_priority()

bool ArtsOut::sufficient_priority ( ) const
inline

Does the current message have sufficient priority for output?

Returns
true if priority is sufficient, otherwise false.

Definition at line 97 of file messages.h.

References sufficient_priority_agenda(), sufficient_priority_file(), and sufficient_priority_screen().

◆ sufficient_priority_agenda()

bool ArtsOut::sufficient_priority_agenda ( ) const
inline

Does the current message have sufficient priority for agenda?

Returns
true if priority is sufficient, otherwise false.

Definition at line 106 of file messages.h.

References Verbosity::get_agenda_verbosity(), in_main_agenda(), priority, and verbosity.

Referenced by operator<<(), and sufficient_priority().

◆ sufficient_priority_file()

bool ArtsOut::sufficient_priority_file ( ) const
inline

Does the current message have sufficient priority for file?

Returns
true if priority is sufficient, otherwise false.

Definition at line 122 of file messages.h.

References Verbosity::get_file_verbosity(), priority, and verbosity.

Referenced by operator<<(), and sufficient_priority().

◆ sufficient_priority_screen()

bool ArtsOut::sufficient_priority_screen ( ) const
inline

Does the current message have sufficient priority for screen?

Returns
true if priority is sufficient, otherwise false.

Definition at line 114 of file messages.h.

References Verbosity::get_screen_verbosity(), priority, and verbosity.

Referenced by operator<<(), and sufficient_priority().

Member Data Documentation

◆ priority

int ArtsOut::priority
private

◆ verbosity

const Verbosity& ArtsOut::verbosity
private

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