baseHlaValue.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00008 
00009 #if DtHLA
00010 #ifndef baseHlaValue_H_
00011 #define baseHlaValue_H_
00012 
00013 #include "lgrHlaAttribute.h"
00014 #include <vlutil/vlString.h>
00015 
00016 namespace MAKLogger
00017 {
00018    enum DtLgrFomTransportType
00019    {
00020       DtLgr_BestEffort = 0,
00021       DtLgr_Reliable   = 1
00022    };
00023 
00024    enum DtLgrFomOrderType
00025    {
00026       DtLgr_Receive   = 0,
00027       DtLgr_TimeStamp = 1
00028    };
00029 
00030    enum DtLgrBaseFomDescFlags
00031    {
00032       DtLgrFomDesc_None          = 0x00000000,
00033       DtLgrFomDesc_Reliable      = 0x00000001,
00034       DtLgrFomDesc_TransportMask = 0x00000003,
00035       DtLgrFomDesc_TimeStamp     = 0x00000004,
00036       DtLgrFomDesc_OrderMask     = 0x0000000C,
00037       DtLgrFomDesc_IsBaseClass   = 0x00000010,
00038       DtLgrFomDesc_IsSubscribed  = 0x00000020,
00039       DtLgrFomDesc_IsFiltered    = 0x00000040,
00040       DtLgrFomDesc_InternalMask  = 0x7FFFFFF0
00041    };
00042 
00047    class DT_DLL_LGRSIM DtBaseHlaValue
00048    {
00049    public:
00050       DtBaseHlaValue(const DtString& name,DtLgrHlaHandle handle);
00051 
00052       virtual ~DtBaseHlaValue();
00053 
00054       DtBaseHlaValue(const DtBaseHlaValue& value);
00055       DtBaseHlaValue& operator=(const DtBaseHlaValue& value);
00056 
00058       inline DtU32 flags() const;
00059 
00061       inline void setFlags(DtU32);
00062 
00063       const DtString& name() const;
00064       void setName(const DtString& name);
00065       inline const char* name2print() const;
00066 
00067       inline DtLgrHlaHandle handle() const;
00068       void setHandle(DtLgrHlaHandle handle);
00069 
00070    private:
00071 
00073       DtU32 myFlags;
00074 
00075       DtString myName;
00076       DtLgrHlaHandle myHandle;
00077    };
00078 
00079    inline const char* DtBaseHlaValue::name2print() const
00080    {
00081       return name().c_str();
00082    }
00083 
00084    inline DtLgrHlaHandle DtBaseHlaValue::handle() const
00085    {
00086       return myHandle;
00087    }
00088 
00089    inline DtU32 DtBaseHlaValue::flags() const
00090    {
00091       return myFlags;
00092    }
00093 
00094    inline void DtBaseHlaValue::setFlags(DtU32 flags)
00095    {
00096       myFlags = flags;
00097    }
00098 }
00099 
00100 #endif
00101 #endif

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)