10 #include <boost/date_time.hpp> 12 #include <yaml-cpp/yaml.h> 63 boost::posix_time::ptime
getDate();
82 void sleep(
double seconds);
void sleep(double seconds)
Have this thread sleep for some number of seconds.
const std::string loadFileToString(const std::string &path)
Loads a file to a string.
void createDirectory(const std::string &dir)
Creates a directory.
const std::pair< bool, YAML::Node > loadFileToYAML(const std::string &path)
Loads a file to a YAML node.
void createFile(std::ofstream &out, const std::string &file)
Creates a file and opens an output stream. Creates directories if they do not exist.
boost::posix_time::ptime getDate()
Get the current time (up to milliseconds)
std::vector< std::string > tokenize(const std::string &string, const std::string &separators)
Separates a string into tokens, based upon separators.
const std::string runCommand(const std::string &cmd)
Runs a command cmd and returns stdout as a string.
bool YAMLToFile(const YAML::Node &node, const std::string &file)
Write the contents of a YAML node out to a potentially new file.
const std::string resolvePath(const std::string &path)
Resolves file paths to their canonical form.
const std::pair< bool, std::vector< std::string > > listDirectory(const std::string &directory)
Lists of the contents of a directory.