Lines Matching defs:path

53 // The "path" class.
57 //! \brief A class to represent a path to a file.
59 //! The path class represents the route to a file or directory in the
64 //! It is important to note that the file pointed to by a path need not
67 class path {
69 //! \brief Internal representation of a path.
74 //! \brief Constructs a new path from a user-provided string.
77 //! code or by the user and constructs a new path object. The string
83 explicit path(const std::string&);
88 path(const path&);
93 path(const atf_fs_path_t *);
96 //! \brief Destructor for the path class.
98 ~path(void);
101 //! \brief Returns a pointer to a C-style string representing this path.
111 //! \brief Returns a string representing this path.
117 //! \brief Returns the branch path of this path.
119 //! Calculates and returns the branch path of this path. In other
122 path branch_path(void) const;
125 //! \brief Returns the leaf name of this path.
127 //! Calculates and returns the leaf name of this path. In other words,
133 //! \brief Checks whether this path is absolute or not.
135 //! Returns a boolean indicating if this is an absolute path or not;
141 //! \brief Checks whether this path points to the root directory or not.
143 //! Returns a boolean indicating if this is path points to the root
151 //! \brief Converts the path to be absolute.
153 //! \pre The path was not absolute.
155 path to_absolute(void) const;
160 path& operator=(const path&);
165 bool operator==(const path&) const;
170 bool operator!=(const path&) const;
173 //! \brief Concatenates a path with a string.
175 //! Constructs a new path object that is the concatenation of the
176 //! left-hand path with the right-hand string. The string is normalized
177 //! before the concatenation, and a path delimiter is introduced between
180 path operator/(const std::string&) const;
183 //! \brief Concatenates a path with another path.
185 //! Constructs a new path object that is the concatenation of the
186 //! left-hand path with the right-hand one. A path delimiter is
189 path operator/(const path&) const;
192 //! \brief Checks if a path has to be sorted before another one
195 bool operator<(const path&) const;
233 explicit file_info(const path&);
337 //! Constructs a new directory object representing the given path.
341 directory(const path&);
357 //! \brief Checks if the given path exists.
359 bool exists(const path&);
364 //! Given a program name (without slashes) looks for it in the path and
365 //! returns its full path name if found, otherwise an empty path.
370 //! \brief Checks if the given path exists, is accessible and is executable.
372 bool is_executable(const path&);
377 void remove(const path&);
382 void rmdir(const path&);