template<class Iterator>
Definition at line 17 of file FileWriteVxRectangle.h. Referenced by Impala::Core::VideoSet::TableShots::WriteVxsFile(), and Impala::Core::Table::TableVxs::WriteVxsFile(). 00018 { 00019 File f(fileName, "w"); 00020 if (! f.Valid()) 00021 return; 00022 fprintf(f.Fp(), "#@ \"start\" \"end\" \"anno\" \"rect\" \"video\" \"section\" \"dir\" \"extra\"\n"); 00023 fprintf(f.Fp(), "#= \"int\" \"int\" \"string\" \"string\" \"string\" \"string\" \"string\" \"string\"\n"); 00024 for (Iterator it=begin ; it!=end ; it++) 00025 { 00026 VxRectangle vr = *it; 00027 fprintf(f.Fp(), "%d %d \"%s\" \"%d %d %d %d\" \"%s\" \"%s\" \"%s\" \"%s\"\n", 00028 vr.mStartFrame, vr.mEndFrame, vr.mAnno.c_str(), 00029 vr.mRect.mLeft, vr.mRect.mTop, vr.mRect.mRight, vr.mRect.mBottom, 00030 vr.mVideoName.c_str(), vr.mSection.c_str(), vr.mDir.c_str(), 00031 vr.mExtra.c_str()); 00032 } 00033 }
|