MAK RTIspy API Documentation for HLA 1.3
assistantMsgHeaderReader.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2010 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: assistantMsgHeaderReader.h,v $ $Revision: $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DtAssistantMsgHeaderReader_H_
00013 #define DtAssistantMsgHeaderReader_H_
00014 
00015 #include <msgHeaderReader.h>
00016 
00020 class DT_DLL_ASSISTANT DtAssistantMsgHeaderReader : public DtMsgHeaderReader
00021 {
00022 public:
00023 
00024    DtAssistantMsgHeaderReader();
00025 
00026    virtual ~DtAssistantMsgHeaderReader();
00027 
00029    virtual bool isBundled(const char* msg, size_t size) const;
00030 
00032    virtual void setBundled(char* msg, size_t size, bool bundled) const;
00033 
00035    virtual bool isCompressed(const char* msg, size_t size) const;
00036 
00038    virtual void setCompressed(char* msg, size_t size, bool compressed) const;
00039 
00041    virtual bool hasMetadata(const char* msg, size_t size) const;
00042 
00045    virtual bool getMessageHeader(char* msg, size_t size,
00046       char** hdr, size_t& hdrSize) const;
00047 
00050    virtual bool getMessageBody(char* msg, size_t size,
00051       char** body, size_t& bodySize) const;
00052 
00055    virtual bool getMessageTrailer(char* msg, size_t size,
00056       char** trlr, size_t& trlrSize) const;
00057 
00059    virtual size_t messageSize(const char* msg, size_t size) const;
00060 
00062    virtual void setMessageSize(char* msg, size_t size, size_t newSize) const;
00063 
00065    virtual size_t bytesForSize() const;
00066 
00067 protected:
00068 
00070    size_t myBytesForSize;
00071 
00073    size_t myBytesForHeader;
00074 
00075 };
00076 
00077 #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)