#include <filehandler.h>
Collaboration diagram for FileTracker:
Public Member Functions | |
| void | SetMode (FileCaptureMode) |
| FileCaptureMode | GetMode () |
| unsigned int | Size () |
| char * | Get (int) |
| void | Add (const char *) |
| void | Clear () |
Static Public Member Functions | |
| static FileTracker & | GetInstance () |
Protected Member Functions | |
| FileTracker () | |
| ~FileTracker () | |
Private Attributes | |
| vector< char * > | list |
| FileCaptureMode | mode |
Static Private Attributes | |
| static FileTracker * | instance = NULL |
|
|
Definition at line 52 of file filehandler.cc. Referenced by GetInstance(). 00052 : mode( CAPTURE_MOVIE_APPEND ) 00053 { 00054 cerr << ">> Constructing File Capture tracker" << endl; 00055 }
|
|
|
Definition at line 57 of file filehandler.cc. 00058 {
00059 cerr << ">> Destroying File Capture tracker" << endl;
00060 }
|
|
|
Definition at line 85 of file filehandler.cc. References CAPTURE_IGNORE, and list. 00086 {
00087 if ( this->mode != CAPTURE_IGNORE )
00088 {
00089 cerr << ">>>> Registering " << file << " with the tracker" << endl;
00090 list.push_back( strdup( file ) );
00091 }
00092 }
|
|
|
Definition at line 99 of file filehandler.cc. References CAPTURE_MOVIE_APPEND, list, mode, and Size(). 00100 {
00101 while ( Size() > 0 )
00102 {
00103 free( list[ Size() - 1 ] );
00104 list.pop_back( );
00105 }
00106 this->mode = CAPTURE_MOVIE_APPEND;
00107 }
|
|
|
Definition at line 80 of file filehandler.cc. References list. 00081 {
00082 return list[ index ];
00083 }
|
|
|
Definition at line 62 of file filehandler.cc. References FileTracker(), and instance. Referenced by PageExport::clean(), PageCapture::collectFiles(), AVIHandler::Create(), RawHandler::Create(), PageTrim::processCommand(), PageTimeline::processCommand(), PageEditor::processCommand(), PageExport::start(), PageCapture::stopCapture(), and DvEncoder::writeThread(). 00063 {
00064 if ( instance == NULL )
00065 instance = new FileTracker();
00066
00067 return *instance;
00068 }
|
|
|
Definition at line 75 of file filehandler.cc. References mode. 00076 {
00077 return this->mode;
00078 }
|
|
|
Definition at line 70 of file filehandler.cc.
|
|
|
Definition at line 94 of file filehandler.cc. References list. Referenced by Clear(). 00095 {
00096 return list.size();
00097 }
|
|
|
Definition at line 50 of file filehandler.cc. Referenced by GetInstance(). |
|
|
Definition at line 61 of file filehandler.h. |
|
|
Definition at line 62 of file filehandler.h. |
1.4.2