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

Logging a certain test results

Collaboration diagram for Logging a certain test results:


Modules

 Macros providing initialization of certain test modes for logging
 Macros providing formatted output relevant for a certain test modes
 Macros to inquire if logging is enabled for a certain test mode

Classes

class  nvutil::Log< TestMode, OutputFn >
 Logging test results. More...

Typedefs

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

Enumerations

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

Functions

void nvutil::Log::init (bool enable)
 Initialization.
void nvutil::Log::format (const char *fmt,...) const
 Formatted output.
bool nvutil::Log::isEnabled () const
 Determine whether a certain test mode is enabled.

Variables

NVSG_API LOG_OUTPUT_FUNCTION nvutil::logFileOutput
 Function to log into a file.

Typedef Documentation

typedef void nvutil::LOG_OUTPUT_FUNCTION(const char *)
 

Type of output function to use with Log class objects.

typedef Singleton< Log<TM_TEST, logFileOutput> > nvutil::LogTest
 

Dedicated type for general test logging.

typedef Singleton< Log<TM_BENCH_TEST, logFileOutput> > nvutil::LogBenchTest
 

Dedicated type for benchmark test logging.

typedef Singleton< Log<TM_SHADER_TEST, logFileOutput> > nvutil::LogShaderTest
 

Dedicated type for shader test logging.


Enumeration Type Documentation

enum nvutil::TESTMODE
 

Test modes available for logging.

Enumeration values:
TM_NONE  None of the following modes enabled.
TM_TEST  Any test mode.
TM_BENCH_TEST  Bench test relevant logging.
TM_SHADER_TEST  Shader test relevant logging.


Function Documentation

template<TESTMODE TestMode, LOG_OUTPUT_FUNCTION * OutputFn>
void nvutil::Log< TestMode, OutputFn >::init bool  enable  )  [inline, inherited]
 

Initialization.

Based on enable, decides wether to output or not.

Parameters:
enable  Enable logging if true.

template<TESTMODE TestMode, LOG_OUTPUT_FUNCTION * OutputFn>
void nvutil::Log< TestMode, OutputFn >::format const char *  fmt,
  ...
const [inline, inherited]
 

Formatted output.

Outputs the format string fmt using OutputFn.

Parameters:
fmt  Format string.

template<TESTMODE TestMode, LOG_OUTPUT_FUNCTION * OutputFn>
bool nvutil::Log< TestMode, OutputFn >::isEnabled  )  const [inline, inherited]
 

Determine whether a certain test mode is enabled.

Returns:
true if output is enabled, fasle otherwise.


Variable Documentation

NVSG_API LOG_OUTPUT_FUNCTION nvutil::logFileOutput
 

Function to log into a file.


Generated on Tue Mar 1 13:20:36 2005 for NVSGSDK by NVIDIA