VR-Forces 4.1.1 Class Documentation
rwEquality.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2007 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: rwEquality.h,v $ $Revision: 1.5 $ $State: Exp $
7 *********************************************************************/
8 
11 
12 #ifndef DTRWEQUALITY_H_
13 #define DTRWEQUALITY_H_
14 
15 #include <QtCore/QHash>
16 
17 #include <vlutil/vlString.h>
18 
19 class DtReaderWriter;
20 
21 class DtEntityMapperKey;
22 class DtObjectType;
23 
24 static const char* DtEntityEntryDeleted = "entity-deleted";
25 static const char* DtEntityEntryCreated = "entity-created";
26 static const char* DtEntityEntryModified = "entity-modified";
27 static const char* DtEntityEntryTemporary = "entity-temporary";
28 static const char* DtEntityEntryOriginalValue = "entity-original-value";
29 static const char* DtEntityEntryBackupValue = "backup-value";
30 static const char* DtEntityEntryModelValue = "entity-modified-model-value";
31 static const char* DtBackupFormationName = "backup-formation-name";
32 static const char* DtVisualsModified = "visuals-modified";
33 
34 bool operator==(const DtReaderWriter&, const DtReaderWriter&);
35 bool operator!=(const DtReaderWriter&, const DtReaderWriter&);
36 bool operator==(const DtEntityMapperKey&, const DtObjectType&);
37 
38 typedef bool (*DtCompareFcn)(const DtReaderWriter&, const DtReaderWriter&);
39 
41 
43 {
44 public:
46 
47  bool compare(const DtReaderWriter&, const DtReaderWriter&) const;
48 
49 public:
50  static bool compareString(const DtReaderWriter&, const DtReaderWriter&);
51  static bool compareInt(const DtReaderWriter&, const DtReaderWriter&);
52  static bool compareReal(const DtReaderWriter&, const DtReaderWriter&);
53  static bool compareBoolean(const DtReaderWriter&, const DtReaderWriter&);
54  static bool compareBoundingVolume(const DtReaderWriter&, const DtReaderWriter&);
55  static bool compareVector(const DtReaderWriter&, const DtReaderWriter&);
56  static bool compareSignatureLists(const DtReaderWriter&, const DtReaderWriter&);
57  static bool compareSubordinateObjectsList(const DtReaderWriter&, const DtReaderWriter&);
58  static bool compareFormationTables(const DtReaderWriter&, const DtReaderWriter&);
59 
60 public:
61  QHash<QString, DtCompareFcn> myFactory;
62 };
63 
64 DT_DLL_entityeditorimpl void setBooleanValue(DtReaderWriter*, const char* name, bool val);
65 DT_DLL_entityeditorimpl bool booleanValue(DtReaderWriter*, const char* name);
66 
67 DT_DLL_entityeditorimpl void setIntegerValue(DtReaderWriter*, const char* name, int val);
69 
70 DT_DLL_entityeditorimpl void setStringValue(DtReaderWriter*, const char* name, const DtString& val);
72 
73 #endif

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)