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

src/hpp/dds/topic/MultiTopic.hpp

Go to the documentation of this file.
00001 #ifndef OMG_DDS_TOPIC_MULTI_TOPIC_HPP_
00002 #define OMG_DDS_TOPIC_MULTI_TOPIC_HPP_
00003 
00004 /* Copyright 2010, Object Management Group, Inc.
00005  * Copyright 2010, PrismTech, Inc.
00006  * Copyright 2010, Real-Time Innovations, Inc.
00007  * All rights reserved.
00008  *
00009  * Licensed under the Apache License, Version 2.0 (the "License");
00010  * you may not use this file except in compliance with the License.
00011  * 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, software
00016  * distributed under the License is distributed on an "AS IS" BASIS,
00017  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00018  * See the License for the specific language governing permissions and
00019  * limitations under the License.
00020  */
00021 
00022 #include <vector>
00023 
00024 #include <dds/core/detail/conformance.hpp>
00025 #include <dds/core/types.hpp>
00026 #include <dds/topic/topicfwd.hpp>
00027 #include <dds/topic/TopicDescription.hpp>
00028 #include <dds/topic/detail/MultiTopic.hpp>
00029 #include <dds/domain/domainfwd.hpp>
00030 
00031 
00032 namespace dds { namespace topic {
00033 
00034 #ifdef OMG_DDS_CONTENT_SUBSCRIPTION_SUPPORT
00035 
00036 template <typename T, template <typename Q> class DELEGATE>
00037 class MultiTopic : public TopicDescription<T, DELEGATE> {
00038 public:
00039     OMG_DDS_REF_TYPE(MultiTopic, TopicDescription, DELEGATE<T>)
00040 
00041         virtual ~MultiTopic() { }
00042 
00043 public:
00044     const std::string& subscription_expression() const {
00045                 return this->delegate()->subscription_expression();
00046         }
00047 
00048     const dds::core::StringSeq expression_parameters() const {
00049                 return this->delegate()->expression_parameters();
00050         }
00051 
00052     void expression_parameters(const dds::core::StringSeq& params) {
00053                 this->delegate()->parameters(params);
00054         }
00055 };
00056 
00057 #endif  // OMG_DDS_CONTENT_SUBSCRIPTION_SUPPORT
00058 
00059 } }
00060 
00061 
00062 #endif /* OMG_DDS_TOPIC_MULTI_TOPIC_HPP_ */

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