activemq-cpp-3.9.5
PrimitiveTypesMarshaller.h
Go to the documentation of this file.
1
17
18#ifndef _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSHAL_PRIMITIVETYPESMARSHALLER_H_
19#define _ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSHAL_PRIMITIVETYPESMARSHALLER_H_
20
21#include <cms/CMSException.h>
29#include <string>
30
31namespace activemq{
32namespace wireformat{
33namespace openwire{
34namespace marshal{
35
42 public:
43
46
57 static void marshal( const util::PrimitiveMap* map, std::vector<unsigned char>& buffer );
58
69 static void unmarshal( util::PrimitiveMap* map, const std::vector<unsigned char>& buffer );
70
81 static void marshal( const util::PrimitiveList* list, std::vector<unsigned char>& buffer );
82
93 static void unmarshal( util::PrimitiveList* list, const std::vector<unsigned char>& buffer );
94
95 public:
96
107 static void marshalMap( const util::PrimitiveMap* map, decaf::io::DataOutputStream& dataOut );
108
120
131 static void marshalList( const util::PrimitiveList* list, decaf::io::DataOutputStream& dataOut );
132
144
145 protected:
146
159
171
180 const util::PrimitiveValueNode& value );
181
192
204
214
215 };
216
217}}}}
218
219#endif /*_ACTIVEMQ_WIREFORMAT_OPENWIRE_MARSHAL_PRIMITIVETYPESMARSHALLER_H_*/
#define AMQCPP_API
Definition Config.h:30
List of primitives.
Definition PrimitiveList.h:36
Map of named primitives.
Definition PrimitiveMap.h:36
Class that wraps around a single value of one of the many types.
Definition PrimitiveValueNode.h:38
static void unmarshalPrimitiveList(decaf::io::DataInputStream &dataIn, decaf::util::LinkedList< util::PrimitiveValueNode > &list)
Unmarshals a List of Primitives from the given InputStream, can result in recursive calls to this met...
static void marshalPrimitiveMap(decaf::io::DataOutputStream &dataOut, const decaf::util::Map< std::string, util::PrimitiveValueNode > &map)
Marshal a Map of Primitives to the given OutputStream, can result in recursive calls to this method i...
static util::PrimitiveValueNode unmarshalPrimitive(decaf::io::DataInputStream &dataIn)
Unmarshals a Primitive Type from the stream, and returns it as a value Node.
static void marshalPrimitiveList(decaf::io::DataOutputStream &dataOut, const decaf::util::List< util::PrimitiveValueNode > &list)
Marshal a List of Primitives to the given OutputStream, can result in recursive calls to this method ...
virtual ~PrimitiveTypesMarshaller()
Definition PrimitiveTypesMarshaller.h:45
static void marshal(const util::PrimitiveList *list, std::vector< unsigned char > &buffer)
Marshal a primitive list object to the given byte buffer.
static util::PrimitiveList * unmarshalList(decaf::io::DataInputStream &dataIn)
Unmarshal a PrimitiveList from the given DataInputStream.
static void marshalPrimitive(decaf::io::DataOutputStream &dataOut, const util::PrimitiveValueNode &value)
Used to Marshal the Primitive types out on the Wire.
static void unmarshal(util::PrimitiveMap *map, const std::vector< unsigned char > &buffer)
Unmarshal a PrimitiveMap from the provided Byte buffer.
static void marshalMap(const util::PrimitiveMap *map, decaf::io::DataOutputStream &dataOut)
Marshal a primitive map object to the given DataOutputStream.
static void unmarshal(util::PrimitiveList *list, const std::vector< unsigned char > &buffer)
Unmarshal a PrimitiveList from the provided byte buffer.
static void marshalList(const util::PrimitiveList *list, decaf::io::DataOutputStream &dataOut)
Marshal a PrimitiveList to the given DataOutputStream.
static void marshal(const util::PrimitiveMap *map, std::vector< unsigned char > &buffer)
Marshal a primitive map object to the given byte buffer.
static util::PrimitiveMap * unmarshalMap(decaf::io::DataInputStream &dataIn)
Unmarshal a PrimitiveMap from the provided DataInputStream.
static void unmarshalPrimitiveMap(decaf::io::DataInputStream &dataIn, util::PrimitiveMap &map)
Unmarshals a Map of Primitives from the given InputStream, can result in recursive calls to this meth...
PrimitiveTypesMarshaller()
Definition PrimitiveTypesMarshaller.h:44
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
A complete implementation of the List interface using a doubly linked list data structure.
Definition LinkedList.h:55
An ordered collection (also known as a sequence).
Definition List.h:47
An object that maps keys to values.
Definition Map.h:88
Definition BaseDataStreamMarshaller.h:31
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