New Session class to contain the list of sources. Loading and Saving of

session files in XML. Verified deletion of Nodes, Groups and Sources.
This commit is contained in:
brunoherbelin
2020-05-02 13:26:57 +02:00
parent bdb092dddb
commit cc03e7b7cd
33 changed files with 1033 additions and 377 deletions

View File

@@ -12,13 +12,23 @@
namespace SystemToolkit
{
// get the OS dependent path where to store settings
std::string settingsPath();
// builds the OS dependent complete file name for a settings file
std::string settingsFileCompletePath(std::string basefilename);
// get fixed length string (17 chars) YYYYMMDDHHmmssiii
std::string date_time_string();
bool fileExists(const std::string& path);
bool createDirectory(const std::string& path);
// get the OS dependent path where to store settings
std::string settings_path();
// builds the OS dependent complete file name for a settings file
std::string settings_prepend_path(const std::string& basefilename);
// extract the base file name from a full URI (e.g. file:://home/me/toto.mpg -> toto)
std::string base_filename(const std::string& uri);
// true of file exists
bool file_exists(const std::string& path);
// true if directory could be created
bool create_directory(const std::string& path);
}