![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /********************************************************************* 00002 ** Copyright (c) 2007 MaK Technologies, Inc. 00003 ** All rights reserved. 00004 *********************************************************************/ 00005 /********************************************************************* 00006 ** $RCSfile: rwEquality.h,v $ $Revision: 1.5 $ $State: Exp $ 00007 *********************************************************************/ 00008 00011 00012 #ifndef DTRWEQUALITY_H_ 00013 #define DTRWEQUALITY_H_ 00014 00015 #include <QtCore/QHash> 00016 00017 #include <vlutil/vlString.h> 00018 00019 class DtReaderWriter; 00020 00021 class DtEntityMapperKey; 00022 class DtObjectType; 00023 00024 static const char* DtEntityEntryDeleted = "entity-deleted"; 00025 static const char* DtEntityEntryCreated = "entity-created"; 00026 static const char* DtEntityEntryModified = "entity-modified"; 00027 static const char* DtEntityEntryTemporary = "entity-temporary"; 00028 static const char* DtEntityEntryOriginalValue = "entity-original-value"; 00029 static const char* DtEntityEntryBackupValue = "backup-value"; 00030 static const char* DtEntityEntryModelValue = "entity-modified-model-value"; 00031 static const char* DtBackupFormationName = "backup-formation-name"; 00032 static const char* DtVisualsModified = "visuals-modified"; 00033 00034 bool operator==(const DtReaderWriter&, const DtReaderWriter&); 00035 bool operator!=(const DtReaderWriter&, const DtReaderWriter&); 00036 bool operator==(const DtEntityMapperKey&, const DtObjectType&); 00037 00038 typedef bool (*DtCompareFcn)(const DtReaderWriter&, const DtReaderWriter&); 00039 00040 #include "entityEditorImpl/entityEditorImplDefines.h" 00041 00042 class DT_DLL_entityeditorimpl DtRwCompareFactory 00043 { 00044 public: 00045 DtRwCompareFactory(); 00046 00047 bool compare(const DtReaderWriter&, const DtReaderWriter&) const; 00048 00049 public: 00050 static bool compareString(const DtReaderWriter&, const DtReaderWriter&); 00051 static bool compareInt(const DtReaderWriter&, const DtReaderWriter&); 00052 static bool compareReal(const DtReaderWriter&, const DtReaderWriter&); 00053 static bool compareBoolean(const DtReaderWriter&, const DtReaderWriter&); 00054 static bool compareBoundingVolume(const DtReaderWriter&, const DtReaderWriter&); 00055 static bool compareVector(const DtReaderWriter&, const DtReaderWriter&); 00056 static bool compareSignatureLists(const DtReaderWriter&, const DtReaderWriter&); 00057 static bool compareSubordinateObjectsList(const DtReaderWriter&, const DtReaderWriter&); 00058 static bool compareFormationTables(const DtReaderWriter&, const DtReaderWriter&); 00059 00060 public: 00061 QHash<QString, DtCompareFcn> myFactory; 00062 }; 00063 00064 DT_DLL_entityeditorimpl void setBooleanValue(DtReaderWriter*, const char* name, bool val); 00065 DT_DLL_entityeditorimpl bool booleanValue(DtReaderWriter*, const char* name); 00066 00067 DT_DLL_entityeditorimpl void setIntegerValue(DtReaderWriter*, const char* name, int val); 00068 DT_DLL_entityeditorimpl int integerValue(DtReaderWriter*, const char* name); 00069 00070 DT_DLL_entityeditorimpl void setStringValue(DtReaderWriter*, const char* name, const DtString& val); 00071 DT_DLL_entityeditorimpl DtString stringValue(DtReaderWriter*, const char* name); 00072 00073 #endif