| 17 | namespace { |
| 18 | |
| 19 | void copyInto(DDS::ConditionSeq& target, |
| 20 | const DDS::WaitSet::ConditionSet& source) |
| 21 | { |
| 22 | const CORBA::ULong size = static_cast<CORBA::ULong>(source.size()); |
| 23 | target.length(size); |
| 24 | CORBA::ULong index = 0; |
| 25 | |
| 26 | for (DDS::WaitSet::ConditionSet::const_iterator iter = source.begin(), |
| 27 | end = source.end(); iter != end; ++iter, ++index) { |
| 28 | target[index] = *iter; |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | } // namespace |
| 33 |