VR-Forces 4.1.1 Class Documentation
DtDeError.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtDeError.h,v $ $Revision: 1.17 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtDeError_H_
14 #define DtDeError_H_
15 
16 #include <vrvUtil/vrvUtil.h>
17 #include <vector>
18 #include <string>
19 
20 namespace makVrv
21 {
25  {
26  public:
27 
28  enum ErrorCode
29  {
32  Error_ReadingFile, //1 parameter, a filename.
33  Error_WritingFile, //1 parameter, a filename.
34  Error_DeletingFile,//1 parameter, a filename.
39  Error_UnsupportedScreenResolution,// 3 parameters, screen #, w, h
41  Error_IgnoringPropWithInvalidPosition, //2 parameters, filename, count
43  Error_FileNotFound,//1 parameter, filename
44  Error_UnableToLoadDriverFile,//1 parameter, filename
45  Error_UnableToRealizeModel,//1 parameter, model def name
47  Error_NoDataDirFound,//1 parameter, data path,
48  end_ErrorCode
49  };
50 
52  DtDeError(ErrorCode code);
53 
55  DtDeError(const DtDeError& orig);
56 
58  ~DtDeError();
59 
61  DtDeError& operator <<(const std::string& param);
62 
64  DtDeError& operator <<(unsigned int param);
65 
66  DtDeError& operator <<(int param);
67 
69  ErrorCode errorCode() const;
70 
72  const std::vector<std::string>& errorParameters() const;
73 
76  const std::string& parameter(unsigned int index) const;
77 
78  protected:
80  std::vector<std::string> myErrorParameters;
81  std::string myEmptyParameter;
82  };
83 }
84 
85 #endif
86 

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)