check transfer  0.1
Check data transfer for SDAccell OpenCL application
table_engine_console.h
Go to the documentation of this file.
1 #ifndef TABLE_ENGINE_CONSOLE_H_
2 #define TABLE_ENGINE_CONSOLE_H_
3 
4 #include "table_engine.h"
5 #if defined(__linux__)
6 #include "term_table.h"
7 #endif
8 
10 {
11 public:
14 
15 public:
16  int CreateTable(const char *pColumnName[], unsigned nCount, unsigned isTStudio);
17  int AddRowTable();
18  int SetValueTable(unsigned nRow, unsigned nColumn, const char *fmt, ...);
19  //int SetValueTable(unsigned nRow, unsigned nColumn, const char *pVal);
20  int SetValueTable(unsigned nRow, unsigned nColumn, signed nVal, const char* format="%d");
21  int SetValueTable(unsigned nRow, unsigned nColumn, unsigned nVal, const char *format="%u");
22  int SetValueTable(unsigned nRow, unsigned nColumn, float dVal, const char *format="%f");
23  void ClearTable();
24  void SaveTable();
25  void UpdateTable();
26  void GetConsolePos(int& X, int& Y);
27  void SetConsolePos(int X, int Y);
28 
29 private:
31 #if defined(__linux__)
32  int m_C, m_R;
33  int WC, HC, WCL;
34  int WS, HS, XC, YC;
35  std::vector<struct row_t> rows;
36 
37  int get_screen(int *W, int *H);
38  int get_pos(int *X, int *Y);
39  void cell_draw(int x, int y, int w, int h);
40  void cell_draw_fix();
41  cell_t& get_cell(int row, int col);
42 #else
43 #endif
44 };
45 
46 #endif // TABLE_ENGINE_CONSOLE_H_
void SetConsolePos(int X, int Y)
void GetConsolePos(int &X, int &Y)
int CreateTable(const char *pColumnName[], unsigned nCount, unsigned isTStudio)
int SetValueTable(unsigned nRow, unsigned nColumn, const char *fmt,...)