Logo Search packages:      
Sourcecode: vdr-plugin-live version File versions  Download package

vdrlive::RecordingsList::RecordingsList ( RecordingsTreePtr  recTree  )  [private]

Implementation of class RecordingsList:

Definition at line 356 of file recman.cpp.

                                                              :
            m_pRecVec(new RecVecType())
      {
            if (!m_pRecVec) {
                  return;
            }

            stack< RecordingsItemPtr > treeStack;
            treeStack.push(recTree->Root());

            while (!treeStack.empty()) {
                  RecordingsItemPtr current = treeStack.top();
                  treeStack.pop();
                  for (RecordingsMap::const_iterator iter = current->begin(); iter != current->end(); ++iter) {
                        RecordingsItemPtr recItem = iter->second;
                        if (recItem->IsDir()) {
                              treeStack.push(recItem);
                        }
                        else {
                              m_pRecVec->push_back(recItem);
                        }
                  }
            }
      }


Generated by  Doxygen 1.6.0   Back to index