VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvUtil
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
{
24
class
DT_DLL_VRVUTIL
DtDeError
25
{
26
public
:
27
28
enum
ErrorCode
29
{
30
Error_Generic
,
31
Error_UnhandledException
,
32
Error_ReadingFile
,
//1 parameter, a filename.
33
Error_WritingFile
,
//1 parameter, a filename.
34
Error_DeletingFile
,
//1 parameter, a filename.
35
Error_NoFactorySettings
,
36
Error_LoadingFeatureFile
,
37
Error_LoadingTerrainFile
,
38
Error_ModelDefinitionDoesNotExist
,
39
Error_UnsupportedScreenResolution
,
// 3 parameters, screen #, w, h
40
Error_NumExtractedPropsDoesntMatchNumPropRecords
,
41
Error_IgnoringPropWithInvalidPosition
,
//2 parameters, filename, count
42
Error_ConfigWithNameAlreadyExists
,
43
Error_FileNotFound
,
//1 parameter, filename
44
Error_UnableToLoadDriverFile
,
//1 parameter, filename
45
Error_UnableToRealizeModel
,
//1 parameter, model def name
46
Error_UnableToCheckoutSlaveLicense
,
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
:
79
ErrorCode
myErrorCode
;
80
std::vector<std::string>
myErrorParameters
;
81
std::string
myEmptyParameter
;
82
};
83
}
84
85
#endif
86
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)