OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
ossimJpipMessageHeader.h
Go to the documentation of this file.
1 /*********************************************************************************************
2  *
3  * ossimJpipMessage was modified from the oiginal source found in a JAVA based framework called
4  *
5  * CADI Software - a JPIP Client/Server framework
6  *
7  *********************************************************************************************/
8 #ifndef ossimJpipMessageHeader_HEADER
9 #define ossimJpipMessageHeader_HEADER
11 #include <ossim/base/ossimString.h>
12 #include <sstream>
13 
15 {
16 public:
18  :m_isLastByte(true),
19  m_inClassIdentifier(-1),
20  m_classIdentifier(-1),
21  m_CSn(-1),
22  m_msgOffset(-1),
23  m_msgLength(-1),
24  m_aux(-1),
25  m_isEOR(false),
26  m_EORCode(-1),
27  m_EORReasonMessage("")
28  {
29 
30  }
31  void reset()
32  {
33  m_isLastByte = true;
34  m_inClassIdentifier = -1;
35  m_classIdentifier = -1;
36  m_CSn = -1;
37  m_msgOffset = -1;
38  m_msgLength = -1;
39  m_aux = -1;
40  m_isEOR = false;
41  m_EORCode = -1;
42  m_EORReasonMessage = "";
43  }
45  {
47 
48  out << "m_isLastByte: " << ossimString::toString(m_isLastByte) << "\n"
49  << "m_inClassIdentifier: " << m_inClassIdentifier << "\n"
50  << "m_classIdentifier: " << m_classIdentifier << "\n"
51  << "m_CSn: " << m_CSn << "\n"
52  << "m_msgOffset: " << m_msgOffset << "\n"
53  << "m_msgLength: " << m_msgLength << "\n"
54  << "m_aux: " << m_aux << "\n"
55  << "m_isEOR: " << m_isEOR << "\n"
56  << "m_EORCode: " << m_EORCode << "\n"
57  << "m_EORReasonMessage: " << m_EORReasonMessage << "\n";
58 
59  return ossimString(out.str());
60  }
61 
111  bool m_isLastByte; // completeDataBin better???
113 
177 
187 
194 
201 
211 
215  bool m_isEOR;
216 
222  int m_EORCode; // <<<<<<<<<< NOTICE: the inClassIdentifier could be used as a EORCode >>>>>>>>>>
223 
230 
231 };
232 
233 #endif
234 
ossim_int64 m_msgOffset
Identifies the offset of the data in the message from the start of the data-bin.
std::basic_ostringstream< char > ostringstream
Class for char output memory streams.
Definition: ossimIosFwd.h:35
ossimString toString() const
ossimReferenced allows for shared object ref counting if the reference count ever gets to 0 or less i...
static ossimString toString(bool aValue)
Numeric to string methods.
ossimString m_EORReasonMessage
It is and reason message associated with the EORReasonCode.
ossim_int32 m_CSn
If present, identifies the index (stating from 0) of the codestream to which the data-bin belongs...
int m_EORCode
Definition in CADI.Common.Network.JPIP.EORCodes.
bool m_isEOR
Indicates if this JPIP Message is an End of Response Message.
bool m_isLastByte
Bin-ID = [BinIdIndicator, completeDataBin, InClassIdentifier].
#define OSSIM_DLL
ossim_int64 m_msgLength
Identifies the total number of bytes in the body of the message.
ossim_int64 m_aux
If present, it represents a non-negative integer value, formed by concatenating the least significant...
long long ossim_int64
ossim_int32 m_classIdentifier
If present, provides a message class identifier.
int ossim_int32