/usr/share/cruisecontrol-bin-2.6.1/projects/qpid-trunk/cpp/src/gen/qpid/amqp_0_10/CodeForType.h

00001 #ifndef QPID_AMQP_0_10_CODEFORTYPE_H
00002 #define QPID_AMQP_0_10_CODEFORTYPE_H
00003 /*
00004  *
00005  * Licensed to the Apache Software Foundation (ASF) under one
00006  * or more contributor license agreements.  See the NOTICE file
00007  * distributed with this work for additional information
00008  * regarding copyright ownership.  The ASF licenses this file
00009  * to you under the Apache License, Version 2.0 (the
00010  * "License"); you may not use this file except in compliance
00011  * with the License.  You may obtain a copy of the License at
00012  *
00013  *   http://www.apache.org/licenses/LICENSE-2.0
00014  *
00015  * Unless required by applicable law or agreed to in writing,
00016  * software distributed under the License is distributed on an
00017  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
00018  * KIND, either express or implied.  See the License for the
00019  * specific language governing permissions and limitations
00020  * under the License.
00021  *
00022  */
00023 
00028 
00029 
00030 #include "qpid/amqp_0_10/built_in_types.h"
00031 
00032 namespace qpid {
00033 namespace amqp_0_10 {
00034 
00035 
00036 template <class T> struct CodeForType;
00037 
00038 template <> struct CodeForType<Bin8> { static const uint8_t value; };
00039 template <> struct CodeForType<Int8> { static const uint8_t value; };
00040 template <> struct CodeForType<Uint8> { static const uint8_t value; };
00041 template <> struct CodeForType<Char> { static const uint8_t value; };
00042 template <> struct CodeForType<Boolean> { static const uint8_t value; };
00043 template <> struct CodeForType<Bin16> { static const uint8_t value; };
00044 template <> struct CodeForType<Int16> { static const uint8_t value; };
00045 template <> struct CodeForType<Uint16> { static const uint8_t value; };
00046 template <> struct CodeForType<Bin32> { static const uint8_t value; };
00047 template <> struct CodeForType<Int32> { static const uint8_t value; };
00048 template <> struct CodeForType<Uint32> { static const uint8_t value; };
00049 template <> struct CodeForType<Float> { static const uint8_t value; };
00050 template <> struct CodeForType<CharUtf32> { static const uint8_t value; };
00051 template <> struct CodeForType<Bin64> { static const uint8_t value; };
00052 template <> struct CodeForType<Int64> { static const uint8_t value; };
00053 template <> struct CodeForType<Uint64> { static const uint8_t value; };
00054 template <> struct CodeForType<Double> { static const uint8_t value; };
00055 template <> struct CodeForType<Datetime> { static const uint8_t value; };
00056 template <> struct CodeForType<Bin128> { static const uint8_t value; };
00057 template <> struct CodeForType<Uuid> { static const uint8_t value; };
00058 template <> struct CodeForType<Bin256> { static const uint8_t value; };
00059 template <> struct CodeForType<Bin512> { static const uint8_t value; };
00060 template <> struct CodeForType<Bin1024> { static const uint8_t value; };
00061 template <> struct CodeForType<Vbin8> { static const uint8_t value; };
00062 template <> struct CodeForType<Str8Latin> { static const uint8_t value; };
00063 template <> struct CodeForType<Str8> { static const uint8_t value; };
00064 template <> struct CodeForType<Str8Utf16> { static const uint8_t value; };
00065 template <> struct CodeForType<Vbin16> { static const uint8_t value; };
00066 template <> struct CodeForType<Str16Latin> { static const uint8_t value; };
00067 template <> struct CodeForType<Str16> { static const uint8_t value; };
00068 template <> struct CodeForType<Str16Utf16> { static const uint8_t value; };
00069 template <> struct CodeForType<Vbin32> { static const uint8_t value; };
00070 template <> struct CodeForType<Map> { static const uint8_t value; };
00071 template <> struct CodeForType<List> { static const uint8_t value; };
00072 template <> struct CodeForType<Array> { static const uint8_t value; };
00073 template <> struct CodeForType<Struct32> { static const uint8_t value; };
00074 template <> struct CodeForType<Bin40> { static const uint8_t value; };
00075 template <> struct CodeForType<Dec32> { static const uint8_t value; };
00076 template <> struct CodeForType<Bin72> { static const uint8_t value; };
00077 template <> struct CodeForType<Dec64> { static const uint8_t value; };
00078 template <> struct CodeForType<Void> { static const uint8_t value; };
00079 template <> struct CodeForType<Bit> { static const uint8_t value; };
00080 
00081 template <class T> uint8_t codeFor(const T&) { return CodeForType<T>::value; }
00082 
00083 }} // namespace qpid::amqp_0_10
00084 
00085 #endif  

Generated on Thu Apr 10 11:08:15 2008 for Qpid by  doxygen 1.4.7