DDS
ver. 3.4
|
a BOOST helpers namespace More...
Typedefs | |
typedef boost::shared_ptr< boost::thread > | Thread_PTR_t |
A smart pointer wrapper for boost::thread pointers. More... | |
Functions | |
std::string | get_temp_dir (const std::string &_prefix) |
void | get_files_by_extension (const fs::path &_root, const std::string &_ext, std::vector< fs::path > &_ret) |
The function return a list of files in the deirectory with specified extension. More... | |
std::string | normalize_path (const std::string &_path) |
The normalize_path() function removes '/' characters at the end of the of the input pathname. More... | |
bool | is_file (const std::string &_pathname) |
The is_file() function checks whether the pathname represents a file or not. More... | |
bool | is_directory (const std::string &_pathname) |
the is_directory() function checks whether the pathname represents a directory or not More... | |
void | conflicting_options (const boost::program_options::variables_map &_vm, const char *_opt1, const char *_opt2) |
The conflicting_options function used to check that 'opt1' and 'opt2' are not specified at the same time. More... | |
void | option_dependency (const boost::program_options::variables_map &_vm, const char *_for_what, const char *_required_option) |
The option_dependency function used to check that if 'for_what' is specified, then 'required_option' is specified too. More... | |
a BOOST helpers namespace
typedef boost::shared_ptr<boost::thread> MiscCommon::BOOSTHelper::Thread_PTR_t |
A smart pointer wrapper for boost::thread pointers.
|
inline |
The conflicting_options function used to check that 'opt1' and 'opt2' are not specified at the same time.
[in] | _vm | - a BOOST program options variable map. |
[in] | _opt1 | - the first option to check. |
[in] | _opt2 | - the second option to check. |
std::runtime_error | - thrown if the 'opt1' and 'opt2' are specified at the same time. |
|
inline |
The function return a list of files in the deirectory with specified extension.
[in] | _root | - root of the directory to process. |
[in] | _ext | - extension, for example ".log". |
[out] | _ret | - vector of pathes to files. |
|
inline |
|
inline |
the is_directory() function checks whether the pathname represents a directory or not
[in] | _pathname | - a path name. |
|
inline |
The is_file() function checks whether the pathname represents a file or not.
[in] | _pathname | - a full path to check. |
|
inline |
The normalize_path() function removes '/' characters at the end of the of the input pathname.
[in] | _path | - path to process. |
|
inline |
The option_dependency function used to check that if 'for_what' is specified, then 'required_option' is specified too.
[in] | _vm | - a BOOST program options variable map. |
[in] | _for_what | - option to check. |
[in] | _required_option | - required option. |
std::runtime_error | - thrown if 'for_what' is specified but there is no 'required_option' found. |