pduDescriptor.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright (c) 1992-2010 VT MAK
00003 ** All rights reserved.
00004 ******************************************************************************/
00005 
00008 
00009 #ifndef pduDescriptor_H_
00010 #define pduDescriptor_H_
00011 
00012 #if DtDIS
00013 
00014 #include "lgrSim.h"
00015 #include <vlutil/vlString.h>
00016 
00017 namespace MAKLogger
00018 {
00019    class DtDisDescriptor;
00020 
00023    class DT_DLL_LGRSIM DtPduDescriptor
00024    {
00025    public:
00027       DtPduDescriptor( DtDisDescriptor* disObj, const DtString& name, DtU32 kind,
00028          int _enIdOff, int _typeOff );
00029 
00031       DtPduDescriptor( DtDisDescriptor* disObj, const char* bfr, int bsz,
00032          int& pduSize );
00033 
00035       virtual ~DtPduDescriptor();
00036 
00038       DtPduDescriptor( const DtPduDescriptor& src );
00039 
00041       DtPduDescriptor& operator=( const DtPduDescriptor& src );
00042 
00043 
00044    public:
00046       inline const DtString& name() const;
00047 
00049       inline DtU32 kind() const;
00050 
00052       inline void setEntityIdOffset( int off );
00053       inline int entityIdOffset() const;
00054 
00056       inline void setEntityTypeOffset( int off );
00057       inline int entityTypeOffset() const;
00058 
00060       inline void setIsFilteredPdu( bool onOff );
00062       inline bool isFilteredPdu() const;
00063 
00074       int  serialize( char* bfr, int bsz );
00075 
00076    protected:
00077       DtU32 myKind;
00078       bool myFilteredFlag;
00079       DtString myName;
00080       int myNameIndex;
00081       int myEntityIdOff;
00082       int myEntityTypeOff;
00083       DtDisDescriptor* myDisObject;
00084    };
00085 
00086 
00087    inline const DtString& DtPduDescriptor::name() const
00088    {
00089       return myName;
00090    }
00091 
00092 
00093    inline DtU32 DtPduDescriptor::kind() const
00094    {
00095       return myKind;
00096    }
00097 
00098 
00099    inline void DtPduDescriptor::setEntityIdOffset( int off )
00100    {
00101       myEntityIdOff = off;
00102    }
00103 
00104 
00105    inline int DtPduDescriptor::entityIdOffset() const
00106    {
00107       return myEntityIdOff;
00108    }
00109 
00110 
00111    inline void DtPduDescriptor::setEntityTypeOffset( int off )
00112    {
00113       myEntityTypeOff = off;
00114    }
00115 
00116 
00117    inline int DtPduDescriptor::entityTypeOffset() const
00118    {
00119       return myEntityTypeOff;
00120    }
00121 
00122 
00123    inline void DtPduDescriptor::setIsFilteredPdu( bool onOff )
00124    {
00125       myFilteredFlag = onOff;
00126    }
00127 
00128 
00129    inline bool DtPduDescriptor::isFilteredPdu() const
00130    {
00131       return myFilteredFlag;
00132    }
00133 
00134 }
00135 
00136 #endif
00137 #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)