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

src/hpp/tdds/xtypes/BuiltinTypes.hpp

Go to the documentation of this file.
00001 #ifndef OMG_TDDS_XYPES_BUILTIN_TYPES_HPP_
00002 #define OMG_TDDS_XYPES_BUILTIN_TYPES_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/corefwd.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 // --- Keyed string: ---------------------------------------------------------
00034 
00035 template <typename DELEGATE>
00036 class tdds::type::builtin::KeyedString : public dds::core::Value<DELEGATE> {
00037 public:
00038     KeyedString(const std::string& key, const std::string& value);
00039 
00040 public:
00041     const std::string key() const;
00042     void key(const std::string& value);
00043 
00044     const std::string value() const;
00045     void value(const std::string& value);
00046 };
00047 
00048 
00049 // --- Keyed bytes: ----------------------------------------------------------
00050 
00051 template <typename DELEGATE>
00052 class tdds::type::builtin::KeyedBytes : public dds::core::Value<DELEGATE> {
00053 
00054 public:
00055     template <typename RNDA_ITER>
00056     KeyedBytes(const std::string& key,
00057                RNDA_ITER value_begin,
00058                RNDA_ITER value_end);
00059 
00060 public:
00061     const std::string key() const;
00062     void key(const std::string& value);
00063 
00064     uint8_t* value_begin();
00065     uint8_t* value_end();
00066 };
00067 
00068 
00069 #endif  // defined(OMG_DDS_EXTENSIBLE_AND_DYNAMIC_TOPIC_TYPE_SUPPORT)
00070 
00071 
00072 #endif // !defined(OMG_TDDS_XYPES_BUILTIN_TYPES_HPP_)

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