Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
MCollectible
Inherited By:
None.
Purpose:
Serves as a lookup key for objects stored in an archive. A TArchiveKey object contains the name and the locale of an archived object.
Instantiation:
Allocate on the heap or the stack. TArchiveKey is not generally instantiated by clients, but by a TArchiveIterator. The client is then responsible for deleting TArchiveKey instances returned by a TArchiveIterator.
Deriving Classes:
This class is designed to be used directly. Do not derive.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
virtual ~ TArchiveKey ()
Interface Category:
API.
Purpose:
Destructor.
Calling Context:
Call this function directly.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Member Function: TArchiveKey::operator=
TArchiveKey & operator =(const TArchiveKey & otherKey)
Interface Category:
API.
Purpose:
Assignment operator.
Calling Context:
Call this function directly.
Parameters:
- const TArchiveKey & otherKey -The source object for the assignment.
Return Value:
A non-const reference to the left-hand side object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Member Function: TArchiveKey::Hash
virtual long Hash () const
Interface Category:
API.
Purpose:
Overrides inherited MCollectible function.
Calling Context:
Call this function directly.
Parameters:
Return Value:
The numeric value of the hash.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Member Function: TArchiveKey::operator>>=
virtual TStream & operator >>=(TStream & towhere) const
Interface Category:
API.
Purpose:
Stream-out operator.
Calling Context:
Call this function directly.
Parameters:
- TStream & toWhere -The stream on which the object will be put.
Return Value:
Returns a reference to the stream on which the object has been put.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Member Function: TArchiveKey::operator<<=
virtual TStream & operator <<= (TStream & towhere)
Interface Category:
API.
Purpose:
Stream-in operator.
Calling Context:
Call this function directly.
Parameters:
- TStream & fromWhere -The stream from which the object is taken.
Return Value:
Returns a reference to the stream from which the object is taken.
Exceptions:
Throws an exception if this TArchiveKey instance is not the correct version.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Member Function: TArchiveKey::GetObjectName
void GetObjectName (TText & key) const
Interface Category:
API.
Purpose:
Fills in the given text with the name of the object represented by this archive key.
Calling Context:
Call this function directly.
Parameters:
- TText & key -The text to be filled in with the name of the object represented by this archive key.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Member Function: TArchiveKey::GetLocale
TLocale GetLocale () const
Interface Category:
API.
Purpose:
Returns the locale containing the object represented by this archive key.
Calling Context:
Call this function directly.
Parameters:
Return Value:
The locale for this object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Member Function: TArchiveKey::operator==
bool operator ==(const TArchiveKey & otherKey) const
Interface Category:
API.
Purpose:
Comparison operator. Two TArchiveKeys are considered equal if their object names are equal and their locales are equal. Text styles are not considered when comparing object names.
Calling Context:
Call this function directly.
Parameters:
- const TArchiveKey & otherKey -The key to be compared to this key.
Return Value:
Returns true if and only if the two TArchiveKeys have the same object name (regardless of text styles) and the same locales.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
- TArchiveKey (const TText & key, const TLocale & locale)
- TArchiveKey (const TArchiveKey & otherKey)
- TArchiveKey ()
Interface Category:
API.
Purpose:
- Create a TArchiveKey from the given object name and the given locale.
- Copy constructor.
- Default constructor. Creates an uninitialized TArchiveKey.
Calling Context:
- Normal member function for creating a TArchiveKey.
- Called to copy an object.
- Called only by the ::Resurrect function. It should not be called otherwise.
Parameters:
- const TText & key -The name of the archived object represented by this key.
- const TLocale & locale -The locale associated with the archived object represented by this key.
- const TArchiveKey & otherKey -The TArchiveKey to be copied.
- Takes no parameters.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Not multithread safe.
Other Considerations:
None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.