ArchiveDirectory.cpp
Go to the documentation of this file.00001 //*** ArchiveDirectory.cpp *** 00002 00003 #include "ArchiveDirectory.h" 00004 00005 //*** GetPath *** 00006 00007 StringId ArchiveDirectory::GetPath() const 00008 { 00009 return path_; 00010 } 00011 00012 00013 //*** GetSubdirectoryCount *** 00014 00015 int ArchiveDirectory::GetSubdirectoryCount() const 00016 { 00017 return subdirectories_.GetItemCount(); 00018 } 00019 00020 00021 //*** GetSubdirectory *** 00022 00023 StringId ArchiveDirectory::GetSubdirectory(int index) const 00024 { 00025 return subdirectories_.Get(index); 00026 } 00027 00028 00029 //*** GetFileCount *** 00030 00031 int ArchiveDirectory::GetFileCount() const 00032 { 00033 return files_.GetItemCount(); 00034 } 00035 00036 00037 //*** GetFile *** 00038 00039 StringId ArchiveDirectory::GetFile(int index) const 00040 { 00041 return files_.Get(index); 00042 } 00043 00044 00045 //*** SetPath *** 00046 00047 void ArchiveDirectory::SetPath(const char* fullpath) 00048 { 00049 path_=StringId(fullpath); 00050 } 00051 00052 00053 //*** AddSubdirectory *** 00054 00055 void ArchiveDirectory::AddSubdirectory(const char* fullpath) 00056 { 00057 subdirectories_.Add(StringId(fullpath)); 00058 } 00059 00060 00061 //*** AddFile *** 00062 00063 void ArchiveDirectory::AddFile(const char* fullpath) 00064 { 00065 files_.Add(StringId(fullpath)); 00066 }
Reproduction/republishing of any material on this site without permission is strictly prohibited.
