Lines Matching defs:BEntry

12 	BEntry and entry_ref implementations.
204 \class BEntry
207 The BEntry class defines objects that represent "locations" in the file system
209 example, when you create a BEntry thus:
212 BEntry entry("/boot/home/fido");
215 ...you're telling the BEntry object to represent the location of the file
229 //! Creates an uninitialized BEntry object.
235 - operator=(const BEntry&)
237 BEntry::BEntry()
246 //! Creates a BEntry initialized to the given directory and path combination.
247 /*! If traverse is true and \c dir/path refers to a symlink, the BEntry will
248 refer to the linked file; if false, the BEntry will refer to the symlink itself.
256 BEntry::BEntry(const BDirectory *dir, const char *path, bool traverse)
266 //! Creates a BEntry for the file referred to by the given entry_ref.
267 /*! If traverse is true and \a ref refers to a symlink, the BEntry
268 will refer to the linked file; if false, the BEntry will refer
275 BEntry::BEntry(const entry_ref *ref, bool traverse)
285 //! Creates a BEntry initialized to the given path.
288 traverse is true, the BEntry will refer to the linked file. If traverse is false,
289 the BEntry will refer to the symlink itself.
296 BEntry::BEntry(const char *path, bool traverse)
306 //! Creates a copy of the given BEntry.
308 \see operator=(const BEntry&)
310 BEntry::BEntry(const BEntry &entry)
319 //! Frees all of the BEntry's allocated resources.
322 BEntry::~BEntry()
335 BEntry::InitCheck() const
347 BEntry::Exists() const
356 BEntry::Name() const
377 BEntry::GetStat(struct stat *result) const
385 /*! \brief Reinitializes the BEntry to the path or directory path combination,
393 BEntry::SetTo(const BDirectory *dir, const char *path, bool traverse)
418 /*! \brief Reinitializes the BEntry to the entry_ref, resolving symlinks if
426 BEntry::SetTo(const entry_ref *ref, bool traverse)
440 /*! \brief Reinitializes the BEntry object to the path, resolving symlinks if
448 BEntry::SetTo(const char *path, bool traverse)
458 /*! \brief Reinitializes the BEntry to an uninitialized BEntry object */
460 BEntry::Unset()
477 /*! \brief Gets an entry_ref structure for the BEntry.
486 BEntry::GetRef(entry_ref *ref) const
506 /*! \brief Gets the path for the BEntry.
515 BEntry::GetPath(BPath *path) const
527 /*! \brief Gets the parent of the BEntry as another BEntry.
533 BEntry entry("/boot/home/fido");
557 \param entry pointer to a pre-allocated BEntry object into which the result is stored
564 BEntry::GetParent(BEntry *entry) const
596 /*! \brief Gets the parent of the BEntry as a BDirectory.
607 BEntry::GetParent(BDirectory *dir) const
645 BEntry::GetName(char *buffer) const
662 /*! \brief Renames the BEntry to path, replacing an existing entry if clobber is true.
664 NOTE: The BEntry must refer to an existing file. If it is abstract, this method will fail.
680 BEntry::Rename(const char *path, bool clobber)
688 BEntry target;
705 /*! \brief Moves the BEntry to directory or directory+path combination, replacing an existing entry if clobber is true.
707 NOTE: The BEntry must refer to an existing file. If it is abstract, this method will fail.
723 BEntry::MoveTo(BDirectory *dir, const char *path, bool clobber)
736 BEntry target;
748 descriptors are closed. The BEntry object, however, becomes abstract and
756 BEntry::Remove()
764 /*! \brief Returns true if the BEntry and \c item refer to the same entry or
768 - true - Both BEntry objects refer to the same entry or they are both uninitialzed
769 - false - The BEntry objects refer to different entries
772 BEntry::operator==(const BEntry &item) const
795 /*! \brief Returns false if the BEntry and \c item refer to the same entry or
799 - true - The BEntry objects refer to different entries
800 - false - Both BEntry objects refer to the same entry or they are both uninitialzed
803 BEntry::operator!=(const BEntry &item) const
809 /*! \brief Reinitializes the BEntry to be a copy of the argument
814 BEntry&
815 BEntry::operator=(const BEntry &item)
837 void BEntry::_PennyEntry1(){}
838 void BEntry::_PennyEntry2(){}
839 void BEntry::_PennyEntry3(){}
840 void BEntry::_PennyEntry4(){}
841 void BEntry::_PennyEntry5(){}
842 void BEntry::_PennyEntry6(){}
845 /*! \brief Updates the BEntry with the data from the stat structure according to the mask.
848 BEntry::set_stat(struct stat &st, uint32 what)
882 BEntry::set(int dirFD, const char *path, bool traverse)
1018 BEntry::set_name(const char *name)
1049 BEntry::_Rename(BEntry& target, bool clobber)
1077 BEntry::Dump(const char *name)
1120 BEntry entry(path);