You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
442 B
C++
16 lines
442 B
C++
2 years ago
|
// This file is under GNU General Public License 3.0
|
||
|
// see LICENSE.txt
|
||
|
|
||
|
#ifndef LIBPEPADAPTER_LIB_SLURP_HH
|
||
|
#define LIBPEPADAPTER_LIB_SLURP_HH
|
||
5 years ago
|
|
||
|
#include <string>
|
||
|
|
||
2 years ago
|
namespace pEp {
|
||
5 years ago
|
// reads a whole file and returns it as std::string
|
||
|
// throws std::runtime_error() if the file cannot be read. Empty file is not an error.
|
||
|
std::string slurp(const std::string& filename);
|
||
|
|
||
|
} // end of namespace pEp
|
||
|
|
||
2 years ago
|
#endif // LIBPEPADAPTER_LIB_SLURP_HH
|