X-Git-Url: http://pilppa.org/gitweb/?p=lib1wire.git;a=blobdiff_plain;f=src%2FW1Util.hh;fp=src%2FW1Util.hh;h=0000000000000000000000000000000000000000;hp=cbc74ab26f4ec14254c4142fcacc1c31b0fb62f6;hb=a7002b0a87c5f17b542dfbd44f482014a191df97;hpb=da203ad44792ca37320768f4cbe68587c4806910 diff --git a/src/W1Util.hh b/src/W1Util.hh deleted file mode 100644 index cbc74ab..0000000 --- a/src/W1Util.hh +++ /dev/null @@ -1,39 +0,0 @@ -/* - * W1Util.hh - * - * Created on: Nov 14, 2010 - * Author: lamikr - */ - -#ifndef W1UTIL_HH_ -#define W1UTIL_HH_ - -#include -#include -#include - -#include "Date.hh" - -#include -#include -#include - -namespace w1 { - class W1Util { - public: - W1Util(); - virtual ~W1Util(); - static std::string concat_paths(std::string path_start, std::string path_end); - static std::string concat_paths(const char *path_start, const char *path_end); - static bool is_subdirectory(const char *path, dirent *direntry); - static bool is_datafile(const char *path, dirent *direntry); - static std::vector get_subdirectories(const std::string& path); - static std::vector get_data_files(const std::string& path); - static plp::Date parse_date_str(std::string date_str); - static char *parse_directory_path(const char *file_path); - static bool mkdirs(const char *path); - static std::ofstream *open_for_writing(const char *path); - }; -} - -#endif /* W1UTIL_HH_ */