activemq-cpp-3.9.5
BooleanStream.h
Go to the documentation of this file.
1
17
18#ifndef _ACTIVEMQ_WIREFORMAT_OPENWIRE_UTILS_BOOLEANSTREAM_H_
19#define _ACTIVEMQ_WIREFORMAT_OPENWIRE_UTILS_BOOLEANSTREAM_H_
20
24
25namespace activemq{
26namespace wireformat{
27namespace openwire{
28namespace utils{
29
50 private:
51
52 // Internal Buffer of data
53 std::vector<unsigned char> data;
54
55 // Limit on buffer size
56 short arrayLimit;
57
58 // Byte we are on from the buffer
59 short arrayPos;
60
61 // Bit we are on in the byte we are on from the buffer
62 unsigned char bytePos;
63
64 public:
65
67
68 virtual ~BooleanStream();
69
78
85 void writeBoolean( bool value );
86
94
101 void marshal( std::vector< unsigned char >& dataOut );
102
110
114 void clear();
115
121
122 };
123
124}}}}
125
126#endif /*_ACTIVEMQ_WIREFORMAT_OPENWIRE_UTILS_BOOLEANSTREAM_H_*/
#define AMQCPP_API
Definition Config.h:30
void clear()
Clears to old position markers, data starts at the beginning.
void writeBoolean(bool value)
Writes a Boolean value to the internal data buffer.
bool readBoolean()
Read a boolean data element from the internal data buffer.
void unmarshal(decaf::io::DataInputStream *dataIn)
Unmarshal a Boolean data stream from the Input Stream.
void marshal(decaf::io::DataOutputStream *dataOut)
Marshal the data to a DataOutputStream.
int marshalledSize()
Calc the size that data is marshalled to.
void marshal(std::vector< unsigned char > &dataOut)
Marshal the data to a STL vector of unsigned chars.
A data input stream lets an application read primitive Java data types from an underlying input strea...
Definition DataInputStream.h:46
A data output stream lets an application write primitive Java data types to an output stream in a por...
Definition DataOutputStream.h:34
Definition BooleanStream.h:28
Definition BaseDataStreamMarshaller.h:30
Definition BaseDataStructure.h:28
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition CachedConsumer.h:24