1 #ifndef DYNAMIC_DEPTH_INTERNAL_XMPMETA_FILE_H_ // NOLINT 2 #define DYNAMIC_DEPTH_INTERNAL_XMPMETA_FILE_H_ // NOLINT 3 4 #include <string> 5 6 namespace dynamic_depth { 7 namespace xmpmeta { 8 9 void WriteStringToFileOrDie(const std::string &data, 10 const std::string &filename); 11 void ReadFileToStringOrDie(const std::string &filename, std::string *data); 12 13 // Join two path components, adding a slash if necessary. If basename is an 14 // absolute path then JoinPath ignores dirname and simply returns basename. 15 std::string JoinPath(const std::string &dirname, const std::string &basename); 16 17 } // namespace xmpmeta 18 } // namespace dynamic_depth 19 20 #endif // DYNAMIC_DEPTH_INTERNAL_XMPMETA_FILE_H_ // NOLINT 21