VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwVariableBindingsList.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
8 
9 #pragma once
10 
13 
14 const char DtRwVariableBindingsListType[] = "DtRwVariableBindingsList";
15 
17 {
18 public:
20  DtRwVariableBindingsList(const DtString& name, DtReaderWriterRegistry* parent = 0) : DtReaderWriter(name, parent), myList(new DtVariableBindingsList) {};
21  DtRwVariableBindingsList(const DtRwVariableBindingsList& orig, DtReaderWriterRegistry* parent = 0) : DtReaderWriter(orig.name(), parent), myList(orig.myList) {};
22 
24  {
25  }
26 
27  bool operator!=(const DtRwVariableBindingsList& rhs) const
28  {
29  return !(*this == rhs);
30  }
31 
32  bool operator==(const DtRwVariableBindingsList& rhs) const
33  {
34  if (myList.get() && rhs.myList.get() && myList->size() == rhs.myList->size())
35  {
36  DtVariableBindingsList::const_iterator lhsIter = myList->begin();
37  DtVariableBindingsList::const_iterator rhsIter = rhs.myList->begin();
38 
39  while (lhsIter != myList->end())
40  {
41  if (**lhsIter != **rhsIter)
42  {
43  return false;
44  }
45 
46  ++lhsIter;
47  ++rhsIter;
48  }
49 
50  return true;
51  }
52 
53  return false;
54  }
55 
56  virtual const char* readerWriterType() const
57  {
59  }
60 
61  boost::shared_ptr<DtVariableBindingsList> myList;
62 };
63 
64 DT_DLL_simulationObjectEditorimpl void setBooleanValue(DtReaderWriter*, const char* name, bool val);

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)