ALPSCore reference
get_basename.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1998-2018 ALPS Collaboration. See COPYRIGHT.TXT
3  * All rights reserved. Use is subject to license terms. See LICENSE.TXT
4  * For use in publications, see ACKNOWLEDGE.TXT
5  */
6 
7 #ifndef ALPS_UTILITY_FS_GET_BASENAME_HPP_b868097c679f4cd09e0a7f9c3f413406
8 #define ALPS_UTILITY_FS_GET_BASENAME_HPP_b868097c679f4cd09e0a7f9c3f413406
9 
10 
11 #include <alps/config.hpp>
12 #include <string>
13 
14 namespace alps { namespace fs {
19  std::string get_basename(const std::string& path);
20 } }
21 
22 #endif /* ALPS_UTILITY_FS_GET_BASENAME_HPP_b868097c679f4cd09e0a7f9c3f413406 */
std::string get_basename(const std::string &path)
Returns the base name of the file (removing leading directories)