Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Log.h File Reference

#include "nvsg/nvsgapi.h"
#include <stdarg.h>
#include <string>
#include "nvutil/Singleton.h"

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  nvutil

Defines

#define __LOG_TEST_INIT(TM)   nvutil::LogTest::instance()->init(TM!=nvutil::TM_NONE)
 Initialize general test logging.
#define __LOG_BENCH_TEST_INIT(TM)   nvutil::LogBenchTest::instance()->init(TM==nvutil::TM_BENCH_TEST)
 Initialize benchmark test logging.
#define __LOG_SHADER_TEST_INIT(TM)   nvutil::LogShaderTest::instance()->init(TM==nvutil::TM_SHADER_TEST)
 Ininialize shader test logging.
#define __LOG_TEST(s)   { if ( nvutil::LogTest::instance()->isEnabled() ) { nvutil::LogTest::instance()->format s; } }
 Output test relevant format string s if output is enabled.
#define __LOG_BENCH_TEST(s)   { if ( nvutil::LogBenchTest::instance()->isEnabled() ) { nvutil::LogBenchTest::instance()->format s; } }
 Output benchmark test relevant format string s if output is enabled.
#define __LOG_SHADER_TEST(s)   { if ( nvutil::LogShaderTest::instance()->isEnabled() ) { nvutil::LogShaderTest::instance()->format s; } }
 Output shader test relevant format string s if output is enabled.
#define __LOG_TEST_ENABLED()   nvutil::LogTest::instance()->isEnabled()
 Query if any test is enabled.
#define __LOG_BENCH_TEST_ENABLED()   nvutil::LogBenchTest::instance()->isEnabled()
 Query if benchmark test is enabled.
#define __LOG_SHADER_TEST_ENABLED()   nvutil::LogShaderTest::instance()->isEnabled()
 Query if shader test is enabled.

Typedefs

typedef void LOG_OUTPUT_FUNCTION (const char *)
 Type of output function to use with Log class objects.
typedef Singleton< Log< TM_TEST,
logFileOutput > > 
LogTest
 Dedicated type for general test logging.
typedef Singleton< Log< TM_BENCH_TEST,
logFileOutput > > 
LogBenchTest
 Dedicated type for benchmark test logging.
typedef Singleton< Log< TM_SHADER_TEST,
logFileOutput > > 
LogShaderTest
 Dedicated type for shader test logging.

Enumerations

enum  TESTMODE { TM_NONE = 0, TM_TEST, TM_BENCH_TEST, TM_SHADER_TEST }
 Test modes available for logging. More...

Variables

NVSG_API std::string __LOG_FILE__
 Global string containing the name of the log file.
NVSG_API LOG_OUTPUT_FUNCTION logFileOutput
 Function to log into a file.


Detailed Description


Variable Documentation

NVSG_API std::string __LOG_FILE__
 

Global string containing the name of the log file.


Generated on Tue Mar 1 13:19:40 2005 for NVSGSDK by NVIDIA