src/par.cpp

00001 // Copyright (C) 2006 Alexis ROBERT
00002 
00003 #include "par.h"
00004 
00005 namespace freedaisy {
00006   XMLNode Par::getText() {
00007     std::vector<XMLNode> children = getChildren();
00008 
00009     for (std::vector<XMLNode>::iterator i = children.begin(); i != children.end(); i++) {
00010       if ((*i).getName() == "text") {
00011         return (*i);
00012       }
00013     }
00014   }
00015 
00016   XMLNode Par::getAudio() {
00017     std::vector<XMLNode> children = getChildren();
00018 
00019     for (std::vector<XMLNode>::iterator i = children.begin(); i != children.end(); i++) {
00020       if ((*i).getName() == "audio") {
00021         return (*i);
00022       }
00023     }
00024   }
00025 
00026   std::vector<Seq> Par::getSeq() {
00027     std::vector<XMLNode> children = getChildren();
00028     std::vector<Seq> final;
00029     
00030     for (std::vector<XMLNode>::iterator i = children.begin(); i != children.end(); i++) {
00031       if ((*i).getName() == "seq") {
00032         final.push_back(Seq((*i)));
00033       }
00034     }
00035     return final;
00036   }
00037    
00038 }

Generated on Sun Jun 25 23:35:45 2006 for libdaisy by  doxygen 1.4.6