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 namespace OpenDDS { 00013 namespace DCPS { 00014 00015 CORBA::Boolean ReadConditionImpl::get_trigger_value() 00016 { 00017 return parent_->contains_sample(sample_states_, 00018 view_states_, instance_states_); 00019 } 00020 00021 DDS::SampleStateMask ReadConditionImpl::get_sample_state_mask() 00022 { 00023 return sample_states_; 00024 } 00025 00026 DDS::ViewStateMask ReadConditionImpl::get_view_state_mask() 00027 { 00028 return view_states_; 00029 } 00030 00031 DDS::InstanceStateMask ReadConditionImpl::get_instance_state_mask() 00032 { 00033 return instance_states_; 00034 } 00035 00036 DDS::DataReader_ptr ReadConditionImpl::get_datareader() 00037 { 00038 return DDS::DataReader::_duplicate(parent_); 00039 } 00040 00041 } // namespace DCPS 00042 } // namespace OpenDDS