VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sensorContactInfoList.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
12 #include "vrfutil/rwList.h"
13 #include "vrfutil/vrfutilDefines.h"
15 
16 #include <set>
17 
19 class DtString;
21 
30 {
31 
32 public:
33 
36 
38  DtSensorContactInfoList(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL);
39  DtSensorContactInfoList(const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL);
40 
42  virtual ~DtSensorContactInfoList();
43 
46 
48  DtReaderWriterRegistry* parentRegistry = NULL);
49 
50  DtSensorContactInfoList(const DtSymbolString& name, const DtSensorContactInfoList& orig,
51  DtReaderWriterRegistry* parentRegistry = NULL);
53 
58 
60 
61  virtual DtSensorContactInfoList* clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL);
62  virtual DtSensorContactInfoList* clone(const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL);
64 
66  virtual void clear();
67 
69  virtual void removeAndDelete(DtRwSensorContactInfo* contactInfo);
70 
73  virtual DtRwSensorContactInfo* findContactInfoByContactName(const DtString& contactName);
74 
76  virtual std::set<DtString> contactNames() const;
77 
86  virtual DtRwSensorContactInfo* createSensorContactInfo();
87 
92 
93  virtual void addModifiedCallback(DtNoArgumentCallbackList::DtCallbackFunctionType fcn, void* usr);
94  virtual void removeModifiedCallback(DtNoArgumentCallbackList::DtCallbackFunctionType fcn, void* usr);
96 
99  virtual void listModified();
100 
101  bool operator==(const DtSensorContactInfoList&) const;
102 
104  static const char* theXmlType();
105 
106  virtual const char* xmlType() const
107  {
108  return theXmlType();
109  }
110 
111 protected:
112 
114  void copyList(const DtSensorContactInfoList& orig);
115 
118  void emptyList();
119 
122  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
123  const DtVariableBindingsList& variableBindings);
124 
128  virtual const char* readerWriterType() const;
129 
131 
132 protected:
133 
134 };
135 
141 {
142 private:
144 
149 public:
152 
155  bool listChanged() const;
156 
159  void markUnchanged();
160 
163  bool checkAndResetListChanged();
164 
165 protected:
166  static void listChangedCallback(void* usr);
167  void processListChanged();
168 
171 };
172 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)