28 size_t fileSize(inputFile.getFileSize());
29 size_t nbClockTime = ((fileSize -
sizeof(size_t))*(fileSize >=
sizeof(size_t) ))/
sizeof(
size_t);
30 FILE* fp = fopen(inputFile.c_str(),
"r+");
32 std::cerr <<
"restoreMockFile : cannot open file '"<<inputFile<<
"'" << std::endl;
35 fseek(fp, 0l, SEEK_SET);
36 bool b = data_save(fp, nbClockTime);
37 fseek(fp, 0l, SEEK_END);
int main(int argc, char **argv)
bool restoreAllMock(const std::vector< PPath > &vecInputFile)
Restore all mock files.
OptionParser createOptionParser()
Create the OptionParser of this program.
bool restoreMockFile(const PPath &inputFile)
Restore a mock file.