Bridge++  Ver. 2.0.2
Bridge::BridgeIO Class Reference

#include <bridgeIO.h>

Public Member Functions

 BridgeIO (const std::string &filename="stdout")
 
virtual ~BridgeIO ()
 
void init (const std::string &filename)
 
void init (const std::ostream &os)
 
void unset ()
 
void crucial (const char *format,...)
 
void general (const char *format,...)
 
void detailed (const char *format,...)
 
void paranoiac (const char *format,...)
 
void crucial (VerboseLevel vl, const char *format,...)
 
void general (VerboseLevel vl, const char *format,...)
 
void detailed (VerboseLevel vl, const char *format,...)
 
void paranoiac (VerboseLevel vl, const char *format,...)
 
void crucial (VerboseLevel vl, int node, const char *format,...)
 
void general (VerboseLevel vl, int node, const char *format,...)
 
void detailed (VerboseLevel vl, int node, const char *format,...)
 
void paranoiac (VerboseLevel vl, int node, const char *format,...)
 
void increase_indent ()
 
void decrease_indent ()
 
int indent_level ()
 
void set_indent (const int level)
 
bool isOpen ()
 
std::ostream & getStream ()
 
void ildg_init (const std::ostream &os)
 
void ildg_init (const std::string &filename)
 
void ildg (const char *format,...)
 
std::ostream & getILDGStream ()
 

Static Public Member Functions

static VerboseLevel set_verbose_level (const std::string &str)
 
static std::string get_verbose_level (const VerboseLevel vl)
 

Static Public Attributes

static const std::string class_name = "BridgeIO"
 

Private Member Functions

 BridgeIO (const BridgeIO &)
 
BridgeIOoperator= (const BridgeIO &)
 
void print (VerboseLevel level, VerboseLevel write_level, int node, const char *format, va_list &arg)
 
void rewind_ ()
 
void tidyup_ ()
 

Private Attributes

std::ostream * os_
 
std::stack< std::ostream * > stack_
 
char buff_ [1024]
 
std::ostream * ildg_os_
 

Static Private Attributes

static int m_indent_level = 0
 

Detailed Description

Definition at line 50 of file bridgeIO.h.

Constructor & Destructor Documentation

◆ BridgeIO() [1/2]

Bridge::BridgeIO::BridgeIO ( const std::string &  filename = "stdout")

Definition at line 29 of file bridgeIO.cpp.

◆ ~BridgeIO()

Bridge::BridgeIO::~BridgeIO ( )
virtual

Definition at line 46 of file bridgeIO.cpp.

◆ BridgeIO() [2/2]

Bridge::BridgeIO::BridgeIO ( const BridgeIO )
private

Member Function Documentation

◆ crucial() [1/3]

void Bridge::BridgeIO::crucial ( const char *  format,
  ... 
)

Definition at line 180 of file bridgeIO.cpp.

◆ crucial() [2/3]

void Bridge::BridgeIO::crucial ( VerboseLevel  vl,
const char *  format,
  ... 
)

Definition at line 258 of file bridgeIO.cpp.

◆ crucial() [3/3]

void Bridge::BridgeIO::crucial ( VerboseLevel  vl,
int  node,
const char *  format,
  ... 
)

Definition at line 328 of file bridgeIO.cpp.

◆ decrease_indent()

void Bridge::BridgeIO::decrease_indent ( )
inline

Definition at line 86 of file bridgeIO.h.

◆ detailed() [1/3]

void Bridge::BridgeIO::detailed ( const char *  format,
  ... 
)

Definition at line 219 of file bridgeIO.cpp.

◆ detailed() [2/3]

void Bridge::BridgeIO::detailed ( VerboseLevel  vl,
const char *  format,
  ... 
)

Definition at line 293 of file bridgeIO.cpp.

◆ detailed() [3/3]

void Bridge::BridgeIO::detailed ( VerboseLevel  vl,
int  node,
const char *  format,
  ... 
)

Definition at line 363 of file bridgeIO.cpp.

◆ general() [1/3]

void Bridge::BridgeIO::general ( const char *  format,
  ... 
)

Definition at line 200 of file bridgeIO.cpp.

◆ general() [2/3]

void Bridge::BridgeIO::general ( VerboseLevel  vl,
const char *  format,
  ... 
)

Definition at line 276 of file bridgeIO.cpp.

◆ general() [3/3]

void Bridge::BridgeIO::general ( VerboseLevel  vl,
int  node,
const char *  format,
  ... 
)

Definition at line 346 of file bridgeIO.cpp.

◆ get_verbose_level()

std::string Bridge::BridgeIO::get_verbose_level ( const VerboseLevel  vl)
static

Definition at line 154 of file bridgeIO.cpp.

◆ getILDGStream()

std::ostream & Bridge::BridgeIO::getILDGStream ( )

Definition at line 503 of file bridgeIO.cpp.

◆ getStream()

std::ostream & Bridge::BridgeIO::getStream ( )

Definition at line 396 of file bridgeIO.cpp.

◆ ildg()

void Bridge::BridgeIO::ildg ( const char *  format,
  ... 
)

Definition at line 476 of file bridgeIO.cpp.

◆ ildg_init() [1/2]

void Bridge::BridgeIO::ildg_init ( const std::ostream &  os)

Definition at line 443 of file bridgeIO.cpp.

◆ ildg_init() [2/2]

void Bridge::BridgeIO::ildg_init ( const std::string &  filename)

Definition at line 457 of file bridgeIO.cpp.

◆ increase_indent()

void Bridge::BridgeIO::increase_indent ( )
inline

Definition at line 85 of file bridgeIO.h.

◆ indent_level()

int Bridge::BridgeIO::indent_level ( )
inline

Definition at line 87 of file bridgeIO.h.

◆ init() [1/2]

void Bridge::BridgeIO::init ( const std::ostream &  os)

Definition at line 75 of file bridgeIO.cpp.

◆ init() [2/2]

void Bridge::BridgeIO::init ( const std::string &  filename)

Definition at line 53 of file bridgeIO.cpp.

◆ isOpen()

bool Bridge::BridgeIO::isOpen ( )

Definition at line 403 of file bridgeIO.cpp.

◆ operator=()

BridgeIO& Bridge::BridgeIO::operator= ( const BridgeIO )
private

◆ paranoiac() [1/3]

void Bridge::BridgeIO::paranoiac ( const char *  format,
  ... 
)

Definition at line 238 of file bridgeIO.cpp.

◆ paranoiac() [2/3]

void Bridge::BridgeIO::paranoiac ( VerboseLevel  vl,
const char *  format,
  ... 
)

Definition at line 310 of file bridgeIO.cpp.

◆ paranoiac() [3/3]

void Bridge::BridgeIO::paranoiac ( VerboseLevel  vl,
int  node,
const char *  format,
  ... 
)

Definition at line 380 of file bridgeIO.cpp.

◆ print()

void Bridge::BridgeIO::print ( VerboseLevel  level,
VerboseLevel  write_level,
int  node,
const char *  format,
va_list &  arg 
)
inlineprivate

Definition at line 412 of file bridgeIO.cpp.

◆ rewind_()

void Bridge::BridgeIO::rewind_ ( )
private

Definition at line 102 of file bridgeIO.cpp.

◆ set_indent()

void Bridge::BridgeIO::set_indent ( const int  level)
inline

Definition at line 88 of file bridgeIO.h.

◆ set_verbose_level()

VerboseLevel Bridge::BridgeIO::set_verbose_level ( const std::string &  str)
static

Definition at line 133 of file bridgeIO.cpp.

◆ tidyup_()

void Bridge::BridgeIO::tidyup_ ( )
private

Definition at line 114 of file bridgeIO.cpp.

◆ unset()

void Bridge::BridgeIO::unset ( )

Definition at line 93 of file bridgeIO.cpp.

Member Data Documentation

◆ buff_

char Bridge::BridgeIO::buff_[1024]
private

Definition at line 130 of file bridgeIO.h.

◆ class_name

const std::string Bridge::BridgeIO::class_name = "BridgeIO"
static

Definition at line 52 of file bridgeIO.h.

◆ ildg_os_

std::ostream* Bridge::BridgeIO::ildg_os_
private

Definition at line 135 of file bridgeIO.h.

◆ m_indent_level

int Bridge::BridgeIO::m_indent_level = 0
staticprivate

Definition at line 132 of file bridgeIO.h.

◆ os_

std::ostream* Bridge::BridgeIO::os_
private

Definition at line 124 of file bridgeIO.h.

◆ stack_

std::stack<std::ostream *> Bridge::BridgeIO::stack_
private

Definition at line 127 of file bridgeIO.h.


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