VR-Link API Documentation for HLA 1.3
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:

List of all members.

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
static void fatal ()
 call DtAssert::fatal() to make DtAssert's throw DtAssertException and issue warnings
static void ignore ()
 call DtAssert::ignore() to turn off assertions

Static Public Attributes

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

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.
 DtAssert (const DtAssert &other)
 This class can not be copied -- not implemented.
DtAssertoperator= (const DtAssert &)
 This class can not be copied -- not implemented.

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 
) [static, protected]
static void DtAssert::defaultNonFatal ( const char *  file,
const char *  func,
int  line,
const char *  operation 
) [static, protected]
static void DtAssert::fatal ( ) [static]

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

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

The function to call when a DtAssert fails.

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

the DtOutputStream to use for DtAssert() warnings

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 Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)