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

src/hpp/tdds/domain/DomainParticipantFactory.hpp

Go to the documentation of this file.
00001 #ifndef OMG_TDDS_DOMAIN_DOMAIN_PARTICIPANT_FACTORY_HPP_
00002 #define OMG_TDDS_DOMAIN_DOMAIN_PARTICIPANT_FACTORY_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 <dds/core/corefwd.hpp>
00025 #include <dds/core/Reference.hpp>
00026 #include <dds/domain/domainfwd.hpp>
00027 #include <dds/domain/DomainParticipant.hpp>
00028 #include <dds/domain/qos/DomainParticipantFactoryQos.hpp>
00029 #include <dds/domain/qos/DomainParticipantQos.hpp>
00030 
00031 
00032 namespace tdds { namespace domain {
00033 
00034 template <typename DELEGATE>
00035 class DomainParticipantFactory : public dds::core::Reference<DELEGATE> {
00036 public:
00037     OMG_DDS_REF_TYPE(DomainParticipantFactory, dds::core::Reference, DELEGATE)
00038 
00039 public:
00040     ~DomainParticipantFactory() {
00041         OMG_DDS_LOG("MM", "~DomainParticipantFactory()");
00042     }
00043 
00044 public:
00057     dds::domain::DomainParticipant create_participant(
00058         dds::domain::DomainId                           domain_id = 0);
00059 
00071     dds::domain::DomainParticipant create_participant(
00072         dds::domain::DomainId                           domain_id,
00073         const dds::domain::qos::DomainParticipantQos&   a_qos,
00074         dds::domain::DomainParticipantListener*         a_listener = NULL,
00075         const dds::core::status::StatusMask&            mask =
00076                 dds::core::status::StatusMask::all());
00077 
00078     dds::domain::DomainParticipant create_participant(
00079         dds::domain::DomainId                           domain_id,
00080         const std::string&                              qos_library_name,
00081         const std::string&                              qos_profile_name,
00082         dds::domain::DomainParticipantListener*         a_listener = NULL,
00083         const dds::core::status::StatusMask&            mask =
00084                 dds::core::status::StatusMask::all());
00085 
00086     const dds::domain::qos::DomainParticipantQos
00087     default_participant_qos() const;
00088 
00089     void
00090     default_participant_qos(const dds::domain::qos::DomainParticipantQos& qos);
00091 
00092     void default_participant_qos(const std::string& qos_library_name,
00093                                  const std::string& qos_profile_name);
00094 
00095     const dds::domain::qos::DomainParticipantFactoryQos qos() const;
00096 
00097     void qos(const dds::domain::qos::DomainParticipantFactoryQos& qos);
00098 };
00099 
00100 }}
00101 
00102 #endif // !defined(OMG_TDDS_DOMAIN_DOMAIN_PARTICIPANT_FACTORY_HPP_)

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