baseParam13.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00008 
00009 
00010 #ifndef baseParam13_H_
00011 #define baseParam13_H_
00012 
00013 #if DtHLA & !DtHLA_1516
00014 
00015 #include "RTI.hh"
00016 #include "baseHlaValue.h"
00017 
00018 class DtString;
00019 
00020 namespace MAKLogger
00021 {
00022 
00023 
00024    class DtBaseFomDesc;
00025    class DtBaseInterClassDesc;
00026 
00029    class DT_DLL_LGRSIM DtBaseParamDesc : public DtBaseHlaValue
00030    {
00031    public:
00033       DtBaseParamDesc( const DtString& name,DtLgrHlaHandle handle );
00034 
00036       virtual ~DtBaseParamDesc();
00037 
00039       DtBaseParamDesc( const DtBaseParamDesc& src );
00040 
00042       DtBaseParamDesc& operator=( const DtBaseParamDesc& src );
00043 
00044    public:
00045 
00047       RTI::AttributeHandle rtiHandle(const DtLgrOnlineFomDesc&) const;
00048 
00050       inline bool isSubscribedTo() const;
00051 
00053       inline void setIsSubscribedTo( bool onOff );
00054 
00055       inline bool isReliable() const;
00056       inline void setIsReliable(bool reliable);
00057 
00058       inline bool isTimeStamped() const;
00059       inline void setTimeStamped(bool timeStamped);
00060 
00063       inline DtLgrFomTransportType transportType() const;
00064 
00067       inline DtLgrFomOrderType orderType() const;      
00068    };
00069 
00070 
00071    inline bool DtBaseParamDesc::isSubscribedTo() const
00072    {
00073       return ( ( flags() & DtLgrFomDesc_IsSubscribed ) != 0 );
00074    }
00075 
00076 
00077    inline void DtBaseParamDesc::setIsSubscribedTo( bool onOff )
00078    {
00079       if ( onOff )
00080       {
00081          setFlags(flags() | DtLgrFomDesc_IsSubscribed );
00082       }
00083       else
00084       {
00085          setFlags(flags() & ~DtLgrFomDesc_IsSubscribed);
00086       }
00087    }
00088 
00089 
00090    inline DtLgrFomTransportType DtBaseParamDesc::transportType() const
00091    {
00092       if ( ( flags() & DtLgrFomDesc_Reliable ) != 0 )
00093       {
00094          return DtLgr_Reliable;
00095       }
00096       else
00097       {
00098          return DtLgr_BestEffort;
00099       }
00100    }
00101 
00102 
00103    inline DtLgrFomOrderType DtBaseParamDesc::orderType() const
00104    {
00105       if ( ( flags() & DtLgrFomDesc_TimeStamp ) != 0 )
00106       {
00107          return DtLgr_TimeStamp;
00108       }
00109       else
00110       {
00111          return DtLgr_Receive;
00112       }
00113    }
00114 }
00115 
00116 #endif   //! !DtHLA_1516 &  DtHLA
00117 #endif   //! DtBaseParamDesc13_H_

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)