activemq-cpp-3.9.5
DataOutput.h
Go to the documentation of this file.
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#ifndef _DECAF_IO_DATAOUTPUT_H_
19#define _DECAF_IO_DATAOUTPUT_H_
20
21#include <decaf/util/Config.h>
22
23#include <vector>
24#include <string>
25
30
31namespace decaf {
32namespace io {
33
48 public:
49
50 virtual ~DataOutput();
51
63 virtual void writeBoolean(bool value) = 0;
64
75 virtual void writeByte(unsigned char value) = 0;
76
87 virtual void writeShort(short value) = 0;
88
97 virtual void writeUnsignedShort(unsigned short value) = 0;
98
109 virtual void writeChar(char value) = 0;
110
121 virtual void writeInt(int value) = 0;
122
133 virtual void writeLong(long long value) = 0;
134
147 virtual void writeFloat(float value) = 0;
148
161 virtual void writeDouble(double value) = 0;
162
177 virtual void writeBytes(const std::string& value) = 0;
178
191 virtual void writeChars(const std::string& value) = 0;
192
206 virtual void writeUTF(const std::string& value) = 0;
207
208 };
209
210}}
211
212#endif /* _DECAF_IO_DATAOUTPUT_H_ */
The DataOutput interface provides for converting data from any of the C++ primitive types to a series...
Definition DataOutput.h:47
virtual void writeChars(const std::string &value)=0
Writes a string to the underlying output stream as a sequence of characters.
virtual void writeLong(long long value)=0
Writes an 64 bit long to the underlying output stream as eight bytes, high byte first.
virtual void writeBytes(const std::string &value)=0
Writes out the string to the underlying output stream as a sequence of bytes.
virtual void writeChar(char value)=0
Writes out a char to the underlying output stream as a one byte value If no exception is thrown,...
virtual void writeFloat(float value)=0
Converts the float argument to an int using the floatToIntBits method in class Float,...
virtual void writeShort(short value)=0
Writes a short to the underlying output stream as two bytes, high byte first.
virtual void writeUnsignedShort(unsigned short value)=0
Writes a unsigned short to the bytes message stream as a 2 byte value.
virtual void writeByte(unsigned char value)=0
Writes out a byte to the underlying output stream as a 1-byte value.
virtual void writeDouble(double value)=0
Converts the double argument to a long using the doubleToLongBits method in class Double,...
virtual void writeBoolean(bool value)=0
Writes a boolean to the underlying output stream as a 1-byte value.
virtual void writeInt(int value)=0
Writes an int to the underlying output stream as four bytes, high byte first.
virtual void writeUTF(const std::string &value)=0
Writes out the string to the underlying output stream as a modeified UTF-8 encoded sequence of bytes.
#define DECAF_API
Definition Config.h:29
Definition BlockingByteArrayInputStream.h:25
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition AprPool.h:25