VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Static Public Member Functions | Static Public Attributes | Static Protected Member Functions | Private Member Functions

DtAssert (the class) helps implement DtAssert (the MACRO) by storing static member variables. More...

+ Collaboration diagram for DtAssert:

Public Types

typedef void(* DtAssertFunc )(const char *fName, const char *func, int fLine, const char *operation)
 

Static Public Member Functions

static DtAssertFunc getAssertFunction ()
 
static void setAssertFunction (DtAssertFunc func)
 
static void warn ()
 call DtAssert::warn() to make DtAssert just print warnings More...
 
static void fatal ()
 call DtAssert::fatal() to make DtAssert's throw DtAssertException and issue warnings More...
 
static void ignore ()
 call DtAssert::ignore() to turn off assertions More...
 

Static Public Attributes

static DtAssertFunc theAssertFunction
 The function to call when a DtAssert fails. More...
 
static DtOutputStreamtheAssertStream
 the DtOutputStream to use for DtAssert() warnings More...
 
static const DtAssertFunc theNoAssertFunction
 always set to null, when theAssertFunction is set to this value then DtAssert is a no-op More...
 

Static Protected Member Functions

static void defaultFatal (const char *file, const char *func, int line, const char *operation)
 
static void defaultNonFatal (const char *file, const char *func, int line, const char *operation)
 

Private Member Functions

 DtAssert ()
 Do not instantiate – CTOR not implemented. More...
 
 DtAssert (const DtAssert &other)
 This class can not be copied – not implemented. More...
 
DtAssertoperator= (const DtAssert &)
 This class can not be copied – not implemented. More...
 

Detailed Description

DtAssert (the class) helps implement DtAssert (the MACRO) by storing static member variables.

This class should not be used directly, the macro DtAssert(a) should be used instead

Member Typedef Documentation

typedef void(* DtAssert::DtAssertFunc)(const char *fName, const char *func, int fLine, const char *operation)

Constructor & Destructor Documentation

DtAssert::DtAssert ( )
private

Do not instantiate – CTOR not implemented.

DtAssert::DtAssert ( const DtAssert other)
private

This class can not be copied – not implemented.

Member Function Documentation

static void DtAssert::defaultFatal ( const char *  file,
const char *  func,
int  line,
const char *  operation 
)
staticprotected
static void DtAssert::defaultNonFatal ( const char *  file,
const char *  func,
int  line,
const char *  operation 
)
staticprotected
static void DtAssert::fatal ( )
static

call DtAssert::fatal() to make DtAssert's throw DtAssertException and issue warnings

static DtAssertFunc DtAssert::getAssertFunction ( )
static
static void DtAssert::ignore ( )
static

call DtAssert::ignore() to turn off assertions

DtAssert& DtAssert::operator= ( const DtAssert )
private

This class can not be copied – not implemented.

static void DtAssert::setAssertFunction ( DtAssertFunc  func)
static
static void DtAssert::warn ( )
static

call DtAssert::warn() to make DtAssert just print warnings

Member Data Documentation

DtAssertFunc DtAssert::theAssertFunction
static

The function to call when a DtAssert fails.

This is typicaly set via DtAssert::fatal(), DtAssert::warn(), or DtAssert::ignore()

DtOutputStream& DtAssert::theAssertStream
static

the DtOutputStream to use for DtAssert() warnings

const DtAssertFunc DtAssert::theNoAssertFunction
static

always set to null, when theAssertFunction is set to this value then DtAssert is a no-op


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)