activemq-cpp-3.6.0
Main Page
Namespaces
Data Structures
Files
File List
Globals
BufferFactory.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_INTERNAL_NIO_BUFFERFACTORY_H_
19
#define _DECAF_INTERNAL_NIO_BUFFERFACTORY_H_
20
21
#include <
decaf/nio/ByteBuffer.h
>
22
#include <
decaf/nio/CharBuffer.h
>
23
#include <
decaf/nio/DoubleBuffer.h
>
24
#include <
decaf/nio/FloatBuffer.h
>
25
#include <
decaf/nio/LongBuffer.h
>
26
#include <
decaf/nio/IntBuffer.h
>
27
#include <
decaf/nio/ShortBuffer.h
>
28
29
#include <
decaf/lang/exceptions/IndexOutOfBoundsException.h
>
30
31
namespace
decaf{
32
namespace
internal{
33
namespace
nio{
34
41
class
DECAF_API
BufferFactory
{
42
public
:
43
44
virtual
~BufferFactory
() {}
45
57
static
decaf::nio::ByteBuffer
* createByteBuffer(
int
capacity );
58
82
static
decaf::nio::ByteBuffer
* createByteBuffer(
83
unsigned
char
* buffer,
int
size,
int
offset,
int
length );
84
100
static
decaf::nio::ByteBuffer
* createByteBuffer( std::vector<unsigned char>& buffer );
101
113
static
decaf::nio::CharBuffer
* createCharBuffer(
int
capacity );
114
138
static
decaf::nio::CharBuffer
* createCharBuffer(
char
* buffer,
int
size,
int
offset,
int
length );
139
155
static
decaf::nio::CharBuffer
* createCharBuffer( std::vector<char>& buffer );
156
168
static
decaf::nio::DoubleBuffer
* createDoubleBuffer(
int
capacity );
169
193
static
decaf::nio::DoubleBuffer
* createDoubleBuffer(
double
* buffer,
int
size,
int
offset,
int
length );
194
210
static
decaf::nio::DoubleBuffer
* createDoubleBuffer( std::vector<double>& buffer );
211
223
static
decaf::nio::FloatBuffer
* createFloatBuffer(
int
capacity );
224
248
static
decaf::nio::FloatBuffer
* createFloatBuffer(
float
* buffer,
int
size,
int
offset,
int
length );
249
265
static
decaf::nio::FloatBuffer
* createFloatBuffer( std::vector<float>& buffer );
266
275
static
decaf::nio::LongBuffer
* createLongBuffer(
int
capacity );
276
300
static
decaf::nio::LongBuffer
* createLongBuffer(
long
long
* buffer,
int
size,
int
offset,
int
length );
301
317
static
decaf::nio::LongBuffer
* createLongBuffer( std::vector<long long>& buffer );
318
330
static
decaf::nio::IntBuffer
* createIntBuffer(
int
capacity );
331
355
static
decaf::nio::IntBuffer
* createIntBuffer(
int
* buffer,
int
size,
int
offset,
int
length );
356
372
static
decaf::nio::IntBuffer
* createIntBuffer( std::vector<int>& buffer );
373
385
static
decaf::nio::ShortBuffer
* createShortBuffer(
int
capacity );
386
410
static
decaf::nio::ShortBuffer
* createShortBuffer(
short
* buffer,
int
size,
int
offset,
int
length );
411
427
static
decaf::nio::ShortBuffer
* createShortBuffer( std::vector<short>& buffer );
428
429
};
430
431
}}}
432
433
#endif
/*_DECAF_INTERNAL_NIO_BUFFERFACTORY_H_*/
src
main
decaf
internal
nio
BufferFactory.h
Generated on Mon Mar 4 2013 10:25:45 for activemq-cpp-3.6.0 by
1.8.1.2