+++ /dev/null
-/*
- * W1Util.hh
- *
- * Created on: Nov 14, 2010
- * Author: lamikr
- */
-
-#ifndef W1UTIL_HH_
-#define W1UTIL_HH_
-
-#include <fstream>
-#include <string>
-#include <vector>
-
-#include "Date.hh"
-
-#include <stdbool.h>
-#include <dirent.h>
-#include <stdbool.h>
-
-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<std::string> get_subdirectories(const std::string& path);
- static std::vector<std::string> 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_ */