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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user