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

fileinfo Class Reference

#include <fileinfo.h>

Inheritance diagram for fileinfo:

Inheritance graph
Collaboration diagram for fileinfo:

Collaboration graph
List of all members.

Detailed Description

Fileinfo class.


Public Member Functions

 fileinfo (const string &FileName)
 FileInfo constructor.

virtual ~fileinfo (void)
 FileInfo destructor.

string GetFileName (void) const
 Get the file name.

virtual void Show (void) const
 Show debug information for fileinfo.

string ParseID (const string &IDName) const
 Return the value for the specified ID.

void GenerateInfo (void)
 Generates/Extracts the information from the file.


Protected Member Functions

virtual void FirstStep (void)
 First step of the fileinfo construction.

virtual streamoff Step (char *pContent, streamsize ContentSize, streamoff FileOffset)
 Loop step of the fileinfo construction.

virtual void LastStep (void)
 Last step of the fileinfo construction.


Protected Attributes

idm_pIDs
 ID's for the file.

const string m_FileName
 File Name/Route.

streamsize m_FileSize
 File Size.


Private Attributes

streamoff m_LastOffset
 Offset of the last step.

md5m_pMD5
 MD5 information.


Constructor & Destructor Documentation

fileinfo::fileinfo const string &  FileName  ) 
 

FileInfo constructor.

Parameters:
FileName: File to construct the file information.

Here is the call graph for this function:

fileinfo::~fileinfo void   )  [virtual]
 

FileInfo destructor.


Member Function Documentation

string fileinfo::GetFileName void   )  const
 

Get the file name.

Returns:
String with the file name.

void fileinfo::Show void   )  const [virtual]
 

Show debug information for fileinfo.

Reimplemented in mp3info.

Here is the call graph for this function:

string fileinfo::ParseID const string &  IDName  )  const
 

Return the value for the specified ID.

Parameters:
IDName: ID to parse.
Returns:
String with the parsed value.

Here is the call graph for this function:

void fileinfo::GenerateInfo void   ) 
 

Generates/Extracts the information from the file.

Here is the call graph for this function:

void fileinfo::FirstStep void   )  [protected, virtual]
 

First step of the fileinfo construction.

Reimplemented in mp3info.

Here is the call graph for this function:

streamoff fileinfo::Step char *  pContent,
streamsize  ContentSize,
streamoff  FileOffset
[protected, virtual]
 

Loop step of the fileinfo construction.

Parameters:
pContent: Buffer with file data.
ContentSize: Size of the buffer.
FileOffset: Offset of the file where the buffer starts.
Returns:
Last offset.

Reimplemented in mp3info.

Here is the call graph for this function:

void fileinfo::LastStep void   )  [protected, virtual]
 

Last step of the fileinfo construction.

Reimplemented in mp3info.

Here is the call graph for this function:


Member Data Documentation

id* fileinfo::m_pIDs [protected]
 

ID's for the file.

const string fileinfo::m_FileName [protected]
 

File Name/Route.

streamsize fileinfo::m_FileSize [protected]
 

File Size.

streamoff fileinfo::m_LastOffset [private]
 

Offset of the last step.

md5* fileinfo::m_pMD5 [private]
 

MD5 information.


The documentation for this class was generated from the following files:
doxygen sourceforge id3lib