Kea  2.3.9
file_utilities.h
Go to the documentation of this file.
1 // Copyright (C) 2021-2022 Internet Systems Consortium, Inc. ("ISC")
2 //
3 // This Source Code Form is subject to the terms of the Mozilla Public
4 // License, v. 2.0. If a copy of the MPL was not distributed with this
5 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 
7 #ifndef FILE_UTILITIES_H
8 #define FILE_UTILITIES_H
9 
10 #include <string>
11 
12 namespace isc {
13 namespace util {
14 namespace file {
15 
21 std::string getContent(const std::string& file_name);
22 
28 bool isDir(const std::string& name);
29 
30 } // namespace file
31 } // namespace util
32 } // namespace isc
33 
34 #endif // FILE_UTILITIES_H
bool isDir(const string &name)
Is a directory predicate.
string getContent(const string &file_name)
Get the content of a regular file.
Defines the logger used by the top-level component of kea-lfc.