OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimJpipMessage.h
Go to the documentation of this file.
1 /*********************************************************************************************
2  *
3  * License: MIT Please see the top level LICENSE.txt
4  *
5  * Author: Garrett Potts
6  *
7  *********************************************************************************************/
8 #ifndef ossimJpipMessage_HEADER
9 #define ossimJpipMessage_HEADER
12 #include <ossim/base/ossimRefPtr.h>
14 #include <vector>
16 {
17 public:
18  typedef std::vector<ossim_uint8> MessageBodyType;
19 
21  void reset();
22  void setHeaderLength(ossim_uint64 length){m_headerLength = length;}
23  ossimJpipMessageHeader* header(){return m_header.get();}
24  const ossimJpipMessageHeader* header()const{return m_header.get();}
25  MessageBodyType& messageBody(){return m_messageBody;}
26  const MessageBodyType& messageBody()const{return m_messageBody;}
27  void dumpBodyAsHex(std::ostream& out)const;
28  void dumpBodyAsText(std::ostream& out)const;
29 
30 protected:
34 };
35 
36 #endif
MessageBodyType m_messageBody
ossimReferenced allows for shared object ref counting if the reference count ever gets to 0 or less i...
ossimJpipMessageHeader * header()
MessageBodyType & messageBody()
unsigned long long ossim_uint64
std::vector< ossim_uint8 > MessageBodyType
const MessageBodyType & messageBody() const
void setHeaderLength(ossim_uint64 length)
#define OSSIM_DLL
ossimRefPtr< ossimJpipMessageHeader > m_header
ossim_uint64 m_headerLength
const ossimJpipMessageHeader * header() const
std::basic_ostream< char > ostream
Base class for char output streams.
Definition: ossimIosFwd.h:23