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 "VuoTextComparison.h"
15 #include "VuoTextSort.h"
16 #include "VuoSortOrder.h"
17 #include "VuoList_VuoText.h"
18 
30 typedef struct
31 {
32  void *data;
33  size_t rowCount;
34  size_t columnCount;
35 } VuoTable;
36 
38 struct json_object * VuoTable_getJson(const VuoTable value);
39 
41 #define VuoTable_REQUIRES_INTERPROCESS_JSON
43 
44 char * VuoTable_getSummary(const VuoTable value);
45 
49 VuoTable VuoTable_sort_VuoInteger(VuoTable table, VuoInteger columnIndex, VuoTextSort sortType, VuoSortOrder sortOrder, bool firstRowIsHeader);
50 VuoTable VuoTable_sort_VuoText(VuoTable table, VuoText columnHeader, VuoTextSort sortType, VuoSortOrder sortOrder, bool firstRowIsHeader);
52 VuoList_VuoText VuoTable_getRow_VuoInteger(VuoTable table, VuoInteger rowIndex, bool includeHeader);
53 VuoList_VuoText VuoTable_getRow_VuoText(VuoTable table, VuoText rowHeader, bool includeHeader);
54 VuoList_VuoText VuoTable_getColumn_VuoInteger(VuoTable table, VuoInteger columnIndex, bool includeHeader);
55 VuoList_VuoText VuoTable_getColumn_VuoText(VuoTable table, VuoText columnHeader, bool includeHeader);
59 VuoText VuoTable_getItem_VuoText_VuoText(VuoTable table, VuoText rowHeader, VuoText columnHeader);
62 VuoTable VuoTable_changeRow_VuoInteger(VuoTable table, VuoInteger rowIndex, VuoList_VuoText newValues, bool preserveHeader);
63 VuoTable VuoTable_changeRow_VuoText(VuoTable table, VuoText rowHeader, VuoList_VuoText newValues, bool preserveHeader);
64 VuoTable VuoTable_changeColumn_VuoInteger(VuoTable table, VuoInteger columnIndex, VuoList_VuoText newValues, bool preserveHeader);
65 VuoTable VuoTable_changeColumn_VuoText(VuoTable table, VuoText columnHeader, VuoList_VuoText newValues, bool preserveHeader);
67 VuoTable VuoTable_changeItem_VuoInteger_VuoText(VuoTable table, VuoInteger rowIndex, VuoText columnHeader, VuoText newValue);
68 VuoTable VuoTable_changeItem_VuoText_VuoInteger(VuoTable table, VuoText rowHeader, VuoInteger columnIndex, VuoText newValue);
69 VuoTable VuoTable_changeItem_VuoText_VuoText(VuoTable table, VuoText rowHeader, VuoText columnHeader, VuoText newValue);
72 
73 VuoList_VuoText VuoTable_findFirstMatchingRow_VuoInteger(VuoTable table, VuoInteger columnIndex, VuoText valueToFind, VuoTextComparison valueComparison, bool includeHeader);
74 VuoList_VuoText VuoTable_findFirstMatchingRow_VuoText(VuoTable table, VuoText columnHeader, VuoText valueToFind, VuoTextComparison valueComparison, bool includeHeader);
75 
76 void VuoTable_retain(VuoTable value);
77 void VuoTable_release(VuoTable value);
78 
80 
83 VuoTable VuoTable_makeFromString(const char *str);
84 char * VuoTable_getString(const VuoTable value);
85 char * VuoTable_getInterprocessString(const VuoTable value);
87