00001 #ifndef OMG_TDDS_PUB_SUSPENDED_PUBLICATION_HPP_ 00002 #define OMG_TDDS_PUB_SUSPENDED_PUBLICATION_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 <tdds/pub/pubfwd.hpp> 00023 00024 00025 namespace tdds { namespace pub { 00026 00027 template <typename DELEGATE> 00028 class SuspendedPublication : public dds::core::Value<DELEGATE> { 00029 public: 00045 explicit SuspendedPublication(const dds::pub::Publisher& pub) : dds::core::Value<DELEGATE>(pub) { } 00046 SuspendedPublication(const SuspendedPublication& src); 00047 00048 public: 00059 void resume() { this->impl().end();} // resumes publications explicitly 00060 00061 public: 00072 ~SuspendedPublication() { } // resumes publications implicitly 00073 }; 00074 00075 } } 00076 00077 #endif /* OMG_TDDS_PUB_SUSPENDED_PUBLICATION_HPP_ */
1.7.1