namespace holding utility functions for example programs More...
Functions | |
void | print_help (const std::string &program, bool two_files) |
print help for the single file command line parser More... | |
int | parse_single_file_args (int argc, char **argv, std::string &filename, std::string &treename) |
single file command line parser More... | |
int | parse_two_file_args (int argc, char **argv, std::pair< std::string, std::string > &src, std::pair< std::string, std::string > &dest) |
potentially two file command line parser More... | |
namespace holding utility functions for example programs
These functions are not supposed to be important to the logic of the HDTree C++ API
int hdtree::examples::parse_single_file_args | ( | int | argc, |
char ** | argv, | ||
std::string & | filename, | ||
std::string & | treename | ||
) |
single file command line parser
[in] | argc | arg count from main |
[in] | argv | arg array from main |
[out] | filename | deduced output file name |
[out] | treename | deduced output tree name |
int hdtree::examples::parse_two_file_args | ( | int | argc, |
char ** | argv, | ||
std::pair< std::string, std::string > & | src, | ||
std::pair< std::string, std::string > & | dest | ||
) |
potentially two file command line parser
[in] | argc | arg count from main |
[in] | argv | arg array from main |
[out] | src | deduced source file and tree names |
[out] | dest | deduced destination file and tree names |
void hdtree::examples::print_help | ( | const std::string & | program, |
bool | two_files | ||
) |
print help for the single file command line parser
[in] | program | name of program that is being run |
[in] | two_files | true if searching for two files |