![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtDeError.h,v $ $Revision: 1.17 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #ifndef DtDeError_H_ 00014 #define DtDeError_H_ 00015 00016 #include <vrvUtil/vrvUtil.h> 00017 #include <vector> 00018 #include <string> 00019 00020 namespace makVrv 00021 { 00024 class DT_DLL_VRVUTIL DtDeError 00025 { 00026 public: 00027 00028 enum ErrorCode 00029 { 00030 Error_Generic, 00031 Error_UnhandledException, 00032 Error_ReadingFile, //1 parameter, a filename. 00033 Error_WritingFile, //1 parameter, a filename. 00034 Error_DeletingFile,//1 parameter, a filename. 00035 Error_NoFactorySettings, 00036 Error_LoadingFeatureFile, 00037 Error_LoadingTerrainFile, 00038 Error_ModelDefinitionDoesNotExist, 00039 Error_UnsupportedScreenResolution,// 3 parameters, screen #, w, h 00040 Error_NumExtractedPropsDoesntMatchNumPropRecords, 00041 Error_IgnoringPropWithInvalidPosition, //2 parameters, filename, count 00042 Error_ConfigWithNameAlreadyExists, 00043 Error_FileNotFound,//1 parameter, filename 00044 Error_UnableToLoadDriverFile,//1 parameter, filename 00045 Error_UnableToRealizeModel,//1 parameter, model def name 00046 Error_UnableToCheckoutSlaveLicense, 00047 Error_NoDataDirFound,//1 parameter, data path, 00048 end_ErrorCode 00049 }; 00050 00052 DtDeError(ErrorCode code); 00053 00055 DtDeError(const DtDeError& orig); 00056 00058 ~DtDeError(); 00059 00061 DtDeError& operator <<(const std::string& param); 00062 00064 DtDeError& operator <<(unsigned int param); 00065 00066 DtDeError& operator <<(int param); 00067 00069 ErrorCode errorCode() const; 00070 00072 const std::vector<std::string>& errorParameters() const; 00073 00076 const std::string& parameter(unsigned int index) const; 00077 00078 protected: 00079 ErrorCode myErrorCode; 00080 std::vector<std::string> myErrorParameters; 00081 std::string myEmptyParameter; 00082 }; 00083 } 00084 00085 #endif 00086