Debian Codegraph @

inst/include/sourcetools/read/read.h

raw
1 #ifndef SOURCETOOLS_READ_READ_H
2 #define SOURCETOOLS_READ_READ_H
3
4 #include <vector>
5 #include <string>
6
7 #include <sourcetools/read/MemoryMappedReader.h>
8
9 namespace sourcetools {
10
11 inline bool read(const std::string& absolutePath, std::string* pContent)
12 {
13 return detail::MemoryMappedReader::read(absolutePath.c_str(), pContent);
14 }
15
16 inline bool read_lines(const std::string& absolutePath,
17 std::vector<std::string>* pLines)
18 {
19 return detail::MemoryMappedReader::read_lines(absolutePath.c_str(), pLines);
20 }
21
22 } // namespace sourcetools
23
24 #endif /* SOURCETOOLS_READ_READ_H */