VR-Forces 5.0.2 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();
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;
46 
48  virtual bool operator==(const DtSlotExclusion&) const;
49  virtual bool operator!=(const DtSlotExclusion&) const;
50 
53  virtual void putData(DtEnvironmentSP, DtEnvValueSP parent) const;
54  virtual void getData(const DtEnvironmentSP, const DtEnvValueSP value,
57 
59  static const char* theXmlType();
60 
61  virtual const char* xmlType() const
62  {
63  return theXmlType();
64  }
66 
67 protected:
71 
76 
77 
83 
85 };
86 
88 {
90 }
91 
93 {
94  return myIfSlotsReserved;
95 }
96 
98 {
99  return myIfSlotsReserved;
100 }
101 
103 {
105 }
106 
108 {
109  return myExcludeTheseSlots;
110 }
111 
113 {
114  return myExcludeTheseSlots;
115 }
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:82
void setIfSlotsReserved(const DtNLengthIntegerVector &)
Accessor/mutator for myIfSlotsReserved.
Definition: slotExclusion.h:87
DT_DLL_readerWriter DtBoost::shared_ptr< DtEnvironment > DtEnvironmentSP
Definition: readerWriter.h:30
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:75
Definition: readerWriter.h:85
Definition: readerWriterRegistry.h:39
virtual const char * xmlType() const
Routines to archive/dearchive from an XML Environment.
Definition: slotExclusion.h:61
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:107
void setExcludeTheseSlots(const DtNLengthIntegerVector &)
Accessor/mutator for myExcludeTheseSlots.
Definition: slotExclusion.h:102
DtNLengthIntegerVector & ifSlotsReserved()
Accessor/mutator for myIfSlotsReserved.
Definition: slotExclusion.h:92
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.
bool operator!=(const DtReaderWriter &rhs)
Definition: readerWriter.h:121

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)