Vuo  2.0.0
VuoTable.h
Go to the documentation of this file.
1 
10 #pragma once
11 
12 #include "VuoListPosition.h"
13 #include "VuoTableFormat.h"
14 #include "VuoTextSort.h"
15 #include "VuoSortOrder.h"
16 #include "VuoList_VuoText.h"
17 
29 typedef struct
30 {
31  void *data;
32  size_t rowCount;
33  size_t columnCount;
34 } VuoTable;
35 
37 struct json_object * VuoTable_getJson(const VuoTable value);
38 
40 #define VuoTable_REQUIRES_INTERPROCESS_JSON
42 
43 char * VuoTable_getSummary(const VuoTable value);
44 
48 VuoTable VuoTable_sort_VuoInteger(VuoTable table, VuoInteger columnIndex, VuoTextSort sortType, VuoSortOrder sortOrder, bool firstRowIsHeader);
49 VuoTable VuoTable_sort_VuoText(VuoTable table, VuoText columnHeader, VuoTextSort sortType, VuoSortOrder sortOrder, bool firstRowIsHeader);
51 VuoList_VuoText VuoTable_getRow_VuoInteger(VuoTable table, VuoInteger rowIndex, bool includeHeader);
52 VuoList_VuoText VuoTable_getRow_VuoText(VuoTable table, VuoText rowHeader, bool includeHeader);
53 VuoList_VuoText VuoTable_getColumn_VuoInteger(VuoTable table, VuoInteger columnIndex, bool includeHeader);
54 VuoList_VuoText VuoTable_getColumn_VuoText(VuoTable table, VuoText columnHeader, bool includeHeader);
58 VuoText VuoTable_getItem_VuoText_VuoText(VuoTable table, VuoText rowHeader, VuoText columnHeader);
61 VuoTable VuoTable_changeRow_VuoInteger(VuoTable table, VuoInteger rowIndex, VuoList_VuoText newValues, bool preserveHeader);
62 VuoTable VuoTable_changeRow_VuoText(VuoTable table, VuoText rowHeader, VuoList_VuoText newValues, bool preserveHeader);
63 VuoTable VuoTable_changeColumn_VuoInteger(VuoTable table, VuoInteger columnIndex, VuoList_VuoText newValues, bool preserveHeader);
64 VuoTable VuoTable_changeColumn_VuoText(VuoTable table, VuoText columnHeader, VuoList_VuoText newValues, bool preserveHeader);
66 VuoTable VuoTable_changeItem_VuoInteger_VuoText(VuoTable table, VuoInteger rowIndex, VuoText columnHeader, VuoText newValue);
67 VuoTable VuoTable_changeItem_VuoText_VuoInteger(VuoTable table, VuoText rowHeader, VuoInteger columnIndex, VuoText newValue);
68 VuoTable VuoTable_changeItem_VuoText_VuoText(VuoTable table, VuoText rowHeader, VuoText columnHeader, VuoText newValue);
71 
72 void VuoTable_retain(VuoTable value);
73 void VuoTable_release(VuoTable value);
74 
76 
79 VuoTable VuoTable_makeFromString(const char *str);
80 char * VuoTable_getString(const VuoTable value);
81 char * VuoTable_getInterprocessString(const VuoTable value);
83