MAK RTIspy API Documentation for HLA Evolved
msgHeaderReader.h
Go to the documentation of this file.
00001 /*********************************************************************
00002 ** Copyright (c) 2010 MaK Technologies, Inc.
00003 ** All rights reserved.
00004 *********************************************************************/
00005 /*********************************************************************
00006 ** $RCSfile: msgHeaderReader.h,v $ $Revision: 1.21 $ $State: Exp $
00007 *********************************************************************/
00008 
00011 
00012 #ifndef DtMsgHeaderReader_H_
00013 #define DtMsgHeaderReader_H_
00014 
00015 #include "rtiMsConfig.h"
00016 
00017 #ifndef _WIN32
00018 #include <sys/types.h>
00019 #endif
00020 
00025 class DT_DLL_RTIUTIL DtMsgHeaderReader
00026 {
00027 public:
00028 
00029    virtual ~DtMsgHeaderReader() {};
00030 
00032    virtual bool isBundled(const char* msg, size_t size) const = 0;
00033 
00035    virtual void setBundled(char* msg, size_t size, bool bundled) const = 0;
00036 
00038    virtual bool isCompressed(const char* msg, size_t size) const = 0;
00039 
00041    virtual void setCompressed(char* msg, size_t size, bool compressed) const = 0;
00042 
00044    virtual bool hasMetadata(const char* msg, size_t size) const = 0;
00045 
00048    virtual bool getMessageHeader(char* msg, size_t size,
00049       char** hdr, size_t& hdrSize) const = 0;
00050 
00053    virtual bool getMessageBody(char* msg, size_t size,
00054       char** body, size_t& bodySize) const = 0;
00055 
00058    virtual bool getMessageTrailer(char* msg, size_t size,
00059       char** trlr, size_t& trlrSize) const = 0;
00060 
00062    virtual size_t messageSize(const char* msg, size_t size) const  = 0;
00063 
00065    virtual void setMessageSize(char* msg, size_t size, size_t newSize) const = 0;
00066 
00068    virtual size_t bytesForSize() const = 0;
00069 
00070 };
00071 
00072 #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)