diff options
Diffstat (limited to 'qpid/cpp/src/qpid/amqp_0_10/helpers.h')
-rw-r--r-- | qpid/cpp/src/qpid/amqp_0_10/helpers.h | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/qpid/cpp/src/qpid/amqp_0_10/helpers.h b/qpid/cpp/src/qpid/amqp_0_10/helpers.h deleted file mode 100644 index 1769d374d9..0000000000 --- a/qpid/cpp/src/qpid/amqp_0_10/helpers.h +++ /dev/null @@ -1,67 +0,0 @@ -#ifndef QPID_AMQP_0_10_HELPERS_H -#define QPID_AMQP_0_10_HELPERS_H - -/* - * - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the -n * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - * - */ -#include <string> - -namespace qpid { - -namespace amqp_0_10 { - -// Look up names by code -const char* getClassName(uint8_t code); -const char* getCommandName(uint8_t classCode, uint8_t code); -const char* getControlName(uint8_t classCode, uint8_t code); -const char* getStructName(uint8_t classCode, uint8_t code); - -struct Command { - virtual ~Command(); - class Visitor; - virtual void accept(Visitor&) const = 0; -}; - -struct Control { - virtual ~Control(); - class Visitor; - virtual void accept(Visitor&) const = 0; -}; - -struct Struct { - virtual ~Struct(); - class Visitor; - virtual void accept(Visitor&) const = 0; -}; - -/** Base class for generated enum domains. - * Enums map to classes for type safety and to provide separate namespaces - * for clashing values. - */ -struct Enum { - int value; - Enum(int v=0) : value(v) {} - operator int() const { return value; } - template <class S> void serialize(S &s) { s(value); } -}; - -}} // namespace qpid::amqp_0_10 - -#endif /*!QPID_AMQP_0_10_HELPERS_H*/ |