VR-Forces 4.0.4 Class Documentation
include/vrfobjparam/slotExclusion.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2005 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: slotExclusion.h,v $ $Revision: 1.5 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00013 
00014 #ifndef DtSlotExclusion_H_
00015 #define DtSlotExclusion_H_
00016 
00017 #include "vrfutil/rdrWritr.h"
00018 #include "vrfutil/nLenIntVec.h"
00019 
00022 #include "vrfobjparam/vrfobjparamDefines.h"
00023 class DT_DLL_vrfobjparam DtSlotExclusion : public DtReaderWriter
00024 {
00025 public:
00026    DtSlotExclusion(const DtString& name, 
00027       DtReaderWriterRegistry* parentRegistry = NULL);
00028    DtSlotExclusion(const DtSlotExclusion& orig, 
00029       DtReaderWriterRegistry* parentRegistry = NULL);
00030 
00031    virtual ~DtSlotExclusion();
00033    DtSlotExclusion& operator=(const DtSlotExclusion & orig);
00034    
00037    DtNLengthIntegerVector&  ifSlotsReserved();
00038    const DtNLengthIntegerVector&  ifSlotsReserved() const;
00039    void setIfSlotsReserved(const DtNLengthIntegerVector&);
00041 
00044    DtNLengthIntegerVector&  excludeTheseSlots();
00045    const DtNLengthIntegerVector&  excludeTheseSlots() const;
00046    void setExcludeTheseSlots(const DtNLengthIntegerVector&);
00048 
00049    virtual const char* readerWriterType() const;
00050 
00052    virtual bool operator==(const DtSlotExclusion&) const;
00053    virtual bool operator!=(const DtSlotExclusion&) const;
00054 
00055 protected:
00059 
00063    DtNLengthIntegerVector   myIfSlotsReserved;
00064 
00065 
00070    DtNLengthIntegerVector   myExcludeTheseSlots;
00071 
00073 };
00074 
00075 inline void DtSlotExclusion::setIfSlotsReserved(const DtNLengthIntegerVector& s)
00076 {
00077    myIfSlotsReserved = s;
00078 }
00079 
00080 inline DtNLengthIntegerVector&  DtSlotExclusion::ifSlotsReserved()
00081 {
00082    return myIfSlotsReserved;
00083 }
00084 
00085 inline const DtNLengthIntegerVector&  DtSlotExclusion::ifSlotsReserved() const
00086 {
00087    return myIfSlotsReserved;
00088 }
00089 
00090 inline void DtSlotExclusion::setExcludeTheseSlots(const DtNLengthIntegerVector& s)
00091 {
00092    myExcludeTheseSlots = s;
00093 }
00094 
00095 inline DtNLengthIntegerVector&  DtSlotExclusion::excludeTheseSlots()
00096 {
00097    return myExcludeTheseSlots;
00098 }
00099 
00100 inline const DtNLengthIntegerVector&  DtSlotExclusion::excludeTheseSlots() const
00101 {
00102    return myExcludeTheseSlots;
00103 }
00104 
00105 #endif

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)