VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
slotExclusion.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
15 
20 {
21 public:
22  DtSlotExclusion(const DtString& name,
23  DtReaderWriterRegistry* parentRegistry = NULL);
24  DtSlotExclusion(const DtSlotExclusion& orig,
25  DtReaderWriterRegistry* parentRegistry = NULL);
26 
27  virtual ~DtSlotExclusion() override;
30 
33  DtNLengthIntegerVector& ifSlotsReserved();
34  const DtNLengthIntegerVector& ifSlotsReserved() const;
35  void setIfSlotsReserved(const DtNLengthIntegerVector&);
37 
40  DtNLengthIntegerVector& excludeTheseSlots();
41  const DtNLengthIntegerVector& excludeTheseSlots() const;
42  void setExcludeTheseSlots(const DtNLengthIntegerVector&);
44 
45  virtual const char* readerWriterType() const override;
46 
48  virtual bool operator==(const DtSlotExclusion&) const;
49  virtual bool operator!=(const DtSlotExclusion&) const;
50 
53  virtual void putData(DtEnvironmentSP, DtEnvValueSP parent) const override;
54  virtual void getData(const DtEnvironmentSP, const DtEnvValueSP value,
56  const DtVariableBindingsList& bindings = DtVariableBindingsList()) override;
57 
59  static const char* theXmlType();
60 
61  virtual const char* xmlType() const override {
62  return theXmlType();
63  }
65 
66 protected:
70 
75 
76 
82 
84 };
85 
87 {
89 }
90 
92 {
93  return myIfSlotsReserved;
94 }
95 
97 {
98  return myIfSlotsReserved;
99 }
100 
102 {
104 }
105 
107 {
108  return myExcludeTheseSlots;
109 }
110 
112 {
113  return myExcludeTheseSlots;
114 }
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
DtNLengthIntegerVector myExcludeTheseSlots
Parameter Name: exclude-these-slots Parameter Description: List of slots associated with if-slots-res...
Definition: slotExclusion.h:81
void setIfSlotsReserved(const DtNLengthIntegerVector &)
Accessor/mutator for myIfSlotsReserved.
Definition: slotExclusion.h:86
virtual DtlObjPtr getData(DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
Deriving class overrides these to get/put class specific data.
DtNLengthIntegerVector myIfSlotsReserved
Parameter Name: if-slots-reserved Parameter Description: List of slots reserved (occupied). Parameter Default Value: .
Definition: slotExclusion.h:74
Definition: readerWriter.h:85
Definition: readerWriterRegistry.h:39
virtual const char * xmlType() const override
Routines to archive/dearchive from an XML Environment.
Definition: slotExclusion.h:61
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
DtNLengthIntegerVector & excludeTheseSlots()
Accessor/mutator for myExcludeTheseSlots.
Definition: slotExclusion.h:106
void setExcludeTheseSlots(const DtNLengthIntegerVector &)
Accessor/mutator for myExcludeTheseSlots.
Definition: slotExclusion.h:101
DtNLengthIntegerVector & ifSlotsReserved()
Accessor/mutator for myIfSlotsReserved.
Definition: slotExclusion.h:91
virtual void putData(std::string &fp, int indentLevel=0)
Deriving class overrides these to get/put class specific data.
DtSlotExclusion.
Definition: slotExclusion.h:19
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

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)