VR-Link API Documentation for HLA Evolved
Public Member Functions | Private Member Functions
DtTemplatedException< I > Class Template Reference

A Templated version of DtException. More...

+ Inheritance diagram for DtTemplatedException< I >:
+ Collaboration diagram for DtTemplatedException< I >:

List of all members.

Public Member Functions

 DtTemplatedException (const char *errorMessage, const DtException *previousException=0) throw ()
 Default CTOR, exactly the same as the DtException CTOR.
 DtTemplatedException (const char *errorMessage, const char *functionName, const char *fileName, unsigned int lineNumber, const DtException *previousException=0) throw ()
 CTOR, exactly the same as the DtException CTOR.
 DtTemplatedException (const DtTemplatedException &other) throw ()
 Copy CTOR.
DtTemplatedExceptionoperator= (const DtTemplatedException &other) throw ()
 Assignment Operator.
virtual ~DtTemplatedException () throw ()

Private Member Functions

int retVal () const
 I believe that to make DtTemplateExceptions different types you have to use the template argument.

Detailed Description

template<int I>
class DtTemplatedException< I >

A Templated version of DtException.

Template instances of this class will have unique types, and also inherit from DtException. This is useful when you want to subclass DtException exclusively because you want a new type of exception, and don't want to change functionality.

Warning: The Template parameter I is an integer, and each template instance of this needs to use a different value for I.


Constructor & Destructor Documentation

template<int I>
DtTemplatedException< I >::DtTemplatedException ( const char *  errorMessage,
const DtException previousException = 0 
) throw () [inline]

Default CTOR, exactly the same as the DtException CTOR.

template<int I>
DtTemplatedException< I >::DtTemplatedException ( const char *  errorMessage,
const char *  functionName,
const char *  fileName,
unsigned int  lineNumber,
const DtException previousException = 0 
) throw () [inline]

CTOR, exactly the same as the DtException CTOR.

template<int I>
DtTemplatedException< I >::DtTemplatedException ( const DtTemplatedException< I > &  other) throw () [inline]

Copy CTOR.

template<int I>
virtual DtTemplatedException< I >::~DtTemplatedException ( ) throw () [inline, virtual]

Member Function Documentation

template<int I>
DtTemplatedException& DtTemplatedException< I >::operator= ( const DtTemplatedException< I > &  other) throw () [inline]

Assignment Operator.

References DtException::operator=().

template<int I>
int DtTemplatedException< I >::retVal ( ) const [inline, private]

I believe that to make DtTemplateExceptions different types you have to use the template argument.

That is what retVal does. It serves no purpose and hence is private.


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)