ReadConditionImpl.cpp

Go to the documentation of this file.
00001 /*
00002  *
00003  *
00004  * Distributed under the OpenDDS License.
00005  * See: http://www.opendds.org/license.html
00006  */
00007 
00008 #include "DCPS/DdsDcps_pch.h" //Only the _pch include should start with DCPS/
00009 #include "ReadConditionImpl.h"
00010 #include "DataReaderImpl.h"
00011 
00012 OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
00013 
00014 namespace OpenDDS {
00015 namespace DCPS {
00016 
00017 CORBA::Boolean ReadConditionImpl::get_trigger_value()
00018 {
00019   return parent_->contains_sample(sample_states_,
00020                                   view_states_, instance_states_);
00021 }
00022 
00023 DDS::SampleStateMask ReadConditionImpl::get_sample_state_mask()
00024 {
00025   return sample_states_;
00026 }
00027 
00028 DDS::ViewStateMask ReadConditionImpl::get_view_state_mask()
00029 {
00030   return view_states_;
00031 }
00032 
00033 DDS::InstanceStateMask ReadConditionImpl::get_instance_state_mask()
00034 {
00035   return instance_states_;
00036 }
00037 
00038 DDS::DataReader_ptr ReadConditionImpl::get_datareader()
00039 {
00040   return DDS::DataReader::_duplicate(parent_);
00041 }
00042 
00043 } // namespace DCPS
00044 } // namespace OpenDDS
00045 
00046 OPENDDS_END_VERSIONED_NAMESPACE_DECL
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1