VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDeError.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvUtil/vrvUtil.h>
13 #include <vector>
14 #include <string>
15 
16 namespace makVrv
17 {
21  {
22  public:
23 
24  enum ErrorCode
25  {
28  Error_ReadingFile, //1 parameter, a filename.
29  Error_WritingFile, //1 parameter, a filename.
30  Error_DeletingFile,//1 parameter, a filename.
35  Error_UnsupportedScreenResolution,// 3 parameters, screen #, w, h
37  Error_IgnoringPropWithInvalidPosition, //2 parameters, filename, count
39  Error_FileNotFound,//1 parameter, filename
40  Error_UnableToLoadDriverFile,//1 parameter, filename
41  Error_UnableToRealizeModel,//1 parameter, model def name
43  Error_NoDataDirFound,//1 parameter, data path,
44  Error_ElementEntryNotFound,//1 parameter, element Id
45  end_ErrorCode
46  };
47 
49  DtDeError(ErrorCode code);
50 
52  DtDeError(const DtDeError& orig);
53 
55  ~DtDeError();
56 
58  DtDeError& operator <<(const std::string& param);
59 
61  DtDeError& operator <<(unsigned int param);
62 
63  DtDeError& operator <<(int param);
64 
65  DtDeError& operator <<(unsigned long long param);
66 
68  ErrorCode errorCode() const;
69 
71  const std::vector<std::string>& errorParameters() const;
72 
75  const std::string& parameter(unsigned int index) const;
76 
77  protected:
79  std::vector<std::string> myErrorParameters;
80  std::string myEmptyParameter;
81  };
82 }
83 
84 
Definition: DtDeError.h:30
#define DT_DLL_VRVUTIL
Definition: vrvUtil.h:34
ErrorCode
Definition: DtDeError.h:24
1 parameter, a string.
Definition: DtDeError.h:27
The DtDeError instance.
Definition: DtDeError.h:20
Definition: DtDeError.h:39
DT_DLL_VRFGUICORE makVrv::DtMessage & operator<<(DtMessage &msg, const makVrf::DtNetworkMessageAgentInterface &)
1 parameter, a string.
Definition: DtDeError.h:28
Contains DLL export macros.
Definition: DtDeError.h:26
Definition: DtDeError.h:29
std::string myEmptyParameter
Definition: DtDeError.h:80
Definition: DtDeError.h:43
std::vector< std::string > myErrorParameters
Definition: DtDeError.h:79
ErrorCode myErrorCode
Definition: DtDeError.h:78

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)