check transfer  0.1
Check data transfer for SDAccell OpenCL application
Public Member Functions | Public Attributes | List of all members
TF_Test Class Referenceabstract

Base class for testing device. More...

#include <tf_test.h>

Inheritance diagram for TF_Test:
TF_TestThread TF_CheckTransferIn TF_CheckTransferOut

Public Member Functions

virtual void GetResult ()
 Show result of test. More...
 
virtual int isComplete ()
 Return 1 when test is complete. More...
 
virtual int Prepare (int cnt)=0
 Prepare test. More...
 
virtual void Start ()=0
 Start of test. More...
 
virtual void StepMainThread ()
 Don't use. Reserve for future. More...
 
virtual void StepTable ()
 Show table. More...
 
virtual void Stop ()
 Stop of test. More...
 
 TF_Test (TableEngine *pTable)
 

Public Attributes

TableEnginem_pTemplateEngine
 

Detailed Description

Base class for testing device.

Definition at line 16 of file tf_test.h.

Constructor & Destructor Documentation

◆ TF_Test()

TF_Test::TF_Test ( TableEngine pTable)
inline

Definition at line 23 of file tf_test.h.

References Prepare(), and Start().

24  {
25  m_pTemplateEngine = pTable;
26  }
TableEngine * m_pTemplateEngine
Definition: tf_test.h:21

Member Function Documentation

◆ GetResult()

virtual void TF_Test::GetResult ( )
inlinevirtual

Show result of test.

Reimplemented in TF_TestThread.

Definition at line 65 of file tf_test.h.

Referenced by main().

65 {}

◆ isComplete()

virtual int TF_Test::isComplete ( )
inlinevirtual

Return 1 when test is complete.

Reimplemented in TF_TestThread.

Definition at line 49 of file tf_test.h.

Referenced by main().

49 { return 0; }

◆ Prepare()

virtual int TF_Test::Prepare ( int  cnt)
pure virtual

Prepare test.

Parameters
cntnumber of call function
Returns
1 - prepare complete, 0 - prepare don't complete

Function is called during test preparation. Preparation of the test can be very long. When preparation is complete function must be return 1.

Preparation of the all tests is complete when all tests return 1

Implemented in TF_TestThread.

Referenced by main(), and TF_Test().

◆ Start()

virtual void TF_Test::Start ( )
pure virtual

Start of test.

Implemented in TF_TestThread.

Referenced by main(), and TF_Test().

◆ StepMainThread()

virtual void TF_Test::StepMainThread ( )
inlinevirtual

Don't use. Reserve for future.

Definition at line 61 of file tf_test.h.

Referenced by main().

61 {}

◆ StepTable()

virtual void TF_Test::StepTable ( )
inlinevirtual

Show table.

Function is called with 100 ms period. Test must put status information in the test table into this function.

Reimplemented in TF_TestThread, TF_CheckTransferIn, and TF_CheckTransferOut.

Definition at line 58 of file tf_test.h.

Referenced by main().

58 {}

◆ Stop()

virtual void TF_Test::Stop ( )
inlinevirtual

Stop of test.

Reimplemented in TF_TestThread.

Definition at line 46 of file tf_test.h.

Referenced by main().

46 {}

Member Data Documentation

◆ m_pTemplateEngine

TableEngine* TF_Test::m_pTemplateEngine

The documentation for this class was generated from the following file: