Definition at line 32 of file AllParameterFileRepositoryInFile.h. References Impala::Util::IOBuffer::Available(), Impala::Persistency::ModelLocator::GetConcept(), GetDir(), Impala::Persistency::RepositoryInFileSystem::GetFile(), Impala::Persistency::File::GetReadBuffer(), Impala::Util::Read(), RepFS(), and Impala::Persistency::File::Valid(). 00033 { 00034 typedef std::vector<Util::PropertySet*> VecPS; 00035 String dir = GetDir(loc); 00036 String name = loc.GetConcept() + ".allparameters"; 00037 File file = RepFS().GetFile(loc, dir, name, false, false); 00038 if (!file.Valid()) 00039 return 0; 00040 00041 VecPS* res = new VecPS; 00042 Util::IOBuffer* buf = file.GetReadBuffer(); 00043 if (buf) 00044 { 00045 while (buf->Available()) 00046 { 00047 Util::PropertySet* ps = new Util::PropertySet; 00048 Read(ps, buf); 00049 if (ps->Size() != 0) 00050 (*res).push_back(ps); 00051 } 00052 delete buf; 00053 } 00054 return res; 00055 }
Here is the call graph for this function: ![]()
|