Class: TBaseCopyTest

Declaration: CopyTest.h

Taxonomy Categories:

Member Functions:


Interface Category:

Developer Tool Programmer Interface.

Inherits From:

TBaseComparisonTest

Inherited By:

TCopyTestOf

Purpose:

An abstract base class derived from TBaseComparisonTest that defines the protocol used for TCopyTestOf tests. TBaseCopyTest tests the copying of the target using the global Copy function.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

TBaseCopyTest cannot be used directly. Use the template class TCopyTestOf or the TCopyTestOf macros. The template class defines all the functions that you must override for TBaseCopyTest.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TBaseCopyTest::~TBaseCopyTest

virtual ~ TBaseCopyTest ()

Interface Category:

Developer Tool Programmer Interface.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TBaseCopyTest::CopyInfo

virtual void CopyInfo (TDictionaryOf < TStandardText, TText >& infoDict) const

Interface Category:

Developer Tool Programmer Interface.

Purpose:

Framework function that derived classes can override to provide metainformation about themselves.

Calling Context:

Called by Test framework and test logging classes.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TBaseCopyTest::TBaseCopyTest

TBaseCopyTest ()

Interface Category:

Developer Tool Programmer Interface.

Purpose:

Default constructor.

Calling Context:

Called by the stream-in operators and RunTest.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TBaseCopyTest::Test

virtual void Test ()

Interface Category:

Developer Tool Programmer Interface.

Purpose:

Performs the test. It copies the target then compares the resulting object to the original. The copied object is not permitted to be the same as the original object.

Calling Context:

Called by Test framework. Do not 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: TBaseCopyTest::CopyTarget

virtual void * CopyTarget ()

Interface Category:

Developer Tool Programmer Interface.

Purpose:

Returns a copy of the target that has been allocated on the heap.

Calling Context:

Called by Test framework. Do not call this function directly.

Parameters:

Return Value:

Returns a copy of the target that has been allocated on the heap.

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.