VR-Link API Documentation for DIS
hLetHeader.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 * ** Copyright (c) 2011 VT MAK
00003 * ** All rights reserved.
00004 * *********************************************************************/
00005 /*********************************************************************
00006 * ** $RCSfile: hLetHeader.h,v $ $Revision: 1.1 $ $State: Exp $
00007 * *********************************************************************/
00008 
00009 #ifdef DtHLA
00010 
00011 #ifndef LetHeader_H_
00012 #define LetHeader_H_
00013 
00014 
00015 #include <vl/Link16Structs.h>
00016 #include <ostream>
00017 #include <vector>
00018 #include <vlutil/vlNetTypes.h>
00019 
00020 class DT_DLL_VL DtLetHeader
00021 {
00022 public:
00023 
00025    DtLetHeader();
00026 
00028    virtual ~DtLetHeader();
00029 
00031    DtLetHeader(const DtLetHeader& orig);
00032 
00034    DtLetHeader& operator=(const DtLetHeader& orig);
00035 
00036    virtual void printData() const;
00037    virtual void printDataToStream(std::ostream& stream) const;
00038 
00040 
00041    virtual void setLetIdSymbol(DtU8 val);
00042    virtual DtU8 letIdSymbol() const;
00043    static DtU8 maxLetIdSymbol() { return 0xf; };
00045 
00047 
00048    virtual void setRelayTransmissionIndicator(bool val);
00049    virtual bool relayTransmissionIndicator() const;
00051 
00053 
00054    virtual void setLetMsgPackingType(DtU8 val);
00055    virtual DtU8 letMsgPackingType() const;
00056    static DtU8 maxLetMsgPackingType() { return 0xf; };
00058 
00060 
00061    virtual void setSourceTrackNumOfSender(DtU16 val);
00062    virtual DtU16 sourceTrackNumOfSender() const;
00063    static DtU16 maxSourceTrackNumOfSender() { return 0x7fff; };
00065 
00067 
00068    virtual void setSdusn(DtU16 val);
00069    virtual DtU16 sdusn() const;
00071 
00073 
00074    virtual void setRawData(const DtLetHeaderStruct& data);
00075    virtual const DtLetHeaderStruct& rawData() const;
00077 
00078    static DtU32 rawDataSize() { return DtLetHeaderSize; }
00079 
00080 protected:
00081 
00083    virtual void convertToRawData();
00084 
00086    virtual void convertToFields();
00087 
00089 
00090    DtU8  myLetIdSymbol;
00091    bool  myRelayTransmissionIndicator;
00092    DtU8  myLetMsgPackingType;
00093    DtU16 mySourceTrackNum;
00094    DtU16 mySdusn;
00096 
00098    DtLetHeaderStruct myRawData;
00099 };
00100 
00101 DT_DLL_VL std::ostream & operator << (std::ostream &str, const DtLetHeader &hdr);
00102 
00103 #endif
00104 #endif

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)