Treelite
include
treelite
filesystem.h
Go to the documentation of this file.
1
7
#ifndef TREELITE_FILESYSTEM_H_
8
#define TREELITE_FILESYSTEM_H_
9
10
#include <string>
11
#include <vector>
12
13
namespace
treelite
{
14
namespace
filesystem {
15
20
void
CreateDirectoryIfNotExist
(
const
char
* dirpath);
21
28
void
WriteToFile
(
const
std::string& filename,
const
std::string& content);
29
35
void
WriteToFile
(
const
std::string& filename,
const
std::vector<char>& content);
36
37
}
// namespace filesystem
38
}
// namespace treelite
39
40
#endif // TREELITE_FILESYSTEM_H_
treelite
Definition:
annotator.h:14
treelite::filesystem::CreateDirectoryIfNotExist
void CreateDirectoryIfNotExist(const char *dirpath)
Create a directory with a given name if one doesn't exist already.
Definition:
filesystem.cc:54
treelite::filesystem::WriteToFile
void WriteToFile(const std::string &filename, const std::string &content)
Write a sequence of strings to a text file, with newline character ( ) inserted between strings...
Definition:
filesystem.cc:88
Generated by
1.8.13