00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef __MXE__H__
00020 #define __MXE__H__
00021
00022 #include <iostream>
00023 #include <string>
00024 #include<stdio.h>
00025 #include<string.h>
00026 #include<stdlib.h>
00027
00028
00034 namespace mx
00035 {
00036
00037
00038
00039 using std::ostream;
00040 using std::string;
00041
00045 template<typename Type>
00046 class mxException {
00047
00048 public:
00053 explicit mxException(Type t)
00054 {
00055 data = t;
00056 }
00057
00063 const void printError(ostream &out) const
00064 {
00065
00066 out << data << "\n";
00067 }
00068
00073 Type data;
00074 };
00075 }
00076
00077 #endif