![]() |
![]() |
DD4hep - The AIDA detector description toolkit for high energy physics experiments
DD4hep
Rev:Unversioneddirectory
|
#include <Path.h>
Classes | |
class | detail |
Helpers. More... | |
Public Member Functions | |
Path () | |
Default constructor. More... | |
Path (const std::string &c) | |
Initializing constructor. More... | |
Path (const Path &c) | |
Copy constructor. More... | |
template<class Iter > | |
Path (Iter _begin, Iter _end) | |
Assigning constructor. More... | |
~Path () | |
Default destructor. More... | |
Path & | operator= (const Path &c) |
Assignment operator from Path object. More... | |
Path & | operator= (const std::string &c) |
Assignment operator from string object. More... | |
Path & | append (const std::string &c) |
Append operation. More... | |
Path & | operator/= (const Path &c) |
Append operation. More... | |
Path & | operator/= (const std::string &c) |
Append operation. More... | |
Path | normalize () const |
Normalize path name. More... | |
Path | parent_path () const |
Parent's path. More... | |
Path | filename () const |
The file name of the path. More... | |
Path | file_path () const |
The full file path of the object. More... | |
Path & | remove_filename () |
Manipulator: remove the file name part. Leaves the parent path. More... | |
const std::string & | native () const |
String representation of thre Path object. More... | |
const char * | string_data () const |
String representation of thre Path object. More... | |
size_t | parent_path_end () const |
Index of the parent's path end. More... | |
Path handling class.
Normally this could as well be replaced by boost::filesystem::path.
However, the LC folks do not like the additional link-dependency. Hence this small extraction. The main code comes from the boost implementation.
See http://www.boost.org/LICENSE_1_0.txt for the license and the filesystem library home page: http://www.boost.org/libs/filesystem
|
inline |
|
inline |
Path & Path::append | ( | const std::string & | c | ) |
Path Path::file_path | ( | ) | const |
Path Path::filename | ( | ) | const |
|
inline |
String representation of thre Path object.
Definition at line 90 of file Path.h.
Referenced by normalize().
Path Path::normalize | ( | ) | const |
Normalize path name.
Definition at line 112 of file Path.cpp.
References filename(), native(), and remove_filename().
|
inline |
|
inline |
size_t Path::parent_path_end | ( | ) | const |
Path & Path::remove_filename | ( | ) |
Manipulator: remove the file name part. Leaves the parent path.
Definition at line 199 of file Path.cpp.
Referenced by normalize().
|
inline |