Log.h File Reference

#include <PVLE/Export.h>
#include <osg/Notify>
#include <boost/preprocessor/control/if.hpp>
#include <boost/preprocessor/control/expr_if.hpp>
#include <boost/preprocessor/facilities/is_empty.hpp>
#include <ostream>

Include dependency graph for Log.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Namespaces

namespace  osg
 OSG missing operators, added by PVLE.

Defines

#define __PVLE_METHOD__
#define PVLE_TRACE_INFO   "File " << __FILE__ << " (line " << __LINE__ << ") " << __PVLE_METHOD__ " : "
#define FORCED_LOG
#define LOG_ALWAYS   osg::notify(osg::ALWAYS) FORCED_LOG
#define LOG_FATAL   osg::notify(osg::FATAL) FORCED_LOG
#define LOG_ERROR   osg::notify(osg::FATAL) FORCED_LOG
 Alias for LOG_FATAL.
#define LOG_WARN   osg::notify(osg::WARN) FORCED_LOG
#define LOG_NOTICE   osg::notify(osg::NOTICE) FORCED_LOG
#define LOG_INFO   osg::notify(osg::INFO) FORCED_LOG
#define LOG_DEBUG_INFO   osg::notify(osg::DEBUG_INFO) FORCED_LOG
#define LOG_DEBUG_FP   osg::notify(osg::DEBUG_FP) FORCED_LOG

Functions

PVLE_EXPORT std::ostream & operator<< (std::ostream &stream, const osg::Vec3f &v)
PVLE_EXPORT std::ostream & operator<< (std::ostream &stream, const osg::Vec4f &v)
PVLE_EXPORT std::ostream & operator<< (std::ostream &stream, const osg::Quat &q)
PVLE_EXPORT std::ostream & operator<< (std::ostream &stream, const osg::Matrixf &m)


Define Documentation

#define __PVLE_METHOD__

Value:

BOOST_PP_IF( BOOST_PP_IS_EMPTY(__METHOD__), \
        BOOST_PP_IF( BOOST_PP_IS_EMPTY(__FUNCTION__), \
            BOOST_PP_IF( BOOST_PP_IS_EMPTY(__func__), \
                BOOST_PP_IF( BOOST_PP_IS_EMPTY(__FUNC__), \
                    "Unknown method", \
                    __FUNC__), \
                __func__), \
            __FUNCTION__), \
        __METHOD__)
Todo:
See if boost has a better define

Definition at line 67 of file Log.h.

#define FORCED_LOG

Definition at line 95 of file Log.h.

#define LOG_ALWAYS   osg::notify(osg::ALWAYS) FORCED_LOG

Definition at line 100 of file Log.h.

Referenced by Ammo::hitBefore().

#define LOG_DEBUG_FP   osg::notify(osg::DEBUG_FP) FORCED_LOG

Definition at line 107 of file Log.h.

#define LOG_DEBUG_INFO   osg::notify(osg::DEBUG_INFO) FORCED_LOG

Definition at line 106 of file Log.h.

#define LOG_ERROR   osg::notify(osg::FATAL) FORCED_LOG

Alias for LOG_FATAL.

Definition at line 102 of file Log.h.

Referenced by loadBindings(), InvKeyMap::operator()(), and ControlMapper::removeHandler().

#define LOG_FATAL   osg::notify(osg::FATAL) FORCED_LOG

Definition at line 101 of file Log.h.

#define LOG_INFO   osg::notify(osg::INFO) FORCED_LOG

Definition at line 105 of file Log.h.

Referenced by C3DPhy::attachBodies(), and Physics::MeshHandler::create().

#define LOG_NOTICE   osg::notify(osg::NOTICE) FORCED_LOG

#define LOG_WARN   osg::notify(osg::WARN) FORCED_LOG

#define PVLE_TRACE_INFO   "File " << __FILE__ << " (line " << __LINE__ << ") " << __PVLE_METHOD__ " : "

Definition at line 86 of file Log.h.


Function Documentation

PVLE_EXPORT std::ostream& operator<< ( std::ostream &  stream,
const osg::Matrixf &  m 
)

Definition at line 53 of file Log.cpp.

PVLE_EXPORT std::ostream& operator<< ( std::ostream &  stream,
const osg::Quat &  q 
)

Definition at line 45 of file Log.cpp.

PVLE_EXPORT std::ostream& operator<< ( std::ostream &  stream,
const osg::Vec4f &  v 
)

Definition at line 40 of file Log.cpp.

PVLE_EXPORT std::ostream& operator<< ( std::ostream &  stream,
const osg::Vec3f &  v 
)

Definition at line 35 of file Log.cpp.


Generated on Sun Jan 17 11:39:10 2010 for PVLE (Pro-Vocation Light Engine) by  doxygen 1.5.9