mx::mxException< Type > Class Template Reference

List of all members.

Public Member Functions

 mxException (Type t)
const void printError (ostream &out) const

Public Attributes

Type data


Detailed Description

template<typename Type>
class mx::mxException< Type >

for internal exception handling

Definition at line 46 of file mx_exception.h.


Constructor & Destructor Documentation

template<typename Type>
mx::mxException< Type >::mxException ( Type  t  )  [inline, explicit]

constructor takes param of type T

Parameters:
t of Type

Definition at line 53 of file mx_exception.h.

References mx::mxException< Type >::data.

00054                 {
00055                         data = t;
00056                 }


Member Function Documentation

template<typename Type>
const void mx::mxException< Type >::printError ( ostream &  out  )  const [inline]

printError prints error to a ostream stream

Parameters:
out ostream object that error of type Type is streamed to

Definition at line 63 of file mx_exception.h.

References mx::mxException< Type >::data.

00064                 {
00065 
00066                         out << data << "\n";
00067                 }


Member Data Documentation

template<typename Type>
Type mx::mxException< Type >::data

data of type Type

Definition at line 73 of file mx_exception.h.

Referenced by mx::mxException< Type >::mxException(), and mx::mxException< Type >::printError().


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

Generated on Wed Jun 10 14:52:02 2009 for libmx by  doxygen 1.5.8