ArchiveFile.cpp

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 1998, The University of Queensland
00003  *
00004  * See the file "LICENSE.TERMS" for information on usage and
00005  * redistribution of this file, and for a DISCLAIMER OF ALL
00006  * WARRANTIES.
00007  *
00008  */
00009 
00010 /* File: ArchiveFile.cc
00011  * Desc: This file contains the implementation of the ArchiveFile class
00012 */
00013 
00014 #include "global.h"
00015 
00016 ArchiveFile::ArchiveFile()      // Constructor
00017 {
00018 }
00019 
00020 ArchiveFile::~ArchiveFile()     // Destructor
00021 {
00022 }
00023 
00024 int ArchiveFile::GetNumMembers() const
00025 {
00026     return m_FileMap.size();
00027 }
00028 
00029 const char* ArchiveFile::GetMemberFileName(int i) const
00030 {
00031     return m_FileNames[i];
00032 }
00033 
00034 BinaryFile* ArchiveFile::GetMemberByProcName(const string& sSym)
00035 {
00036     // Get the index
00037     int idx = m_SymMap[sSym];
00038     // Look it up
00039     return GetMember(idx);
00040 }
00041 
00042 BinaryFile* ArchiveFile::GetMemberByFileName(const string& sFile)
00043 {
00044     // Get the index
00045     int idx = m_FileMap[sFile];
00046     // Look it up
00047     return GetMember(idx);
00048 }
00049 
00050 bool ArchiveFile::PostLoadMember(BinaryFile* pBF, void* handle)
00051 {
00052     return pBF->PostLoad(handle);
00053 }
00054 

Generated on Tue Sep 19 21:18:14 2006 for Boomerang by  doxygen 1.4.6