![]() |
PhoenixMock
1.8.7
Tools to split/merge/print mock used in Phoenix
|
#include "string_utils.h"#include "convertToString.h"#include "OptionParser.h"#include "phoenix_mock.h"
Include dependency graph for main_split.cpp:Go to the source code of this file.
Functions | |
| OptionParser | createOptionParser () |
| Create the OptionParser of this program. More... | |
| int | main (int argc, char **argv) |
| std::string | phoenix_mockMakeOutputFile (const std::string &baseFileName, size_t indexFile, const std::string &extentionFile) |
| Make the output file name. More... | |
| bool | splitMock (const std::vector< std::string > &vecInputFile, const std::string &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 16 of file main_split.cpp.
References OptionType::FILENAME, and createReleaseCurl::parser.
Referenced by main().
Here is the caller graph for this function:| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 119 of file main_split.cpp.
References createOptionParser(), OptionMode::getValue(), createReleaseCurl::parser, and splitMock().
Here is the call graph for this function:| std::string phoenix_mockMakeOutputFile | ( | const std::string & | baseFileName, |
| size_t | indexFile, | ||
| const std::string & | 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 39 of file main_split.cpp.
References convertToString().
Referenced by splitMock().
Here is the call graph for this function:
Here is the caller graph for this function:| bool splitMock | ( | const std::vector< std::string > & | vecInputFile, |
| const std::string & | 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 55 of file main_split.cpp.
References data_load(), data_save(), eraseExtension(), getExtention(), phoenix_mockMakeOutputFile(), and splitVecMessage().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function: