![]() |
PhoenixClockMock
2.0.0
Tool to manipulate mock of clock (split, merge and get info)
|
Go to the source code of this file.
Functions | |
OptionParser | createOptionParser () |
Create the OptionParser of this program. More... | |
int | main (int argc, char **argv) |
PPath | phoenix_mockMakeOutputFile (const PPath &baseFileName, size_t indexFile, const PPath &extentionFile) |
Make the output file name. More... | |
bool | splitMock (const std::vector< PPath > &vecInputFile, const PPath &outputFile, size_t offsetPart, size_t sizePart, size_t nbPart) |
Merge mock files. More... | |
OptionParser createOptionParser | ( | ) |
Create the OptionParser of this program.
Definition at line 15 of file main_split.cpp.
References OptionParser::addOption(), OptionType::FILENAME, OptionParser::setExampleLongOption(), and OptionParser::setExampleShortOption().
Referenced by main().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 118 of file main_split.cpp.
References createOptionParser(), OptionParser::getDefaultMode(), OptionMode::getValue(), OptionParser::parseArgument(), and splitMock().
PPath phoenix_mockMakeOutputFile | ( | const PPath & | baseFileName, |
size_t | indexFile, | ||
const PPath & | extentionFile | ||
) |
Make the output file name.
baseFileName | : base name of the file |
indexFile | : index of hte file |
extentionFile | : extention of the file |
Definition at line 38 of file main_split.cpp.
References PString::toString().
Referenced by splitMock().
bool splitMock | ( | const std::vector< PPath > & | vecInputFile, |
const PPath & | outputFile, | ||
size_t | offsetPart, | ||
size_t | sizePart, | ||
size_t | nbPart | ||
) |
Merge mock files.
vecInputFile | : vector of input files to be merged |
outputFile | : output file name to be saved |
offsetPart | : offset of the first message to be extracted in a split mock |
sizePart | : size of each split part (number of messages in each part to be split) |
nbPart | : number of output mock to be created (0 means automatic by respect to –offset and –sizepart) |
Definition at line 54 of file main_split.cpp.
References data_load(), data_save(), PPath::eraseExtension(), PPath::getExtension(), phoenix_mockMakeOutputFile(), and splitVecTime().
Referenced by main().