CBuild
C++ build system with scripts written in c++
Loading...
Searching...
No Matches
files.hpp
Go to the documentation of this file.
1
23#ifndef __CBUILD_FILE_HPP__
24#define __CBUILD_FILE_HPP__
25// C++ libraries
26#include "string"
27// Code
28namespace CBuild {
29namespace fs {
37int replace(std::string file, std::string token, std::string data);
54int set_var(std::string file, std::string var_type, std::string var_name, std::string data);
61std::string path_to_file(std::string in);
62} // namespace fs
63} // namespace CBuild
64
65#endif // __CBUILD_FILE_HPP__
int set_var(std::string file, std::string var_type, std::string var_name, std::string data)
Set value of variable with type var_type wth name var_name to data This function loocks for variable ...
Definition files.cpp:63
std::string path_to_file(std::string in)
Convert path to filename by replacing '\' by '.'.
Definition files.cpp:118
int replace(std::string file, std::string token, std::string data)
Replace [token] by [data] in [file].
Definition files.cpp:28
Filebuffer for CBuild ecosystem.
Definition Build.hpp:34