GammaLib  1.7.0.dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GBase.cpp File Reference

Implementation of interface for all GammaLib classes. More...

#include "GBase.hpp"
#include "GLog.hpp"

Go to the source code of this file.

Functions

std::ostream & operator<< (std::ostream &os, const GBase &base)
 Output operator. More...
 
GLogoperator<< (GLog &log, const GBase &base)
 Log operator. More...
 

Detailed Description

Implementation of interface for all GammaLib classes.

Author
Juergen Knoedlseder

Definition in file GBase.cpp.

Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const GBase base 
)

Output operator.

Parameters
[in]osOutput stream.
[in]baseObject.

Put base object into output stream.

Definition at line 57 of file GBase.cpp.

References GBase::print().

GLog& operator<< ( GLog log,
const GBase base 
)

Log operator.

Parameters
[in]logLogger.
[in]baseObject.

Put base object into logger. The chattiness of the base object is controlled by the chatter() attribute of the log logger.

Definition at line 76 of file GBase.cpp.

References GLog::chatter(), log(), and GBase::print().