check transfer  0.1
Check data transfer for SDAccell OpenCL application
tf_test.h
Go to the documentation of this file.
1 /*
2  * tf_test.h
3  *
4  * Created on: Jan 29, 2017
5  * Author: Dmitry Smekhov
6  */
7 
8 #ifndef TF_TEST_H_
9 #define TF_TEST_H_
10 
11 class TableEngine;
12 
13 /**
14  * \brief Base class for testing device
15  */
16 class TF_Test
17 {
18 
19 public:
20 
22 
23  TF_Test( TableEngine *pTable )
24  {
25  m_pTemplateEngine = pTable;
26  }
27 
28  //! Prepare test
29  /**
30  * \param cnt number of call function
31  * \return 1 - prepare complete, 0 - prepare don't complete
32  *
33  * Function is called during test preparation.
34  * Preparation of the test can be very long.
35  * When preparation is complete function must be return 1.
36  *
37  * Preparation of the all tests is complete when all tests return 1
38  *
39  */
40  virtual int Prepare(int cnt) = 0;
41 
42  //! Start of test
43  virtual void Start() = 0;
44 
45  //! Stop of test
46  virtual void Stop() {}
47 
48  //! Return 1 when test is complete
49  virtual int isComplete() { return 0; }
50 
51  //! Show table
52  /**
53  *
54  * Function is called with 100 ms period.
55  * Test must put status information in the test table into this function.
56  *
57  */
58  virtual void StepTable() {}
59 
60  //! Don't use. Reserve for future
61  virtual void StepMainThread() {}
62 
63 
64  //! Show result of test
65  virtual void GetResult() {}
66 };
67 
68 
69 
70 
71 #endif /* TF_TEST_H_ */
virtual void Start()=0
Start of test.
virtual int Prepare(int cnt)=0
Prepare test.
virtual void StepMainThread()
Don't use. Reserve for future.
Definition: tf_test.h:61
virtual void Stop()
Stop of test.
Definition: tf_test.h:46
Base class for testing device.
Definition: tf_test.h:16
TableEngine * m_pTemplateEngine
Definition: tf_test.h:21
TF_Test(TableEngine *pTable)
Definition: tf_test.h:23
virtual void GetResult()
Show result of test.
Definition: tf_test.h:65
virtual void StepTable()
Show table.
Definition: tf_test.h:58
virtual int isComplete()
Return 1 when test is complete.
Definition: tf_test.h:49