BEntryOperationEngineBase::Entry: Add debug methods

Add GetPathOrName() and PathOrName() methods which try to get some kind
of usable path or at least a file name for the entry. Useful mainly for
debugging and error reporting cases.
This commit is contained in:
Ingo Weinhold
2014-06-15 17:21:00 +02:00
parent 9680cf0bce
commit 6077cad882
2 changed files with 72 additions and 2 deletions
@@ -1,5 +1,5 @@
/*
* Copyright 2013, Haiku, Inc. All Rights Reserved.
* Copyright 2013-2014, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
@@ -44,6 +44,12 @@ public:
const;
BString Path() const;
status_t GetPathOrName(BString& _path) const;
// Tries to return some kind of string
// representation. Useful only for debugging
// and error reporting.
BString PathOrName() const;
private:
const BDirectory* fDirectory;
const char* fPath;