VR-Forces 4.8 Class Documentation
 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 /******************************************************************************
6 ** $RCSfile: DtElementChanges.h,v $ $Revision: 1.1 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvCore/vrvCore.h>
16 #include <vrvCore/DtUniqueID.h>
17 
18 #include <vector>
19 #include <map>
20 namespace makVrv
21 {
22  class DtElementEntry;
23  class DtElementAttribute;
24 
29  {
30  public:
33  DtElementChanges& operator=(const DtElementChanges& orig);
35 
36  typedef std::vector<DtElementEntry*> ElementPointerList;
37  typedef std::vector<DtUniqueID> UniqueIdList;
38  typedef std::vector<DtElementAttribute*> AttributeList;
39  typedef std::map<DtUniqueID, AttributeList > ElementAttributeMap;
40 
41  inline void clear()
42  {
43  myElementsAdded.clear();
44  myElementsDeleted.clear();
45  myAttributesChanged.clear();
46  }
47 
49  inline bool hasChanges() const
50  {
51  return !myElementsAdded.empty() ||
52  !myElementsDeleted.empty() ||
53  !myAttributesChanged.empty();
54  }
55 
59  };
60 }
61 
std::vector< DtElementEntry * > ElementPointerList
Definition: DtElementChanges.h:36
ElementAttributeMap myAttributesChanged
Definition: DtElementChanges.h:58
std::vector< DtElementAttribute * > AttributeList
Definition: DtElementChanges.h:38
bool hasChanges() const
Check to see if the changes object has any changes.
Definition: DtElementChanges.h:49
ElementPointerList myElementsAdded
Definition: DtElementChanges.h:56
UniqueIdList myElementsDeleted
Definition: DtElementChanges.h:57
std::vector< DtUniqueID > UniqueIdList
Definition: DtElementChanges.h:37
DtElementChanges is used to communicate changes in element data between drivers and the main applicat...
Definition: DtElementChanges.h:28
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
std::map< DtUniqueID, AttributeList > ElementAttributeMap
Definition: DtElementChanges.h:39
void clear()
Definition: DtElementChanges.h:41
Contains makVrv::DtUniqueID type.
Contains DLL export macros.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)