#include <cmath>
#include <string>
#include <vector>
Go to the source code of this file.
Data Structures | |
struct | daemon_status |
Store various daemon status data. More... | |
Functions | |
double | ratio (double x1, double x2) |
std::string const | get_config_filename (std::string const &filename) |
bool | check_and_create_config_dir () |
std::string const | format (std::string const &orig, uint const maxlen) |
int | do_exec_command (std::string const &cmd, std::vector< std::string > const &args=std::vector< std::string >()) |
std::string const | do_open_file_or_dir (std::string const &base_dir, bool dir_only) |
bool | verify_argument (std::string const &str) |
Miscellaneous helpers for the GUI start
Definition in file oprof_start_util.h.
bool check_and_create_config_dir | ( | ) |
check_and_create_config_dir - make sure config dir is accessible
Returns true if the dir is accessible.
Definition at line 155 of file oprof_start_util.cpp.
References create_dir(), and get_config_filename().
Referenced by oprof_start::load_config_file().
int do_exec_command | ( | std::string const & | cmd, | |
std::vector< std::string > const & | args = std::vector< std::string >() | |||
) |
std::string const do_open_file_or_dir | ( | std::string const & | base_dir, | |
bool | dir_only | |||
) |
std::string const format | ( | std::string const & | orig, | |
uint const | maxlen | |||
) |
std::string const get_config_filename | ( | std::string const & | filename | ) |
double ratio | ( | double | x1, | |
double | x2 | |||
) | [inline] |
Definition at line 27 of file oprof_start_util.h.
Referenced by profile_container::select_filename().
bool verify_argument | ( | std::string const & | str | ) |