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

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

Compounds

class  Log
 Logging test results. More...


Typedefs

typedef void LOG_OUTPUT_FUNCTION (const char *)
 Type of output function to use with Log class objects. More...

typedef Singleton< Log< TM_TEST,
logFileOutput > > 
LogTest
 Dedicated type for general test logging. More...

typedef Singleton< Log< TM_BENCH_TEST,
logFileOutput > > 
LogBenchTest
 Dedicated type for benchmark test logging. More...

typedef Singleton< Log< TM_SHADER_TEST,
logFileOutput > > 
LogShaderTest
 Dedicated type for shader test logging. More...


Enumerations

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


Functions

void init (bool enable)
 Initialization. More...

void format (const char *fmt,...) const
 Formatted output. More...

bool isEnabled () const
 Determine whether a certain test mode is enabled. More...


Variables

NVSG_API LOG_OUTPUT_FUNCTION logFileOutput
 Function to log into a file. More...


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:21 2005 for NVSGSDK by NVIDIA