IOSS 2.0
Loading...
Searching...
No Matches
Ioss::assert_context Class Reference

#include <Ioss_SmartAssert.h>

Public Types

using val_and_str = std::pair<string, string>
 
using vals_array = std::vector<val_and_str>
 

Public Member Functions

 assert_context ()=default
 
void set_file_line (const char *file, int line)
 
const stringget_context_file () const
 
int get_context_line () const
 
void set_expr (const string &str)
 
const stringget_expr () const
 
const vals_arrayget_vals_array () const
 
void add_val (const string &val, const string &str)
 
void set_level (int nLevel)
 
int get_level () const
 
void set_level_msg (const char *strMsg)
 
const stringget_level_msg () const
 

Private Types

using string = std::string
 

Private Attributes

string file_ {}
 
int line_ {0}
 
string expr_ {}
 
vals_array vals_ {}
 
int level_ {lvl_debug}
 
string msg_ {}
 

Member Typedef Documentation

◆ string

using Ioss::assert_context::string = std::string
private

◆ val_and_str

◆ vals_array

Constructor & Destructor Documentation

◆ assert_context()

Ioss::assert_context::assert_context ( )
default

Member Function Documentation

◆ add_val()

void Ioss::assert_context::add_val ( const string & val,
const string & str )
inline

◆ get_context_file()

const string & Ioss::assert_context::get_context_file ( ) const
inline

◆ get_context_line()

int Ioss::assert_context::get_context_line ( ) const
inline

◆ get_expr()

const string & Ioss::assert_context::get_expr ( ) const
inline

◆ get_level()

int Ioss::assert_context::get_level ( ) const
inline

◆ get_level_msg()

const string & Ioss::assert_context::get_level_msg ( ) const
inline

◆ get_vals_array()

const vals_array & Ioss::assert_context::get_vals_array ( ) const
inline

◆ set_expr()

void Ioss::assert_context::set_expr ( const string & str)
inline

◆ set_file_line()

void Ioss::assert_context::set_file_line ( const char * file,
int line )
inline

◆ set_level()

void Ioss::assert_context::set_level ( int nLevel)
inline

◆ set_level_msg()

void Ioss::assert_context::set_level_msg ( const char * strMsg)
inline

Member Data Documentation

◆ expr_

string Ioss::assert_context::expr_ {}
private

◆ file_

string Ioss::assert_context::file_ {}
private

◆ level_

int Ioss::assert_context::level_ {lvl_debug}
private

◆ line_

int Ioss::assert_context::line_ {0}
private

◆ msg_

string Ioss::assert_context::msg_ {}
private

◆ vals_

vals_array Ioss::assert_context::vals_ {}
private

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