Definition at line 44 of file ImageArchiveRepositoryInFile.h. References Impala::Core::Array::ArrayListDelete(), GetDir(), Impala::Persistency::RepositoryInFileSystem::GetFile(), Impala::Core::Array::ImageArchive::GetImageData(), Impala::Core::Array::ImageArchive::GetImageDataList(), Impala::Persistency::ImageArchiveLocator::GetName(), Impala::Core::Array::ImageArchive::NrImages(), RepFS(), and Impala::Core::Array::WriteRawListVar(). 00045 { 00046 std::vector<Array2dScalarUInt8*> images; 00047 if (archive->GetImageDataList() != 0) 00048 { 00049 images = *(archive->GetImageDataList()); 00050 } 00051 else 00052 { 00053 for (int i=0 ; i<archive->NrImages() ; i++) 00054 { 00055 size_t blockSize = 0; 00056 UInt8* data = archive->GetImageData(i, blockSize); 00057 Array2dScalarUInt8* im = new Array2dScalarUInt8(blockSize, 1, 0, 00058 0, data, false); 00059 images.push_back(im); 00060 } 00061 } 00062 00063 String dir = GetDir(loc); 00064 File file = RepFS().GetFile(loc, dir, loc.GetName(), true, false); 00065 WriteRawListVar(images, file, true, true); 00066 if (archive->GetImageDataList() == 0) 00067 Core::Array::ArrayListDelete(&images); 00068 }
Here is the call graph for this function:
|