示例#1
0
 ReaderIterator Reader::begin()  
 {
     _rdata.rbf.open(_rdata.rb_file); 
     if (!_rdata.rbf.is_open())
     {
         throw runtime_error("Unable to open file");
     }
     return ReaderIterator(_rdata); 
 }
示例#2
0
ReaderIterator
ReaderMapping::get_iter() const
{
  assert(m_doc);
  assert(m_sx);

  assert_is_array(*m_doc, *m_sx);

  return ReaderIterator(m_doc, m_sx);
}
示例#3
0
 ReaderIterator Reader::end()  
 {
     return ReaderIterator(_rdata);
 }