VR-Forces 4.0.4 Class Documentation
include/vrfutil/nLenIntVec.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1999 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: nLenIntVec.h,v $ $Revision: 1.11 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00017 
00018 #ifndef DtNLengthIntegerVector_H_
00019 #define DtNLengthIntegerVector_H_
00020 
00021 #include <vlutil/vlMachineTypes.h>
00022 #include "vrfutil/rdrWritr.h"
00023 
00024 class DtReaderWriterRegistry;
00025 
00030 
00031 #include "vrfutil/vrfutilDefines.h"
00032 class DT_DLL_vrfutil DtNLengthIntegerVector : public DtReaderWriter
00033 {
00034 public:
00036    DtNLengthIntegerVector();
00037 
00039    DtNLengthIntegerVector(const DtString& name, DtReaderWriterRegistry* 
00040       parentRegistry = NULL);
00041    DtNLengthIntegerVector(const DtSymbolString& name, DtReaderWriterRegistry* 
00042       parentRegistry = NULL);
00043 
00045    DtNLengthIntegerVector(const DtNLengthIntegerVector& orig,
00046       DtReaderWriterRegistry* parentRegistry = NULL);
00047 
00049    const DtNLengthIntegerVector& operator=(const DtNLengthIntegerVector& orig);
00050 
00051    virtual ~DtNLengthIntegerVector();
00052 
00053    virtual DtNLengthIntegerVector* clone(DtReaderWriterRegistry* 
00054       parentRegistry = NULL) const;
00055 
00057    virtual void setVectorLength(int length);
00058    virtual int vectorLength() const;
00059 
00060    virtual int& operator[] (const int i);
00061    virtual int value(const int i) const;
00062 
00063    virtual void putData(FILE * fp, int indentLevel = 0);
00064    virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath,
00065       const DtVariableBindingsList& variableBindings);
00066 
00067    virtual void copyVector(const DtNLengthIntegerVector & vector);
00068 
00072    virtual const char* readerWriterType() const;
00073 
00075    virtual bool operator==(const DtNLengthIntegerVector&) const;
00076    virtual bool operator!=(const DtNLengthIntegerVector&) const;
00077 
00078 protected:
00079    int* myIntegers;
00080    int  myVectorLength;
00081 };
00082 
00083 #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)