VR-Forces 4.0.4 Class Documentation
include/vrfutil/rwForce.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1999 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: rwForce.h,v $ $Revision: 1.11 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00012 
00018 
00019 
00020 #ifndef DtRwForceType_H_
00021 #define DtRwForceType_H_
00022 
00023 #include <vlpi/disEnums.h>
00024 #include "vrfutil/rdrWritr.h"
00025 
00026 class DtReaderWriterRegistry;
00027 
00031 #include "vrfutil/vrfutilDefines.h"
00032 class DT_DLL_vrfutil DtRwForceType : public DtReaderWriter
00033 {
00034 public:
00036    DtRwForceType(const DtString& name = DtString::nullString(),
00037       DtReaderWriterRegistry* parentRegistry = NULL);
00038 
00039    DtRwForceType(const DtSymbolString& name,
00040       DtReaderWriterRegistry* parentRegistry = NULL);
00041 
00042    DtRwForceType(DtForceType forceType, const DtString & name, 
00043       DtReaderWriterRegistry* parentRegistry = NULL);
00044 
00045    DtRwForceType(DtForceType forceType, const DtSymbolString & name, 
00046       DtReaderWriterRegistry* parentRegistry = NULL);
00047 
00049    DtRwForceType(const DtRwForceType & orig);
00050 
00052    DtRwForceType & operator=(const DtRwForceType & orig);
00053 
00055    DtRwForceType& operator=(DtForceType orig);
00056 
00057    virtual ~DtRwForceType();
00058 
00059 
00061 
00063    virtual operator const DtForceType() const;
00064 
00065    virtual int operator==(const DtForceType rhs) const;
00066    virtual int operator!=(const DtForceType rhs) const;
00067 
00068    virtual DtForceType value() const;
00069    virtual void setValue(DtForceType value);
00070 
00071    virtual void putData(FILE* fp, int indentLevel = 0);
00072    virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath,
00073       const DtVariableBindingsList& variableBindings);
00074 
00078    virtual const char* readerWriterType() const;
00079 
00080 protected:
00081    DtForceType myValue;
00082 };
00083 
00084 namespace DtBufferSerialize
00085 {
00087    DT_DLL_vrfutil int getSize(const DtRwForceType& val);
00088 
00094    DT_DLL_vrfutil char *encode(const DtRwForceType& val, char *buffer);
00095 
00101    DT_DLL_vrfutil const char *decode(DtRwForceType &val, const char *buffer) ;
00102 }
00103 
00105 DT_DLL_vrfutil DtString stringFromForceType(DtForceType t);
00106 
00108 DT_DLL_vrfutil DtForceType forceTypeFromString(const DtString&);
00109 
00110 #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)