further implementing

This commit is contained in:
jriegel
2014-12-13 11:58:58 +01:00
committed by Stefan Tröger
parent 5a4c14ecc1
commit 6a26cbc2a1
7 changed files with 74 additions and 10 deletions

View File

@@ -30,7 +30,7 @@ void JtReader::setFile(const std::string fileName)
this->_fileName = fileName;
}
void JtReader::readToc()
const std::vector<TOC_Entry>& JtReader::readToc()
{
ifstream strm;
@@ -56,11 +56,11 @@ void JtReader::readToc()
I32 Entry_Count(cont);
vector<TOC_Entry> TocEntries(Entry_Count);
TocEntries.resize(Entry_Count);
for (std::vector<TOC_Entry>::iterator i = TocEntries.begin(); i != TocEntries.end(); ++i)
i->read(cont);
return TocEntries;
}