MAK RTIspy API Documentation for HLA 1.3
repObjOwned.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2001 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: repObjOwned.h,v $ $Revision: 1.9 $ $State: Exp $
00007 *********************************************************************/
00008 #ifdef DtMOM
00009 
00012 
00013 #ifndef DtReportObjectsOwnedInteraction_H_
00014 #define DtReportObjectsOwnedInteraction_H_
00015 
00016 #include "rtiMsConfig.h"
00017 #include "internalTypes.h"
00018 #include "mInteraction.h"
00019 #include <vlutil/vlList.h>
00020 
00021 class DtMomInterCbMgr;
00022 class DtReportObjectsOwnedInteraction;
00023 typedef void (*DtReportObjectsOwnedInteractionCb)
00024    (const DtReportObjectsOwnedInteraction& inter, void* usr);
00025 
00026 class DT_DLL_LRC DtReportObjectsOwnedInteraction :
00027    public DtReportInteraction
00028 {
00029 public:
00030 
00032    DtReportObjectsOwnedInteraction();
00033 
00035    virtual ~DtReportObjectsOwnedInteraction();
00036 
00038    DtReportObjectsOwnedInteraction(
00039       const DtReportObjectsOwnedInteraction& orig);
00040  
00042    DtReportObjectsOwnedInteraction& operator=(
00043       const DtReportObjectsOwnedInteraction& orig);
00044 
00047    virtual const DtPhvps& phvps();
00048 
00051    virtual bool setFromPhvps(const DtPhvps& phvps);
00052 
00054    virtual DtMomTallyList const& objectCounts() const;
00055    virtual DtMomTallyList & objectCounts();
00056      
00057 public:
00059    static DtReportInteraction* create();
00060 
00062    static void addCallback(DtMomInterCbMgr* callBackManager,
00063       DtReportObjectsOwnedInteractionCb cb, void* usr);
00064    static void removeCallback(DtMomInterCbMgr* callBackManager,
00065       DtReportObjectsOwnedInteractionCb cb, void* usr);
00066 
00067 protected:
00068 
00073    virtual void encodeObjectCounts(
00074       const DtMomInteraction& data,
00075       DtPhvps* parameters,
00076       DtParameterHandle parameterHandle);
00077    
00079    virtual void decodeObjectCounts(
00080       DtMomInteraction* data,
00081       const DtPhvps& parameters,
00082       int index);
00083    
00084 public:
00085    static const char* theInteractionName;
00086 
00087 protected:
00089    DtMomTallyList myObjectCounts;
00090 
00091    const char *OBJECT_COUNTS_PARAMETER_NAME;
00092 
00093 };
00094 
00095 #endif
00096 #endif

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)