Go to the documentation of this file.
14 os<<
" \"file-series-version\" : \"1.0\",\n";
15 os<<
" \"files\" : [\n";
16 const auto lastItem = std::prev(fList.end());
17 for(
auto iter = fList.begin(); iter != fList.end(); ++iter)
19 os<<
" {\"name\" : \"";
43 for(
const auto& fSeries:timeFiles_)
45 writeOneBaseName(fSeries.first);
54 if(
auto [iter, found]=timeFiles_.findIf(
baseName); found )
56 return iter->second.insertIf(time, relFileName);
62 return timeFiles_.insertIf(
baseName, newList);
69 if(baseNames.
size()!= fileNames.
size() )
75 for(
size_t i=0; i<baseNames.
size(); i++)
77 if(!addTimeFile(baseNames[i], time, fileNames[i]))
void writeOneBaseName(const word &baseName)
Manages file pathes, manupulate and combines them.
word baseName(const word &w, char sep='.')
Find the base in a group separated by "." and return it.
virtual const word & name() const
Return the name of the stream.
#define fatalErrorInFunction
Report a fatal error and function name and exit the application.
bool insertIf(const keyType &k, const mappedType &v)
fileSeries(const fileSystem dest)
Map< word, TimeFileType > timeFiles_
Output file stream to send binary or ascii data to a file.
bool addTimeFile(const word &baseName, real time, const word &fileName)
fileSystem relative(const fileSystem &base) const
relative path of this this with respect to base
word wordPath() const
Path in word type.