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();
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;
49 
51  virtual bool operator==(const DtLoadPoint&) const;
52  virtual bool operator!=(const DtLoadPoint&) const;
53 
56  virtual void putData(DtEnvironmentSP, DtEnvValueSP parent) const;
57  virtual void getData(const DtEnvironmentSP, const DtEnvValueSP value,
60 
62  static const char* theXmlType();
63 
64  virtual const char* xmlType() const
65  {
66  return theXmlType();
67  }
69 
70 protected:
74 
80 
86 
88 };
89 
91 {
92  mySlots = s;
93 }
94 
96 {
97  return mySlots;
98 }
99 
101 {
102  return mySlots;
103 }
104 
105 inline const DtRwVectorList& DtLoadPoint::points() const
106 {
107  return myPoints;
108 }
109 
111 {
112  return myPoints;
113 }
114 
115 inline void DtLoadPoint::addPoint(const DtVector& v)
116 {
117  myPoints.add(new DtRwVector(v, "embarkation-load-point"));
118 }
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
DT_DLL_readerWriter DtBoost::shared_ptr< DtEnvironment > DtEnvironmentSP
Definition: readerWriter.h:30
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:85
Definition: readerWriter.h:85
Definition: readerWriterRegistry.h:39
const DtRwVectorList & points() const
Accessor for myPoints.
Definition: loadPoint.h:105
void addPoint(const DtVector &)
Add a point to myPoints.
Definition: loadPoint.h:115
DtNLengthIntegerVector & supportedSlots()
Accessor/mutator for mySlots.
Definition: loadPoint.h:95
Definition: rwVector.h:23
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
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:79
virtual void putData(std::string &fp, int indentLevel=0)
Deriving class overrides these to get/put class specific data.
virtual const char * xmlType() const
Routines to archive/dearchive from an XML Environment.
Definition: loadPoint.h:64
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
static const char * theXmlType()
The type that is used when archiving to an XML stream.
bool operator!=(const DtReaderWriter &rhs)
Definition: readerWriter.h:121
void setSupportedSlots(const DtNLengthIntegerVector &)
Accessor/mutator for mySlots.
Definition: loadPoint.h:90
class DtRwVectorList:
Definition: rwVectorList.h:22
File: rwVector.h.

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)