37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
#ifndef OPENFPGA_DIGEST_H
|
|
#define OPENFPGA_DIGEST_H
|
|
|
|
/********************************************************************
|
|
* Include header files that are required by function declaration
|
|
*******************************************************************/
|
|
#include <fstream>
|
|
|
|
/********************************************************************
|
|
* Function declaration
|
|
*******************************************************************/
|
|
/* namespace openfpga begins */
|
|
namespace openfpga {
|
|
|
|
bool valid_file_stream(std::fstream& fp);
|
|
|
|
void check_file_stream(const char* fname,
|
|
std::fstream& fp);
|
|
|
|
std::string format_dir_path(const std::string& dir_path_to_format);
|
|
|
|
std::string find_path_file_name(const std::string& file_name);
|
|
|
|
std::string find_path_dir_name(const std::string& file_name);
|
|
|
|
void create_directory(const std::string& dir_path, const bool& recursive = true);
|
|
|
|
bool write_space_to_file(std::fstream& fp,
|
|
const size_t& num_space);
|
|
|
|
bool write_tab_to_file(std::fstream& fp,
|
|
const size_t& num_tab);
|
|
|
|
} /* namespace openfpga ends */
|
|
|
|
#endif
|