TuttleOFX  1
TuttleOFX/libraries/tuttle/src/tuttle/common/utils/global.hpp File Reference
#include "color.hpp"
#include "Formatter.hpp"
#include <tuttle/common/system/system.hpp>
#include <tuttle/common/system/compatibility.hpp>
#include <tuttle/common/system/windows/windows.h>
#include <boost/static_assert.hpp>
#include <boost/type_traits.hpp>
#include <boost/current_function.hpp>
#include <iostream>
#include "release.hpp"
Include dependency graph for global.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define TUTTLE_FORCEINLINE   inline
#define TUTTLE_COUT(...)   std::cout << __VA_ARGS__ << std::endl
#define TUTTLE_LOG(MODE,...)   MODE << __VA_ARGS__
#define TUTTLE_TRACE   BOOST_LOG_TRIVIAL(trace)
#define TUTTLE_INFO   BOOST_LOG_TRIVIAL(info)
#define TUTTLE_WARNING   BOOST_LOG_TRIVIAL(warning)
#define TUTTLE_ERROR   BOOST_LOG_TRIVIAL(error)
#define TUTTLE_FATAL   BOOST_LOG_TRIVIAL(fatal)
#define TUTTLE_GET_INFOS_FILE   "in file: " << __FILE__ << ", line: " << __LINE__
#define TUTTLE_GET_INFOS_FUNCTION   "function: " << BOOST_CURRENT_FUNCTION
#define TUTTLE_GET_INFOS   TUTTLE_GET_INFOS_FILE << TUTTLE_GET_INFOS_FUNCTION
#define TUTTLE_GET_VAR(a)   #a << ": " << a
#define TUTTLE_GET_VAR2(a, b)   TUTTLE_GET_VAR ( a ) << ", " << TUTTLE_GET_VAR ( b )
#define TUTTLE_GET_VAR3(a, b, c)   TUTTLE_GET_VAR ( a ) << ", " << TUTTLE_GET_VAR ( b ) << ", " << TUTTLE_GET_VAR ( c )
#define TUTTLE_GET_VAR4(a, b, c, d)   TUTTLE_GET_VAR ( a ) << ", " << TUTTLE_GET_VAR ( b ) << ", " << TUTTLE_GET_VAR ( c ) << ", " << TUTTLE_GET_VAR ( d )
#define TUTTLE_LOG_TRACE(...)   TUTTLE_LOG( TUTTLE_TRACE, __VA_ARGS__ )
 terminal display
#define TUTTLE_LOG_INFO(...)   TUTTLE_LOG( TUTTLE_INFO, __VA_ARGS__ )
#define TUTTLE_LOG_WARNING(...)   TUTTLE_LOG( TUTTLE_WARNING, tuttle::common::Color::get()->_yellow << __VA_ARGS__ << tuttle::common::Color::get()->_std )
#define TUTTLE_LOG_ERROR(...)   TUTTLE_LOG( TUTTLE_ERROR, tuttle::common::Color::get()->_error << __VA_ARGS__ << tuttle::common::Color::get()->_std )
#define TUTTLE_LOG_FATAL(...)   TUTTLE_LOG( TUTTLE_FATAL, tuttle::common::Color::get()->_error << __VA_ARGS__ << tuttle::common::Color::get()->_std )
#define TUTTLE_LOG_VAR(MODE, a)   TUTTLE_LOG( MODE, TUTTLE_GET_VAR ( a ) )
#define TUTTLE_LOG_VAR2(MODE, a, b)   TUTTLE_LOG( MODE, TUTTLE_GET_VAR2( a, b ) )
#define TUTTLE_LOG_VAR3(MODE, a, b, c)   TUTTLE_LOG( MODE, TUTTLE_GET_VAR3( a, b, c ) )
#define TUTTLE_LOG_VAR4(MODE, a, b, c, d)   TUTTLE_LOG( MODE, TUTTLE_GET_VAR4( a, b, c, d ) )
#define TUTTLE_LOG_INFOS   TUTTLE_LOG_TRACE( TUTTLE_GET_INFOS_FILE ); TUTTLE_LOG_TRACE( TUTTLE_GET_INFOS_FUNCTION )
 terminal information display
#define TUTTLE_RELEASE
#define TUTTLE_EXPORT_PROCESSGRAPH_DOT   0
#define TUTTLE_EXPORT_WITH_TIMER   0
#define TUTTLE_PNG_EXPORT_BETWEEN_NODES   0
#define TUTTLE_INIT_IMAGE_BUFFERS   0
#define TUTTLE_TLOG   TUTTLE_LOG_DEBUG
#define TUTTLE_TLOG_TRACE   TUTTLE_LOG_TRACE_DEBUG
#define TUTTLE_TLOG_INFO   TUTTLE_LOG_INFO_DEBUG
#define TUTTLE_TLOG_VAR   TUTTLE_LOG_VAR_DEBUG
#define TUTTLE_TLOG_VAR2   TUTTLE_LOG_VAR2_DEBUG
#define TUTTLE_TLOG_VAR3   TUTTLE_LOG_VAR3_DEBUG
#define TUTTLE_TLOG_VAR4   TUTTLE_LOG_VAR4_DEBUG
#define TUTTLE_TLOG_INFOS   TUTTLE_LOG_INFOS_DEBUG
#define TUTTLE_TLOG_WITHINFOS   TUTTLE_LOG_WITHINFOS_DEBUG
#define TUTTLE_TLOG_EXCEPTION   TUTTLE_LOG_EXCEPTION_DEBUG
#define TUTTLE_LOG_PLUGIN_NAME_WIDTH   30

Define Documentation

#define TUTTLE_COUT (   ...)    std::cout << __VA_ARGS__ << std::endl

Definition at line 35 of file global.hpp.

#define TUTTLE_ERROR   BOOST_LOG_TRIVIAL(error)

Definition at line 44 of file global.hpp.

#define TUTTLE_EXPORT_PROCESSGRAPH_DOT   0

Definition at line 127 of file global.hpp.

#define TUTTLE_EXPORT_WITH_TIMER   0

Definition at line 128 of file global.hpp.

#define TUTTLE_FATAL   BOOST_LOG_TRIVIAL(fatal)

Definition at line 45 of file global.hpp.

#define TUTTLE_FORCEINLINE   inline

Definition at line 32 of file global.hpp.

#define TUTTLE_GET_INFOS   TUTTLE_GET_INFOS_FILE << TUTTLE_GET_INFOS_FUNCTION

Definition at line 63 of file global.hpp.

#define TUTTLE_GET_INFOS_FILE   "in file: " << __FILE__ << ", line: " << __LINE__

Definition at line 61 of file global.hpp.

#define TUTTLE_GET_INFOS_FUNCTION   "function: " << BOOST_CURRENT_FUNCTION

Definition at line 62 of file global.hpp.

#define TUTTLE_GET_VAR (   a)    #a << ": " << a

Definition at line 65 of file global.hpp.

#define TUTTLE_GET_VAR2 (   a,
 
)    TUTTLE_GET_VAR ( a ) << ", " << TUTTLE_GET_VAR ( b )

Definition at line 66 of file global.hpp.

#define TUTTLE_GET_VAR3 (   a,
  b,
 
)    TUTTLE_GET_VAR ( a ) << ", " << TUTTLE_GET_VAR ( b ) << ", " << TUTTLE_GET_VAR ( c )

Definition at line 67 of file global.hpp.

#define TUTTLE_GET_VAR4 (   a,
  b,
  c,
 
)    TUTTLE_GET_VAR ( a ) << ", " << TUTTLE_GET_VAR ( b ) << ", " << TUTTLE_GET_VAR ( c ) << ", " << TUTTLE_GET_VAR ( d )

Definition at line 68 of file global.hpp.

#define TUTTLE_INIT_IMAGE_BUFFERS   0

Definition at line 130 of file global.hpp.

#define TUTTLE_LOG (   MODE,
  ... 
)    MODE << __VA_ARGS__

Definition at line 39 of file global.hpp.

#define TUTTLE_LOG_FATAL (   ...)    TUTTLE_LOG( TUTTLE_FATAL, tuttle::common::Color::get()->_error << __VA_ARGS__ << tuttle::common::Color::get()->_std )

Definition at line 80 of file global.hpp.

#define TUTTLE_LOG_INFOS   TUTTLE_LOG_TRACE( TUTTLE_GET_INFOS_FILE ); TUTTLE_LOG_TRACE( TUTTLE_GET_INFOS_FUNCTION )
#define TUTTLE_LOG_PLUGIN_NAME_WIDTH   30

Definition at line 145 of file global.hpp.

Referenced by tuttle::host::ImageEffectNode::progressStart().

#define TUTTLE_LOG_VAR (   MODE,
 
)    TUTTLE_LOG( MODE, TUTTLE_GET_VAR ( a ) )
#define TUTTLE_LOG_VAR2 (   MODE,
  a,
 
)    TUTTLE_LOG( MODE, TUTTLE_GET_VAR2( a, b ) )

Definition at line 83 of file global.hpp.

#define TUTTLE_LOG_VAR3 (   MODE,
  a,
  b,
 
)    TUTTLE_LOG( MODE, TUTTLE_GET_VAR3( a, b, c ) )

Definition at line 84 of file global.hpp.

#define TUTTLE_LOG_VAR4 (   MODE,
  a,
  b,
  c,
 
)    TUTTLE_LOG( MODE, TUTTLE_GET_VAR4( a, b, c, d ) )

Definition at line 85 of file global.hpp.

#define TUTTLE_LOG_WARNING (   ...)    TUTTLE_LOG( TUTTLE_WARNING, tuttle::common::Color::get()->_yellow << __VA_ARGS__ << tuttle::common::Color::get()->_std )
#define TUTTLE_PNG_EXPORT_BETWEEN_NODES   0

Definition at line 129 of file global.hpp.

#define TUTTLE_RELEASE

Definition at line 123 of file global.hpp.

#define TUTTLE_TLOG   TUTTLE_LOG_DEBUG

Definition at line 133 of file global.hpp.

Referenced by tuttle::host::ofx::imageEffect::OfxhImage::addReference(), tuttle::host::memory::MemoryPool::allocate(), tuttle::host::graph::visitor::Test_dfs< TGraph >::back_edge(), tuttle::host::graph::ProcessGraph::bakeGraphInformationToNodes(), tuttle::host::graph::ProcessGraph::beginSequence(), tuttle::host::graph::visitor::Test_bfs::black_target(), BOOST_AUTO_TEST_CASE(), tuttle::host::graph::ProcessGraph::computeHashAtTime(), tuttle::host::ImageEffectNode::computeTimeDomain(), tuttle::host::graph::ProcessGraph::computeTimeRange(), tuttle::host::graph::connectClips(), tuttle::host::ImageEffectNode::coutBitDepthConnections(), tuttle::host::graph::visitor::Setup2< TGraph >::discover_vertex(), tuttle::host::graph::visitor::Test_dfs< TGraph >::discover_vertex(), tuttle::host::graph::visitor::Test_bfs::discover_vertex(), tuttle::host::graph::visitor::DeployTime< TGraph >::discover_vertex(), tuttle::host::graph::visitor::PreProcess2< TGraph >::discover_vertex(), tuttle::host::graph::ProcessGraph::endSequence(), tuttle::host::graph::visitor::Test_dfs< TGraph >::examine_edge(), tuttle::host::graph::visitor::Test_bfs::examine_edge(), tuttle::host::graph::visitor::Test_bfs::examine_vertex(), tuttle::host::graph::visitor::Setup1< TGraph >::finish_vertex(), tuttle::host::graph::visitor::Setup3< TGraph >::finish_vertex(), tuttle::host::graph::visitor::Test_dfs< TGraph >::finish_vertex(), tuttle::host::graph::visitor::TimeDomain< TGraph >::finish_vertex(), tuttle::host::graph::visitor::ComputeHashAtTime< TGraph >::finish_vertex(), tuttle::host::graph::visitor::Test_bfs::finish_vertex(), tuttle::host::graph::visitor::RemoveIdentityNodes< TGraph >::finish_vertex(), tuttle::host::graph::visitor::PreProcess1< TGraph >::finish_vertex(), tuttle::host::graph::visitor::Process< TGraph >::finish_vertex(), tuttle::host::graph::visitor::PostProcess< TGraph >::finish_vertex(), tuttle::host::graph::visitor::Test_dfs< TGraph >::forward_or_cross_edge(), tuttle::plugin::getGilView(), tuttle::plugin::ReaderPlugin::getTimeDomain(), tuttle::host::graph::visitor::Test_bfs::gray_target(), tuttle::host::graph::visitor::Test_dfs< TGraph >::initialize_vertex(), tuttle::host::graph::visitor::Test_bfs::initialize_vertex(), tuttle::host::graph::visitor::PostProcess< TGraph >::initialize_vertex(), tuttle::host::ImageEffectNode::initInputClipsPixelAspectRatio(), tuttle::plugin::interact::ParamRectangleFromCenterSize< TFrame, coord >::intersect(), tuttle::host::graph::visitor::Test_bfs::non_tree_edge(), tuttle::plugin::interact::InteractScene::penMotion(), tuttle::host::ImageEffectNode::preProcess1(), tuttle::host::ImageEffectNode::process(), tuttle::host::ofx::imageEffect::OfxhImage::releaseReference(), tuttle::host::Graph::renameNode(), tuttle::plugin::WriterPlugin::render(), tuttle::host::InputBufferWrapper::set3DArrayBuffer(), tuttle::host::INode::setProcessDataAtTime(), tuttle::host::graph::ProcessGraph::setup(), tuttle::host::graph::ProcessGraph::setupAtTime(), tuttle::host::graph::visitor::Test_dfs< TGraph >::start_vertex(), tuttle::host::graph::visitor::Test_dfs< TGraph >::Test_dfs(), tuttle::host::graph::visitor::Test_dfs< TGraph >::tree_edge(), tuttle::host::graph::visitor::Test_bfs::tree_edge(), and tuttle::host::graph::visitor::Test_dfs< TGraph >::~Test_dfs().

#define TUTTLE_TLOG_EXCEPTION   TUTTLE_LOG_EXCEPTION_DEBUG

Definition at line 142 of file global.hpp.

#define TUTTLE_TLOG_INFO   TUTTLE_LOG_INFO_DEBUG

Definition at line 135 of file global.hpp.

#define TUTTLE_TLOG_INFOS   TUTTLE_LOG_INFOS_DEBUG
#define TUTTLE_TLOG_TRACE   TUTTLE_LOG_TRACE_DEBUG
#define TUTTLE_TLOG_VAR2   TUTTLE_LOG_VAR2_DEBUG

Definition at line 137 of file global.hpp.

Referenced by tuttle::host::graph::ProcessGraph::computeTimeRange().

#define TUTTLE_TLOG_VAR3   TUTTLE_LOG_VAR3_DEBUG

Definition at line 138 of file global.hpp.

#define TUTTLE_TLOG_VAR4   TUTTLE_LOG_VAR4_DEBUG

Definition at line 139 of file global.hpp.

#define TUTTLE_TLOG_WITHINFOS   TUTTLE_LOG_WITHINFOS_DEBUG

Definition at line 141 of file global.hpp.

#define TUTTLE_TRACE   BOOST_LOG_TRIVIAL(trace)

Definition at line 41 of file global.hpp.

Referenced by tuttle::host::memory::MemoryPool::allocate(), tuttle::host::graph::visitor::Test_dfs< TGraph >::back_edge(), tuttle::host::graph::visitor::Test_bfs::black_target(), BOOST_AUTO_TEST_CASE(), tuttle::host::memory::MemoryCache::clearAll(), tuttle::host::graph::ProcessGraph::computeTimeRange(), tuttle::host::graph::connectClips(), tuttle::host::graph::visitor::Setup2< TGraph >::discover_vertex(), tuttle::host::graph::visitor::Test_dfs< TGraph >::discover_vertex(), tuttle::host::graph::visitor::Test_bfs::discover_vertex(), tuttle::host::graph::visitor::DeployTime< TGraph >::discover_vertex(), tuttle::host::graph::visitor::PreProcess2< TGraph >::discover_vertex(), tuttle::host::graph::visitor::Test_dfs< TGraph >::examine_edge(), tuttle::host::graph::visitor::Test_bfs::examine_edge(), tuttle::host::graph::visitor::Test_bfs::examine_vertex(), tuttle::host::graph::visitor::Setup1< TGraph >::finish_vertex(), tuttle::host::graph::visitor::Setup3< TGraph >::finish_vertex(), tuttle::host::graph::visitor::Test_dfs< TGraph >::finish_vertex(), tuttle::host::graph::visitor::TimeDomain< TGraph >::finish_vertex(), tuttle::host::graph::visitor::ComputeHashAtTime< TGraph >::finish_vertex(), tuttle::host::graph::visitor::Test_bfs::finish_vertex(), tuttle::host::graph::visitor::RemoveIdentityNodes< TGraph >::finish_vertex(), tuttle::host::graph::visitor::PreProcess1< TGraph >::finish_vertex(), tuttle::host::graph::visitor::Process< TGraph >::finish_vertex(), tuttle::host::graph::visitor::PostProcess< TGraph >::finish_vertex(), tuttle::host::graph::visitor::Test_dfs< TGraph >::forward_or_cross_edge(), tuttle::host::attribute::Image::getGilView(), tuttle::host::graph::visitor::Test_bfs::gray_target(), tuttle::host::graph::visitor::Test_dfs< TGraph >::initialize_vertex(), tuttle::host::graph::visitor::Test_bfs::initialize_vertex(), tuttle::host::graph::visitor::PostProcess< TGraph >::initialize_vertex(), tuttle::plugin::interact::ParamRectangleFromCenterSize< TFrame, coord >::intersect(), tuttle::host::graph::visitor::Test_bfs::non_tree_edge(), tuttle::plugin::interact::InteractScene::penMotion(), tuttle::plugin::WriterPlugin::render(), tuttle::plugin::interact::ParamRectangleFromCenterSize< TFrame, coord >::selectType(), tuttle::host::INode::setProcessDataAtTime(), tuttle::host::graph::visitor::Test_dfs< TGraph >::start_vertex(), tuttle::host::graph::visitor::Test_dfs< TGraph >::Test_dfs(), tuttle::host::graph::visitor::Test_dfs< TGraph >::tree_edge(), tuttle::host::graph::visitor::Test_bfs::tree_edge(), tuttle::host::memory::MemoryPool::updateMemoryAuthorizedWithRAM(), and tuttle::host::graph::visitor::Test_dfs< TGraph >::~Test_dfs().

#define TUTTLE_WARNING   BOOST_LOG_TRIVIAL(warning)

Definition at line 43 of file global.hpp.