Class: TBaseFlattenResurrectTest

Declaration: FlattenResurrectTest.h

Taxonomy Categories:

Member Functions:


Interface Category:

Developer Tool Programmer Interface.

Inherits From:

TBaseComparisonTest

Inherited By:

TFlattenResurrectTestOf

Purpose:

Abstract base class derived from TBaseComparisonTest that defines the protocol used for TFlattenResurrectTestOf tests. TBaseFlattenResurrectTest tests the flattening and resurrecting of the target using the global Flatten and Resurrect functions.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

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

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Member Function: TBaseFlattenResurrectTest::~TBaseFlattenResurrectTest

virtual ~ TBaseFlattenResurrectTest ()

Interface Category:

Developer Tool Programmer Interfacer

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: TBaseFlattenResurrectTest::operator<<=

virtual TStream & operator <<= (TStream & source)

Interface Category:

Developer Tool Programmer Interfacer

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TBaseFlattenResurrectTest::operator>>=

virtual TStream & operator >>=(TStream & destination) const

Interface Category:

Developer Tool Programmer Interfacer

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TBaseFlattenResurrectTest::CopyInfo

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

Interface Category:

Developer Tool Programmer Interfacer

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: TBaseFlattenResurrectTest::TBaseFlattenResurrectTest

  1. TBaseFlattenResurrectTest ()
  2. TBaseFlattenResurrectTest (const TBaseFlattenResurrectTest & source)

Interface Category:

Developer Tool Programmer Interfacer

Purpose:

  1. Default constructor.
  2. Copy constructor.

Calling Context:

  1. Called by the stream-in operators.
  2. Called to copy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TBaseFlattenResurrectTest::operator=

TBaseFlattenResurrectTest & operator =(const TBaseFlattenResurrectTest & rhs)

Interface Category:

Developer Tool Programmer Interfacer

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

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: TBaseFlattenResurrectTest::Test

virtual void Test ()

Interface Category:

Developer Tool Programmer Interfacer

Purpose:

Performs the test. Flattens and resurrects the target object at the freeze levels of same team, same session, and deep freeze. Each resurrected object is compared with the original target object. Test allows a resurrected object to be the same as the original object. Test also checks to see that the stream position is consistent before and after the resurrect operation.

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: TBaseFlattenResurrectTest::GetTestStream

TRandomAccessStream & GetTestStream ()

Interface Category:

Developer Tool Programmer Interfacer

Purpose:

Returns the test stream.

Calling Context:

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

Parameters:

Return Value:

Returns the test stream.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TBaseFlattenResurrectTest::FlattenTarget

virtual void FlattenTarget ()

Interface Category:

Developer Tool Programmer Interfacer

Purpose:

Flattens the target to the test stream.

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: TBaseFlattenResurrectTest::ResurrectTarget

virtual void * ResurrectTarget ()

Interface Category:

Developer Tool Programmer Interfacer

Purpose:

Resurrects the target from the test stream and returns the resurrected target object.

Calling Context:

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

Parameters:

Return Value:

Returns the resurrected target object.

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.