Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

KinoFileMap Class Reference

The file map implementation - this class is responsible for maintaining the list of open files associated to a project. More...

Inheritance diagram for KinoFileMap:

Inheritance graph
[legend]
Collaboration diagram for KinoFileMap:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~KinoFileMap ()
map< string, FileHandler * > & GetMap ()
 The map from file name to handler is here.
void Clear ()
 Clears the content of the file map.
void GetUnusedFxFiles (PlayList &list, vector< string > &unused)
 Obtains a list of unused fx rendered files.

Private Attributes

map< string, FileHandler * > filemap

Detailed Description

The file map implementation - this class is responsible for maintaining the list of open files associated to a project.

Definition at line 65 of file playlist.cc.


Constructor & Destructor Documentation

virtual KinoFileMap::~KinoFileMap  )  [inline, virtual]
 

Definition at line 71 of file playlist.cc.

00072     {}


Member Function Documentation

void KinoFileMap::Clear  )  [inline, virtual]
 

Clears the content of the file map.

Implements FileMap.

Definition at line 79 of file playlist.cc.

References filemap.

00080     {
00081         map<string, FileHandler*>::iterator n;
00082         for ( n = filemap.begin(); n != filemap.end(); ++n )
00083             delete ( *n ).second;
00084         filemap.erase( filemap.begin(), filemap.end() );
00085     }

map<string, FileHandler*>& KinoFileMap::GetMap  )  [inline, virtual]
 

The map from file name to handler is here.

Implements FileMap.

Definition at line 74 of file playlist.cc.

References filemap.

00075     {
00076         return filemap;
00077     }

void KinoFileMap::GetUnusedFxFiles PlayList list,
vector< string > &  unused
[inline, virtual]
 

Obtains a list of unused fx rendered files.

Implements FileMap.

Definition at line 87 of file playlist.cc.

References filemap, and PlayList::IsFileUsed().

00088     {
00089         unused.erase( unused.begin(), unused.end() );
00090         map<string, FileHandler*>::iterator n;
00091         for ( n = filemap.begin(); n != filemap.end(); ++n )
00092         {
00093             if ( n->first.find( ".kinofx.dv" ) != string::npos && !list.IsFileUsed( n->first ) )
00094             {
00095                 unused.push_back( n->first );
00096             }
00097         }
00098     }


Member Data Documentation

map< string, FileHandler* > KinoFileMap::filemap [private]
 

Definition at line 68 of file playlist.cc.

Referenced by Clear(), GetMap(), and GetUnusedFxFiles().


The documentation for this class was generated from the following file:
Generated on Sun Mar 11 22:13:09 2007 for Kino by  doxygen 1.4.2