VR-Forces 4.0.4 Class Documentation
include/vrfutil/rwAggregateState.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2008 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: rwAggregateState.h,v $ $Revision: 1.2 $ $State: Exp $
00007 *******************************************************************************/
00008 
00011 
00013 
00014 #ifndef rwAggregateState_H_
00015 #define rwAggregateState_H_
00016 
00017 #include <vlpi/disEnums.h>
00018 #include "vrfutil/rdrWritr.h"
00019 
00020 class DtReaderWriterRegistry;
00021 
00022 #include "vrfutil/vrfutilDefines.h"
00023 class DT_DLL_vrfutil DtRwAggregateState : public DtReaderWriter
00024 {
00025 public:
00027    DtRwAggregateState(const DtString& name = DtString::nullString(),
00028       DtReaderWriterRegistry* parentRegistry = NULL);
00029 
00030    DtRwAggregateState(const DtSymbolString& name,
00031       DtReaderWriterRegistry* parentRegistry = NULL);
00032 
00033    DtRwAggregateState(enum DtAggregateState aggregateMode, const DtString & name, 
00034       DtReaderWriterRegistry* parentRegistry = NULL);
00035 
00036    DtRwAggregateState(enum DtAggregateState aggregateMode, const DtSymbolString & name, 
00037       DtReaderWriterRegistry* parentRegistry = NULL);
00038 
00040    DtRwAggregateState(const DtRwAggregateState & orig);
00041 
00043    DtRwAggregateState & operator=(const DtRwAggregateState & orig);
00044 
00046    DtRwAggregateState& operator=(enum DtAggregateState orig);
00047 
00048    virtual ~DtRwAggregateState();
00049 
00050 
00052 
00054    virtual operator const enum DtAggregateState() const;
00055 
00056    virtual int operator==(const enum DtAggregateState rhs) const;
00057    virtual int operator!=(const enum DtAggregateState rhs) const;
00058 
00059    virtual enum DtAggregateState value() const;
00060    virtual void setValue(enum DtAggregateState value);
00061 
00062    virtual void putData(FILE* fp, int indentLevel = 0);
00063    virtual DtlObjPtr getData(DtlObjPtr args, const DtFilename& searchPath,
00064       const DtVariableBindingsList& variableBindings);
00065 
00070    virtual const char* readerWriterType() const;
00071 
00072 protected:
00073    enum DtAggregateState myValue;
00074 };
00075 
00076 namespace DtBufferSerialize
00077 {
00079    DT_DLL_vrfutil int getSize(const DtRwAggregateState& val);
00080 
00086    DT_DLL_vrfutil char* encode(const DtRwAggregateState& val, char *buffer);
00087 
00093    DT_DLL_vrfutil const char *decode(DtRwAggregateState &val, const char *buffer) ;
00094 }
00095 
00097 DT_DLL_vrfutil DtString stringFromAggregateMode(enum DtAggregateState t);
00098 
00100 DT_DLL_vrfutil enum DtAggregateState aggregateModeFromString(const DtString&);
00101 
00102 #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)