VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simArtPartDescriptorList.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 20201 MaK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
6 #pragma once
7 
8 #include <readerWriter/rwList.h>
9 
11 
17 {
18 protected:
19 
22 
23 public:
24 
27  parentRegistry = NULL);
29  parentRegistry = NULL);
30 
32  DtSimArtPartDescriptorList(const DtString& name, const
34  parentRegistry = NULL);
35 
36  DtSimArtPartDescriptorList(const DtSymbolString& name, const
38  parentRegistry = NULL);
39 
44  orig);
45 
47  virtual ~DtSimArtPartDescriptorList();
48 
49  virtual DtSimArtPartDescriptorList* clone(const DtString& name,
50  DtReaderWriterRegistry* parentRegistry = NULL);
51  virtual DtSimArtPartDescriptorList* clone(const DtSymbolString& name,
52  DtReaderWriterRegistry* parentRegistry = NULL);
53 
54  virtual DtSimArtPartDescriptor* addArtPartDescriptor(const DtSimArtPartDescriptor& descriptor);
55  virtual void removeArtPartDescriptor(DtSimArtPartDescriptor * descriptor);
56 
57  bool operator==(const DtSimArtPartDescriptorList&) const;
58  bool operator!=(const DtSimArtPartDescriptorList& rhs) const { return !(*this == rhs); };
59 
61  virtual void writeOnlySpecifiedParameters();
62 
64  static const char* theXmlType();
65 
66  virtual const char* xmlType() const
67  {
68  return theXmlType();
69  }
70 
72  virtual void postGetSelf();
73 
74 protected:
75 
77  virtual void emptyList();
78  virtual void copyList(const DtSimArtPartDescriptorList &orig);
79 
82  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
83  const DtVariableBindingsList& variableBindings);
84 
85  virtual DtSimArtPartDescriptor* addArtPartDescriptor(DtSimArtPartDescriptor * descriptor);
86 
90  virtual const char* readerWriterType() const;
91 
92  std::set<DtSymbolString> myPartNames;
93 };
Definition: symbolString.h:20
A Readable, Writable version of DtList.
Definition: rwList.h:26
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
A readable, writable type that holds an articulated part type, attached-to part type, attachment point, and a list of art-part params (DtSimArtPartParamList).
Definition: simArtPartDescriptor.h:28
virtual void postGetSelf()
Called after either version of getSelf (mtl or environment). Default is no-op.
virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)=0
This method must be overridden by a subclass.
static const char * theXmlType()
The type that is used when archiving to an XML stream.
Definition: readerWriterRegistry.h:39
virtual const char * xmlType() const
Definition: simArtPartDescriptorList.h:66
Instances of DtSimArtPartDescriptorList are lists of DtSimArtPartDescriptors.
Definition: simArtPartDescriptorList.h:16
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
bool operator!=(const DtSimArtPartDescriptorList &rhs) const
Definition: simArtPartDescriptorList.h:58
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
std::set< DtSymbolString > myPartNames
Definition: simArtPartDescriptorList.h:92
bool operator==(const DtRwList &rhs) const
Iterates over all items and calls the factory to compare.
const DtRwList & operator=(const DtRwList &orig)
Calls down to DtReaderWriter::operator=(). List elements are not copied.
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)