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