App/Toponaming: Clarify return value of addStringHasher
This commit is contained in:
@@ -473,22 +473,22 @@ public:
|
||||
(const App::DocumentObject* from, const App::DocumentObject* to) const;
|
||||
//@}
|
||||
|
||||
/** Called by property during properly save its containing StringHasher
|
||||
/** Called by a property during save to store its StringHasher
|
||||
*
|
||||
* @param hasher: the input hasher
|
||||
* @return Returns a pair<bool,int>. The boolean indicates if the
|
||||
* StringHasher has been saved before. The integer is the hasher index.
|
||||
* StringHasher has been added before. The integer is the hasher index.
|
||||
*
|
||||
* The StringHasher object is designed to be shared among multiple objects.
|
||||
* We must not save duplicate copies of the same hasher, and must be
|
||||
* able to restore with the same sharing relationship. This function returns
|
||||
* whether the hasher has been saved before by other objects, and the index
|
||||
* of the hasher. If the hasher has not been saved before, the object must
|
||||
* whether the hasher has been added before by other objects, and the index
|
||||
* of the hasher. If the hasher has not been added before, the object must
|
||||
* save the hasher by calling StringHasher::Save
|
||||
*/
|
||||
std::pair<bool,int> addStringHasher(const StringHasherRef & hasher) const;
|
||||
|
||||
/** Called by property to restore its containing StringHasher
|
||||
/** Called by property to restore its StringHasher
|
||||
*
|
||||
* @param index: the index previously returned by calling addStringHasher()
|
||||
* during save. Or if is negative, then return document's own string hasher.
|
||||
|
||||
Reference in New Issue
Block a user