NSFileSystem::TFSCabinetTable Class Reference

This class defines table from begin of cabinet. More...

#include <FSCabinet.h>

Inheritance diagram for NSFileSystem::TFSCabinetTable:

Inheritance graph
[legend]
Collaboration diagram for NSFileSystem::TFSCabinetTable:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ~TFSCabinetTable (void)
 Destructor.
 TFSCabinetTable (const TFSCabinetTable &orig)
 fake copy constructor
void operator= (const TFSCabinetTable &orig)
 fake assignment operator
const TFSCabinetTableItemIsFileInCabinet (const TString &filename) const
 Determines whether specified file is contained inside cabinet.

Static Public Member Functions

static TFSCabinetTableLoadTableFromFile (const TString &filename)
 Loads cabinet table from specified file.

Detailed Description

This class defines table from begin of cabinet.

Class defines method for loading table from cabinet file and methods for searching for specified files

Class has no public constructor. You must create it via static method LoadFromFile.

Definition at line 111 of file FSCabinet.h.


Constructor & Destructor Documentation

TFSCabinetTable::~TFSCabinetTable void   ) 
 

Destructor.

Definition at line 29 of file FSCabinet.cpp.

NSFileSystem::TFSCabinetTable::TFSCabinetTable const TFSCabinetTable orig  ) 
 

fake copy constructor


Member Function Documentation

const TFSCabinetTableItem * TFSCabinetTable::IsFileInCabinet const TString filename  )  const
 

Determines whether specified file is contained inside cabinet.

If file is contained inside cabinet then pointer to structure with information about file is returned, otherwise NULL is returned.

Parameters:
filename [in] name of file which is searched in cabinet
Todo:
Here should be used better searching algorithm

Definition at line 154 of file FSCabinet.cpp.

References TArrayPtrs< T, size, step >::Count().

Referenced by NSFileSystem::TFSCabinet::Exists(), and NSFileSystem::TFSCabinet::GetFile().

Here is the call graph for this function:

TFSCabinetTable * TFSCabinetTable::LoadTableFromFile const TString filename  )  [static]
 

Loads cabinet table from specified file.

Return pointer to table or NULL while an error occured.

Parameters:
filename [in] name of cabinet file

Definition at line 39 of file FSCabinet.cpp.

References DBGTEXTF, FALSE, TFile::Open(), and TRUE.

Referenced by NSFileSystem::TFSCabinet::LoadCabinet().

Here is the call graph for this function:

void NSFileSystem::TFSCabinetTable::operator= const TFSCabinetTable orig  ) 
 

fake assignment operator


The documentation for this class was generated from the following files:
Generated on Wed Nov 28 22:44:57 2007 for Joy4D by  doxygen 1.4.6-NO