00001 #ifndef OMG_DDS_SUB_QUERY_CONDITION_HPP_ 00002 #define OMG_DDS_SUB_QUERY_CONDITION_HPP_ 00003 00004 /* Copyright 2010, Object Management Group, Inc. 00005 * Copyright 2010, PrismTech, Corp. 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 <dds/core/corefwd.hpp> 00023 #include <dds/sub/subfwd.hpp> 00024 #include <dds/sub/cond/detail/QueryCondition.hpp> 00025 #include <dds/sub/cond/ReadCondition.hpp> 00026 00027 00028 #ifdef OMG_DDS_CONTENT_SUBSCRIPTION_SUPPORT 00029 00042 template <typename T, template <typename Q> class DELEGATE> 00043 class dds::sub::cond::QueryCondition : public dds::sub::cond::ReadCondition< T, DELEGATE > { 00044 public: 00045 OMG_DDS_REF_TYPE_T(QueryCondition, dds::sub::cond::ReadCondition, T, DELEGATE) 00046 00047 ~QueryCondition() { } 00048 00049 public: 00050 const std::string query_expression() const; 00051 00052 dds::core::StringSeq& 00053 query_parameters(dds::core::StringSeq& dst) const; 00054 00055 const dds::core::StringSeq query_parameters() const; 00056 00057 void query_parameters(const dds::core::StringSeq& query_parameters); 00058 }; 00059 00060 #endif // OMG_DDS_CONTENT_SUBSCRIPTION_SUPPORT 00061 00062 00063 #endif /* OMG_DDS_SUB_QUERY_CONDITION_HPP_ */
1.7.1