VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtElementChanges.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2009 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 #include <vrvCore/DtUniqueID.h>
14 
15 #include <vector>
16 #include <map>
17 namespace makVrv
18 {
19  class DtElementEntry;
20  class DtElementAttribute;
21 
26  {
27  public:
30  DtElementChanges& operator=(const DtElementChanges& orig);
32 
33  typedef std::vector<DtElementEntry*> ElementPointerList;
34  typedef std::vector<DtUniqueID> UniqueIdList;
35  typedef std::vector<DtElementAttribute*> AttributeList;
36  typedef std::map<DtUniqueID, AttributeList > ElementAttributeMap;
37 
38  inline void clear()
39  {
40  myElementsAdded.clear();
41  myElementsDeleted.clear();
42  myAttributesChanged.clear();
43  }
44 
46  inline bool hasChanges() const
47  {
48  return !myElementsAdded.empty() ||
49  !myElementsDeleted.empty() ||
50  !myAttributesChanged.empty();
51  }
52 
56  };
57 }
58 
std::vector< DtElementEntry * > ElementPointerList
Definition: DtElementChanges.h:33
ElementAttributeMap myAttributesChanged
Definition: DtElementChanges.h:55
std::vector< DtElementAttribute * > AttributeList
Definition: DtElementChanges.h:35
bool hasChanges() const
Check to see if the changes object has any changes.
Definition: DtElementChanges.h:46
ElementPointerList myElementsAdded
Definition: DtElementChanges.h:53
UniqueIdList myElementsDeleted
Definition: DtElementChanges.h:54
std::vector< DtUniqueID > UniqueIdList
Definition: DtElementChanges.h:34
DtElementChanges is used to communicate changes in element data between drivers and the main applicat...
Definition: DtElementChanges.h:25
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
std::map< DtUniqueID, AttributeList > ElementAttributeMap
Definition: DtElementChanges.h:36
void clear()
Definition: DtElementChanges.h:38
Contains makVrv::DtUniqueID type.
Contains DLL export macros.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)