MAK RTIspy API Documentation for HLA Evolved
repIntSent.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2001 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: repIntSent.h,v $ $Revision: 1.9 $ $State: Exp $
00007 *********************************************************************/
00008 #ifdef DtMOM
00009 
00012 
00013 #ifndef DtReportInteractionsSentInteraction_H_
00014 #define DtReportInteractionsSentInteraction_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 DtReportInteractionsSentInteraction;
00023 typedef void (*DtReportInteractionsSentInteractionCb)
00024    (const DtReportInteractionsSentInteraction& inter, void* usr);
00025 
00026 class DT_DLL_LRC DtReportInteractionsSentInteraction :
00027    public DtReportInteraction
00028 {
00029 public:
00030 
00032    DtReportInteractionsSentInteraction();
00033 
00035    virtual ~DtReportInteractionsSentInteraction();
00036 
00038    DtReportInteractionsSentInteraction(
00039       const DtReportInteractionsSentInteraction& orig);
00040  
00042    DtReportInteractionsSentInteraction& operator=(
00043       const DtReportInteractionsSentInteraction& orig);
00044 
00047    virtual const DtPhvps& phvps();
00048 
00051    virtual bool setFromPhvps(const DtPhvps& phvps);
00052    
00054    virtual DtMomTallyList & interactionCounts();
00055    virtual DtMomTallyList const & interactionCounts() const;
00056 
00058    virtual MAKRti::DtTransportType transportationType() const;
00059    virtual void setTransportationType(MAKRti::DtTransportType data);
00060    
00061      
00062 public:
00064    static DtReportInteraction* create();
00065 
00067    static void addCallback(DtMomInterCbMgr* callBackManager,
00068       DtReportInteractionsSentInteractionCb cb, void* usr);
00069    static void removeCallback(DtMomInterCbMgr* callBackManager,
00070       DtReportInteractionsSentInteractionCb cb, void* usr);
00071 
00072 protected:
00075    virtual void encodeInteractionCounts(
00076       const DtMomInteraction& data,
00077       DtPhvps* parameters,
00078       DtParameterHandle parameterHandle);
00079    
00081    virtual void encodeTransportationType(
00082       const DtMomInteraction& data,
00083       DtPhvps* parameters,
00084       DtParameterHandle parameterHandle);
00085    
00088    virtual void decodeInteractionCounts(
00089       DtMomInteraction* data,
00090       const DtPhvps& parameters,
00091       int index);
00092    
00094    virtual void decodeTransportationType(
00095       DtMomInteraction* data,
00096       const DtPhvps& parameters,
00097       int index);
00098    
00099 public:
00100    static const char* theInteractionName;
00101 
00102 protected:
00104    DtMomTallyList myInteractionCounts;
00105    MAKRti::DtTransportType myTransportationType;
00106 
00107    const char *INTERACTION_COUNTS_PARAMETER_NAME;
00108    const char *TRANSPORTATION_TYPE_PARAMETER_NAME;
00109 
00110 };
00111 
00112 #endif
00113 #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)