MAK RTIspy API Documentation for HLA Evolved
rtiMsgHeaderReader.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2010 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: rtiMsgHeaderReader.h,v $ $Revision: 1.21 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DtRtiMsgHeaderReader_H_
00013 #define DtRtiMsgHeaderReader_H_
00014 
00015 #include <msgHeaderReader.h>
00016 
00019 class DT_DLL_LRC DtRtiMsgHeaderReader : public DtMsgHeaderReader
00020 {
00021 public:
00022 
00023    DtRtiMsgHeaderReader();
00024 
00025    virtual ~DtRtiMsgHeaderReader();
00026 
00028    virtual bool isBundled(const char* msg, size_t size) const;
00029 
00031    virtual void setBundled(char* msg, size_t size, bool bundled) const;
00032 
00034    virtual bool isCompressed(const char* msg, size_t size) const;
00035 
00037    virtual void setCompressed(char* msg, size_t size, bool compressed) const;
00038 
00040    virtual bool hasMetadata(const char* msg, size_t size) const;
00041 
00044    virtual bool getMessageHeader(char* msg, size_t size,
00045       char** hdr, size_t& hdrSize) const;
00046 
00049    virtual bool getMessageBody(char* msg, size_t size,
00050       char** body, size_t& bodySize) const;
00051 
00054    virtual bool getMessageTrailer(char* msg, size_t size,
00055       char** trlr, size_t& trlrSize) const;
00056 
00058    virtual size_t messageSize(const char* msg, size_t size) const;
00059 
00061    virtual void setMessageSize(char* msg, size_t size, size_t newSize) const;
00062 
00064    virtual size_t bytesForSize() const;
00065 
00066 protected:
00067 
00069    size_t myBytesForSize;
00070 
00072    size_t myBytesForHeader;
00073 
00074 };
00075 
00076 #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)