27 bool infoMock(
const std::vector<PString> & vecInputFile){
29 for(std::vector<PString>::const_iterator itFile(vecInputFile.begin()); itFile != vecInputFile.end() && b; ++itFile){
32 size_t nbMessageIn(vecTmpFile.size());
33 std::cout <<
"Mock '"<<(*itFile)<<
"' : nbClockTime = " << nbMessageIn << std::endl;
41 int main(
int argc,
char** argv){
45 std::vector<PString> vecInputFile;
46 defaultMode.
getValue(vecInputFile,
"input");
std::vector< time_t > VecTime
Describe a mode in the program arguments.
bool getValue(T &value, const PString &optionName) const
Get the value of the option.
Parse the options passed to a program.
void parseArgument(int argc, char **argv)
Parse the arguments passed to the program.
void addOption(const PString &longOption, const PString &shortOption, OptionType::OptionType optionType, bool isRequired, const PString &docString)
Add an option in the OptionParser.
void setExampleShortOption(const PString &example)
Set the example usage of the program.
void setExampleLongOption(const PString &example)
Set the example usage of the program.
const OptionMode & getDefaultMode() const
Get default mode.
bool data_load(FILE *iter, T &data)
Load data from a message.
bool infoMock(const std::vector< PString > &vecInputFile)
Merge mock files.
int main(int argc, char **argv)
OptionParser createOptionParser()
Create the OptionParser of this program.