OpenFPGA/libopenfpga/libopenfpgautil/src/openfpga_digest.h

37 lines
1.1 KiB
C
Raw Normal View History

#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);
2020-02-15 16:03:00 -06:00
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);
2020-02-15 16:03:00 -06:00
2020-05-05 15:36:27 -05:00
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