Vuo 2.4.4
Loading...
Searching...
No Matches
VuoTable.h
Go to the documentation of this file.
1
10#pragma once
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16#include "VuoListPosition.h"
17#include "VuoTableFormat.h"
18#include "VuoTextComparison.h"
19#include "VuoTextSort.h"
20#include "VuoSortOrder.h"
21#include "VuoText.h"
22#include "VuoList_VuoText.h"
23
35typedef struct
36{
37 void *data;
38 size_t rowCount;
39 size_t columnCount;
40} VuoTable;
41
42#define VuoTable_OVERRIDES_INTERPROCESS_SERIALIZATION
43
44VuoTable VuoTable_makeFromJson(struct json_object *js);
45struct json_object * VuoTable_getJson(const VuoTable value);
46struct json_object * VuoTable_getInterprocessJson(const VuoTable value);
47char * VuoTable_getSummary(const VuoTable value);
48
52VuoTable VuoTable_sort_VuoInteger(VuoTable table, VuoInteger columnIndex, VuoTextSort sortType, VuoSortOrder sortOrder, bool firstRowIsHeader);
53VuoTable VuoTable_sort_VuoText(VuoTable table, VuoText columnHeader, VuoTextSort sortType, VuoSortOrder sortOrder, bool firstRowIsHeader);
55VuoList_VuoText VuoTable_getRow_VuoInteger(VuoTable table, VuoInteger rowIndex, bool includeHeader);
56VuoList_VuoText VuoTable_getRow_VuoText(VuoTable table, VuoText rowHeader, bool includeHeader);
57VuoList_VuoText VuoTable_getColumn_VuoInteger(VuoTable table, VuoInteger columnIndex, bool includeHeader);
58VuoList_VuoText VuoTable_getColumn_VuoText(VuoTable table, VuoText columnHeader, bool includeHeader);
65VuoTable VuoTable_changeRow_VuoInteger(VuoTable table, VuoInteger rowIndex, VuoList_VuoText newValues, bool preserveHeader);
66VuoTable VuoTable_changeRow_VuoText(VuoTable table, VuoText rowHeader, VuoList_VuoText newValues, bool preserveHeader);
67VuoTable VuoTable_changeColumn_VuoInteger(VuoTable table, VuoInteger columnIndex, VuoList_VuoText newValues, bool preserveHeader);
68VuoTable VuoTable_changeColumn_VuoText(VuoTable table, VuoText columnHeader, VuoList_VuoText newValues, bool preserveHeader);
72VuoTable VuoTable_changeItem_VuoText_VuoText(VuoTable table, VuoText rowHeader, VuoText columnHeader, VuoText newValue);
75
76VuoList_VuoText VuoTable_findFirstMatchingRow_VuoInteger(VuoTable table, VuoInteger columnIndex, VuoText valueToFind, VuoTextComparison valueComparison, bool includeHeader);
77VuoList_VuoText VuoTable_findFirstMatchingRow_VuoText(VuoTable table, VuoText columnHeader, VuoText valueToFind, VuoTextComparison valueComparison, bool includeHeader);
78
79void VuoTable_retain(VuoTable value);
80void VuoTable_release(VuoTable value);
81
83
86char * VuoTable_getString(const VuoTable value);
89
94#ifdef __cplusplus
95}
96#endif