41 #ifndef _asynchronousfileloadingworkunit_cpp
42 #define _asynchronousfileloadingworkunit_cpp
61 }
catch (std::exception&){
65 for(std::vector<String>::iterator CurrentFileName = Unit.
Filenames.begin(); CurrentFileName!=Unit.
Filenames.end(); CurrentFileName++)
67 std::ifstream File(CurrentFileName->c_str(), std::ios::binary | std::ios::ate);
70 MaxInt FileLength = File.tellg();
71 File.seekg(0,std::ios::beg);
75 Loading =
new RawFile(FileLength);
76 }
catch (std::exception&){
81 File.read((
char*)Loading->
Data, FileLength);
131 for(std::vector<String>::const_iterator CurrentFileName =
Filenames.begin();
133 CurrentFileName++, Index++)
135 if(*CurrentFileName==FileName)
152 for(RawFileContainer::iterator Iter=
FilesRaw.begin(); Iter!=
FilesRaw.end(); ++Iter)