VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
loadPoint.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
16 #include "readerWriter/rwVector.h"
17 #include "vrfutil/rwVectorList.h"
18 
23 {
24 public:
25  DtLoadPoint(const DtString& name,
26  DtReaderWriterRegistry* parentRegistry = NULL);
27  DtLoadPoint(const DtLoadPoint& orig,
28  DtReaderWriterRegistry* parentRegistry = NULL);
29 
30  virtual ~DtLoadPoint() override;
32  DtLoadPoint& operator=(const DtLoadPoint & orig);
33 
36  DtNLengthIntegerVector& supportedSlots();
37  const DtNLengthIntegerVector& supportedSlots() const;
38  void setSupportedSlots(const DtNLengthIntegerVector&);
40 
42  const DtRwVectorList& points() const;
43  DtRwVectorList& points();
44 
46  void addPoint(const DtVector&);
47 
48  virtual const char* readerWriterType() const override;
49 
51  virtual bool operator==(const DtLoadPoint&) const;
52  virtual bool operator!=(const DtLoadPoint&) const;
53 
56  virtual void putData(DtEnvironmentSP, DtEnvValueSP parent) const override;
57  virtual void getData(const DtEnvironmentSP, const DtEnvValueSP value,
59  const DtVariableBindingsList& bindings = DtVariableBindingsList()) override;
60 
62  static const char* theXmlType();
63 
64  virtual const char* xmlType() const override {
65  return theXmlType();
66  }
68 
69 protected:
73 
79 
85 
87 };
88 
90 {
91  mySlots = s;
92 }
93 
95 {
96  return mySlots;
97 }
98 
100 {
101  return mySlots;
102 }
103 
104 inline const DtRwVectorList& DtLoadPoint::points() const
105 {
106  return myPoints;
107 }
108 
110 {
111  return myPoints;
112 }
113 
114 inline void DtLoadPoint::addPoint(const DtVector& v)
115 {
116  myPoints.add(new DtRwVector(v, "embarkation-load-point"));
117 }
bool operator==(const DtReaderWriter &) const
Equivalence operator.
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
Description: DtNLengthIntegerVector is a named, readable/writable vector of integers of arbitrary len...
Definition: nLengthIntegerVector.h:28
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
DtLoadPoint; Readable/writeable object for describing position for entity loading/unloading.
Definition: loadPoint.h:22
virtual DtlObjPtr getData(DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
Deriving class overrides these to get/put class specific data.
DtRwVectorList myPoints
Parameter Name: embarkation-load-points Parameter Description: List of position offsets relative to t...
Definition: loadPoint.h:84
Definition: readerWriter.h:85
Definition: readerWriterRegistry.h:39
const DtRwVectorList & points() const
Accessor for myPoints.
Definition: loadPoint.h:104
void addPoint(const DtVector &)
Add a point to myPoints.
Definition: loadPoint.h:114
DtNLengthIntegerVector & supportedSlots()
Accessor/mutator for mySlots.
Definition: loadPoint.h:94
Definition: rwVector.h:23
bool operator!=(const DtReaderWriter &rhs) const
Definition: readerWriter.h:121
virtual DtListItem * add(DtReaderWriter *item) override
Define this function to hide the DtRwList version, and accept only the specific DtReaderWriter subcla...
Definition: rwTemplatedList.h:90
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
virtual const char * xmlType() const override
Routines to archive/dearchive from an XML Environment.
Definition: loadPoint.h:64
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
DtNLengthIntegerVector mySlots
Parameter Name: embarkation-slots Parameter Description: List of integer identifiers for positions th...
Definition: loadPoint.h:78
virtual void putData(std::string &fp, int indentLevel=0)
Deriving class overrides these to get/put class specific data.
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
static const char * theXmlType()
The type that is used when archiving to an XML stream.
DT_DLL_readerWriter std::shared_ptr< DtEnvironment > DtEnvironmentSP
Definition: readerWriter.h:30
void setSupportedSlots(const DtNLengthIntegerVector &)
Accessor/mutator for mySlots.
Definition: loadPoint.h:89
class DtRwVectorList:
Definition: rwVectorList.h:22
File: rwVector.h.

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)