mvaexit.cpp

Go to the documentation of this file.
00001 //******************************************************************************
00002 //                    MVAEXIT.CPP
00003 //******************************************************************************
00004 //
00005 //
00006 //********************************************************************************
00007 //
00008 //            Chris Anderson (C) UCLA 1997
00009 //            7/31/97
00010 //
00011 //
00012 //********************************************************************************
00013 //
00014 #include "mvaexit.h"
00015 #include "string.h"
00016 #include "stdlib.h"
00017 #include "stdio.h"
00018 #include "iostream.h"
00019 #ifndef __BCPLUSPLUS__
00020 void CAMmvaExit()
00021 {
00022     cerr << " Fatal Error : Program Stopped " << endl;
00023     exit(1);
00024 };
00025 void CAMmvaExit(char* ErrorMessage)
00026 {
00027     cerr << ErrorMessage << endl << endl << endl;
00028     cerr << " Fatal Error " << endl;
00029     exit(1);
00030 };
00031 #else
00032 void CAMmvaExit()
00033 {
00034     cerr << endl << endl;
00035     cerr << "Hit return to Exit " << endl << endl;
00036     getchar();
00037     throw CAMmvaException("Error In CAM mvametric entity Classes");
00038 };
00039 void CAMmvaExit(char* ErrorMessage)
00040 {
00041      throw CAMmvaException(ErrorMessage);
00042 };
00043 CAMmvaException::CAMmvaException()
00044 {
00045     errorMessage = new char[1];
00046     errorMessage[0] = '\0';
00047 }
00048 CAMmvaException::CAMmvaException(char* Emessage)
00049 {
00050     errorMessage = new char[strlen(Emessage) + 1];
00051     strcpy(errorMessage, Emessage);
00052 }
00053 CAMmvaException::CAMmvaException(const CAMmvaException& C)
00054 {
00055     errorMessage = new char[strlen(C.errorMessage) + 1];
00056     strcpy(errorMessage, C.errorMessage);
00057 }
00058 CAMmvaException::~CAMmvaException()
00059 {
00060     delete [] errorMessage;
00061 }
00062 #endif
00063 
00064   

Generated on Wed Aug 6 12:58:48 2003 for Open-Sessame Framework by doxygen1.3