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

src/hpp/tdds/core/Entity.hpp

Go to the documentation of this file.
00001 #ifndef OMG_TDDS_CORE_ENTITY_HPP_
00002 #define OMG_TDDS_CORE_ENTITY_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 <string>
00023 
00024 #include <tdds/core/corefwd.hpp>
00025 #include <dds/core/Reference.hpp>
00026 #include <dds/core/status/Status.hpp>
00027 
00028 namespace tdds { namespace core {
00029 
00030 
00038 template <typename DELEGATE>
00039 class Entity : public dds::core::Reference<DELEGATE> {
00040 public:
00041     OMG_DDS_REF_TYPE(Entity, dds::core::Reference, DELEGATE)
00042 
00043     ~Entity() { }
00044 
00045 public:
00069     void enable() {
00070         this->delegate()->enable();
00071     }
00072 
00088     const dds::core::status::StatusMask status_changes() {
00089         return this->delegate()->status_changes();
00090     }
00091 
00096     const dds::core::InstanceHandle instance_handle() const {
00097         return this->delegate()->instance_handle();
00098     }
00099 
00100     void qos(const std::string& qos_library_name,
00101              const std::string& qos_profile_name);
00102 
00108      void close() {
00109          this->delegate()->close();
00110      }
00111 
00118     void retain() {
00119         this->delegate->retain();
00120     }
00121 };
00122 
00123 } } /* namespace dds / namespace core */
00124 
00125 
00126 #endif /* OMG_TDDS_CORE_ENTITY_HPP_ */
00127 

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