diff options
Diffstat (limited to 'qpid/cpp/lib/common')
-rw-r--r-- | qpid/cpp/lib/common/Makefile.am | 1 | ||||
-rw-r--r-- | qpid/cpp/lib/common/framing/FramingContent.h | 1 | ||||
-rw-r--r-- | qpid/cpp/lib/common/shared_ptr.h | 31 |
3 files changed, 33 insertions, 0 deletions
diff --git a/qpid/cpp/lib/common/Makefile.am b/qpid/cpp/lib/common/Makefile.am index d70adf1186..355f764b6e 100644 --- a/qpid/cpp/lib/common/Makefile.am +++ b/qpid/cpp/lib/common/Makefile.am @@ -117,6 +117,7 @@ nobase_pkginclude_HEADERS = \ $(framing)/amqp_framing.h \ $(framing)/amqp_types.h \ $(framing)/Proxy.h \ + shared_ptr.h \ Exception.h \ ExceptionHolder.h \ QpidError.h \ diff --git a/qpid/cpp/lib/common/framing/FramingContent.h b/qpid/cpp/lib/common/framing/FramingContent.h index 696bcc7c1a..876e90c905 100644 --- a/qpid/cpp/lib/common/framing/FramingContent.h +++ b/qpid/cpp/lib/common/framing/FramingContent.h @@ -30,6 +30,7 @@ class Content bool isInline() const { return discriminator == INLINE; } bool isReference() const { return discriminator == REFERENCE; } const string& getValue() const { return value; } + void setValue(const string& newValue) { value = newValue; } friend std::ostream& operator<<(std::ostream&, const Content&); }; diff --git a/qpid/cpp/lib/common/shared_ptr.h b/qpid/cpp/lib/common/shared_ptr.h new file mode 100644 index 0000000000..6725f7acb3 --- /dev/null +++ b/qpid/cpp/lib/common/shared_ptr.h @@ -0,0 +1,31 @@ +#ifndef _common_shared_ptr_h +#define _common_shared_ptr_h + +/* + * + * Copyright (c) 2006 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the "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 <boost/shared_ptr.hpp> + +namespace qpid { +/// Import shared_ptr into qpid namespace. +using boost::shared_ptr; +} // namespace qpid + + + +#endif /*!_common_shared_ptr_h*/ |