VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
nLengthIntegerVector.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
17 #include <vlutil/vlMachineTypes.h>
19 
21 
26 
27 #include "vrfutil/vrfutilDefines.h"
29 {
30 public:
33 
36  parentRegistry = NULL);
38  parentRegistry = NULL);
39 
42  DtReaderWriterRegistry* parentRegistry = NULL);
43 
46 
47  virtual ~DtNLengthIntegerVector() override;
48 
50  parentRegistry = NULL) const;
51 
53  virtual void setVectorLength(int length);
54  virtual int vectorLength() const;
55 
56  virtual int& operator[] (const int i);
57  virtual int value(const int i) const;
58 
59  virtual void putData(std::string& fp, int indentLevel = 0) override;
60  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
61  const DtVariableBindingsList& variableBindings) override;
62 
63  virtual void copyVector(const DtNLengthIntegerVector & vector);
64 
68  virtual const char* readerWriterType() const override;
69 
71  virtual bool operator==(const DtNLengthIntegerVector&) const;
72  virtual bool operator!=(const DtNLengthIntegerVector&) const;
73 
76  virtual void putData(DtEnvironmentSP, DtEnvValueSP parent) const override;
77  virtual void getData(const DtEnvironmentSP, const DtEnvValueSP value,
79  const DtVariableBindingsList& bindings = DtVariableBindingsList()) override;
80 
82  static const char* theXmlType();
83 
84  virtual const char* xmlType() const override
85  {
86  return theXmlType();
87  }
88  virtual void stringToIntList(const DtString& string);
89  virtual DtString intListToString() const;
91 
92 protected:
93  int* myIntegers;
95 };
96 
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
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
virtual const char * xmlType() const override
Routines to archive/dearchive from an XML Environment.
Definition: nLengthIntegerVector.h:84
int * myIntegers
Definition: nLengthIntegerVector.h:93
virtual DtlObjPtr getData(DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
Deriving class overrides these to get/put class specific data.
Definition: readerWriter.h:85
Definition: readerWriterRegistry.h:39
bool operator!=(const DtReaderWriter &rhs) const
Definition: readerWriter.h:121
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
virtual void putData(std::string &fp, int indentLevel=0)
Deriving class overrides these to get/put class specific data.
DT_DLL_VRVCORE double length(const makVrv::DtCoordinateSystem &, const std::vector< DtVector > &vertices)
Returns the total distance of a segmented line defined by the provided vector of vertices. Coordinates are in local database coordinates. The coordinate system is used to convert between the local database coordinates and geocentric. All distance is in 2D – the Z value is ignored.
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
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
int myVectorLength
Definition: nLengthIntegerVector.h:94

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)