• Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

src/hpp/tdds/xtypes/DynamicType.hpp

Go to the documentation of this file.
00001 #ifndef OMG_DDS_DYNAMIC_TYPE_HPP_
00002 #define OMG_DDS_DYNAMIC_TYPE_HPP_
00003 
00004 
00005 /* Copyright 2010, Object Management Group, Inc.
00006  * Copyright 2010, PrismTech, Corp.
00007  * Copyright 2010, Real-Time Innovations, Inc.
00008  * All rights reserved.
00009  *
00010  * Licensed under the Apache License, Version 2.0 (the "License");
00011  * you may not use this file except in compliance with the License.
00012  * You may obtain a copy of the License at
00013  *
00014  *     http://www.apache.org/licenses/LICENSE-2.0
00015  *
00016  * Unless required by applicable law or agreed to in writing, software
00017  * distributed under the License is distributed on an "AS IS" BASIS,
00018  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00019  * See the License for the specific language governing permissions and
00020  * limitations under the License.
00021  */
00022 
00023 #include <string>
00024 
00025 #include <dds/core/detail/conformance.hpp>
00026 #include <dds/core/Value.hpp>
00027 #include <tdds/xtypes/tdds_xtypes_fwd.hpp>
00028 
00029 
00030 #ifdef OMG_DDS_EXTENSIBLE_AND_DYNAMIC_TOPIC_TYPE_SUPPORT
00031 
00032 
00033 template <typename DELEGATE>
00034 class tdds::type::dynamic::DynamicType : public dds::core::Value<DELEGATE> {
00035 
00036 public:
00037     const dds::type::dynamic::TypeDescriptor descriptor() const;
00038     void descriptor(const dds::type::dynamic::TypeDescriptor& value);
00039 
00040     const std::string name() const;
00041 
00042     dds::type::TypeKind kind() const;
00043 
00044     dds::type::dynamic::DynamicTypeMember
00045     member(const std::string& name) const;
00046 
00047     const dds::type::dynamic::DynamicTypeMembersByName
00048     all_members_by_name() const;
00049 
00050     dds::type::dynamic::DynamicTypeMembersByName&
00051     all_members_by_name(dds::type::dynamic::DynamicTypeMembersByName& dst);
00052     
00053     dds::type::dynamic::DynamicTypeMember
00054     member(dds::type::MemberId id);
00055 
00056     const dds::type::dynamic::DynamicTypeMembersById
00057     all_members_by_id() const;
00058 
00059     dds::type::dynamic::DynamicTypeMembersById&
00060     all_members_by_id(dds::type::dynamic::DynamicTypeMembersById& value)
00061     const;
00062 
00063     const dds::type::dynamic::AnnotationDescriptorSeq annotation() const;
00064     dds::type::dynamic::AnnotationDescriptorSeq&
00065     annotation(dds::type::dynamic::AnnotationDescriptorSeq& dst) const;
00066     
00067     void apply_annotation(
00068         const dds::type::dynamic::AnnotationDescriptor& descriptor);
00069 
00073     DynamicType& operator+=(
00074         const dds::type::dynamic::AnnotationDescriptor& descriptor);
00075 
00079     dds::type::dynamic::DynamicTypeMember
00080     add_member(const dds::type::dynamic::MemberDescriptor& descriptor);
00081 
00085     DynamicType&
00086     operator+=(const dds::type::dynamic::MemberDescriptor& descriptor);
00087 };
00088 
00089 
00090 #endif  // defined(OMG_DDS_EXTENSIBLE_AND_DYNAMIC_TOPIC_TYPE_SUPPORT)
00091 
00092 
00093 #endif // !defined(OMG_DDS_DYNAMIC_TYPE_HPP_)

Generated on Tue Nov 9 2010 02:16:22 for dds-psm-cxx-doc by  doxygen 1.7.1