GranOO  3.0
A robust and versatile workbench to build 3D dynamic simulations based on the Discrete Element Method
Public Types | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
GranOO3::Core::Out Class Reference

#include <Out.hpp>

Public Types

enum  Mode
 

Public Member Functions

 Out (Mode mode)
 
 ~Out ()
 
std::ostream & newline ()
 
std::ostream & ostream ()
 
void flush ()
 
void display_state_if_needed ()
 
void display_state ()
 
void set_ostream (std::ostream *)
 
template<typename T >
std::ostream & operator<< (const T &t)
 

Private Member Functions

 Out ()=delete
 
Outoperator= (const Out &)=delete
 

Private Attributes

Mode _mode
 
std::ostream * _os
 
unsigned int _last_status
 

Static Private Attributes

static std::string _warni_label = "[\033[35mWARNING\033[0m] "
 
static std::string _error_label = "[\033[1;31mERROR\033[0m] "
 
static std::string _debug_label = "[\033[33mDEBUG\033[0m] "
 

Member Enumeration Documentation

◆ Mode

Constructor & Destructor Documentation

◆ Out() [1/2]

GranOO3::Core::Out::Out ( Mode  mode)

◆ ~Out()

GranOO3::Core::Out::~Out ( )

◆ Out() [2/2]

GranOO3::Core::Out::Out ( )
privatedelete

Member Function Documentation

◆ display_state()

void GranOO3::Core::Out::display_state ( )

◆ display_state_if_needed()

void GranOO3::Core::Out::display_state_if_needed ( )

◆ flush()

void GranOO3::Core::Out::flush ( )

◆ newline()

std::ostream & GranOO3::Core::Out::newline ( )

◆ operator<<()

template<typename T >
std::ostream & GranOO3::Core::Out::operator<< ( const T &  t)

◆ operator=()

Out& GranOO3::Core::Out::operator= ( const Out )
privatedelete

◆ ostream()

std::ostream & GranOO3::Core::Out::ostream ( )

◆ set_ostream()

void GranOO3::Core::Out::set_ostream ( std::ostream *  os)

Member Data Documentation

◆ _debug_label

std::string GranOO3::Core::Out::_debug_label = "[\033[33mDEBUG\033[0m] "
staticprivate

◆ _error_label

std::string GranOO3::Core::Out::_error_label = "[\033[1;31mERROR\033[0m] "
staticprivate

◆ _last_status

unsigned int GranOO3::Core::Out::_last_status
private

◆ _mode

Mode GranOO3::Core::Out::_mode
private

◆ _os

std::ostream* GranOO3::Core::Out::_os
private

◆ _warni_label

std::string GranOO3::Core::Out::_warni_label = "[\033[35mWARNING\033[0m] "
staticprivate

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