VR-Link API Documentation for DIS
genericSR.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 *********************************************************************/
00005 
00006 
00009 
00010 #ifndef DtGenericStateRepository_H_
00011 #define DtGenericStateRepository_H_
00012 
00013 #if DtHLA
00014 
00015 #include "stateRep.h"
00016 
00017 
00022 class DT_DLL_VL DtGenericStateRepository : public DtStateRepository
00023 {
00024 public:
00025 
00027    DtGenericStateRepository();
00028 
00030    virtual ~DtGenericStateRepository();
00031 
00033    DtGenericStateRepository(const DtGenericStateRepository& orig);
00034 
00036    DtGenericStateRepository& operator=(
00037       const DtGenericStateRepository& orig);
00038 
00040    virtual void setValue(RTI::AttributeHandle handle, 
00041       const void* buffer, int size);
00042 
00045    virtual void* value(RTI::AttributeHandle handle) const;
00046 
00049    virtual int valueLength(RTI::AttributeHandle handle) const;
00050 
00052    virtual DtStateRepository* clone(bool copy = false) const; 
00053 
00055    virtual void printData() const;
00056 
00058    virtual void printDataToStream(std::ostream& stream) const;
00059 
00060 
00062 #if DtHLA_1516
00063    RTI::AttributeHandleValueMap& attrs();
00064 #else
00065    RTI::AttributeHandleValuePairSet*& attrs();
00066 #endif
00067 
00068 public:
00069 
00070    static DtStateRepository* create(); 
00071 
00072 protected:
00073 
00074 #if DtHLA_1516
00075    RTI::AttributeHandleValueMap myAttrs;
00076 #else
00077    RTI::AttributeHandleValuePairSet* myAttrs;
00078 #endif
00079 };
00080 
00081 #endif
00082 #endif
00083 

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)