#include <libcomprex/directory.h>
#include <libcomprex/file.h>
#include <libcomprex/fp.h>
#include <libcomprex/module.h>
#include <libcomprex/types.h>
Go to the source code of this file.
Data Structures | |
struct | _CxArchive |
A representation of an archive of files. More... | |
Structure (De)allocation Functions | |
CxArchive * | cxNewArchive (void) |
Creates a new CxArchive structure. | |
void | cxDestroyArchive (CxArchive *archive) |
Destroys a CxArchive structure. | |
Attribute Modification Functions | |
void | cxSetArchiveModule (CxArchive *archive, CxModule *module) |
Sets the archive's asssociated module. | |
void | cxSetArchiveType (CxArchive *archive, CxArchiveType type) |
Sets the archive type. | |
void | cxSetArchiveAccessMode (CxArchive *archive, CxAccessMode mode) |
Sets the archive's file access mode. | |
void | cxSetArchiveFileName (CxArchive *archive, const char *filename) |
Sets the archive's physical filename. | |
void | cxSetArchivePath (CxArchive *archive, const char *path) |
Sets the full path to the archive. | |
void | cxSetArchivePhysicalPath (CxArchive *archive, const char *path) |
Sets the full physical path to the archive. | |
void | cxSetArchiveFileSize (CxArchive *archive, unsigned int fileSize) |
Sets the archive's physical file size. | |
void | cxSetArchiveSize (CxArchive *archive, unsigned int archiveSize) |
Sets the total size of the archive's contents. | |
void | cxSetArchiveLocal (CxArchive *archive, char isLocal) |
Sets whether or not the archive is stored locally. | |
Attribute Retrieval Functions | |
CxModule * | cxGetArchiveModule (CxArchive *archive) |
Returns the archive's associated module. | |
CxArchiveType | cxGetArchiveType (CxArchive *archive) |
Returns the archive type. | |
CxAccessMode | cxGetArchiveAccessMode (CxArchive *archive) |
Returns the archive's file access mode. | |
const char * | cxGetArchiveFileName (CxArchive *archive) |
Returns the archive's physical filename. | |
const char * | cxGetArchivePath (CxArchive *archive) |
Returns the full path to the specified archive. | |
const char * | cxGetArchivePhysicalPath (CxArchive *archive) |
Returns the full physical path to the file. | |
unsigned int | cxGetArchiveFileSize (CxArchive *archive) |
Returns the archive's physical file size. | |
unsigned int | cxGetArchiveSize (CxArchive *archive) |
Returns the total size of the archive's contents. | |
char | cxIsArchiveLocal (CxArchive *archive) |
Returns whether or not the archive is stored locally. | |
CxDirectory * | cxGetArchiveRoot (CxArchive *archive) |
Returns the root directory in the archive. | |
Typedefs | |
typedef _CxArchive | CxArchive |
An archive. |
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
An archive.
|
|
Destroys a CxArchive structure.
|
|
Returns the archive's file access mode.
|
|
Returns the archive's physical filename.
|
|
Returns the archive's physical file size.
|
|
Returns the archive's associated module.
|
|
Returns the full path to the specified archive. This may include such non-physical elements as FTP sites, archives, etc. in the path.
|
|
Returns the full physical path to the file. If the archive is non-local, this will be a temporary file.
|
|
Returns the root directory in the archive.
|
|
Returns the total size of the archive's contents.
|
|
Returns the archive type.
|
|
Returns whether or not the archive is stored locally. If the archive is located online, or within another archive, this will be 0. Otherwise, this will be 1.
|
|
Creates a new CxArchive structure.
|
|
Sets the archive's file access mode.
|
|
Sets the archive's physical filename.
|
|
Sets the archive's physical file size.
|
|
Sets whether or not the archive is stored locally. If the archive is located online, or within another archive, this should be 0. Otherwise, this should be 1.
|
|
Sets the archive's asssociated module. This should really only be used by libcomprex.
|
|
Sets the full path to the archive. This may include such non-physical elements as FTP sites, archives, etc. in the path.
|
|
Sets the full physical path to the archive. If the archive is non-local, this should be a temporary file.
|
|
Sets the total size of the archive's contents.
|
|
Sets the archive type.
|