Rudiments
csvdom.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information.
3
4 friend class csvdomnode;
5 protected:
6
7 csvdom(csvdom &x);
8 csvdom &operator=(csvdom &x);
9
10 void construct(bool stringcacheenabled);
11 bool reset();
12
13 domnode *getColumn(uint64_t position);
14 domnode *getColumn(const char *name);
15
16 bool caseColumn(domnode *c, bool upper);
17 bool caseColumns(bool upper);
18
19 bool trimNode(domnode *node, bool left, bool right);
20 bool trimColumns(bool left, bool right);
21
22 void setValue(domnode *node, const char *name, bool quoted);
23
24 bool renameColumn(const char *oldname,
25 uint64_t position, bool useposition,
26 const char *name, bool quoted);
27
28 bool insertColumnAt(uint64_t position,
29 const char *name, bool quoted);
30
31 bool insertRecordAt(uint64_t position);
32
33 bool trimField(uint64_t record, uint64_t column,
34 bool left, bool right);
35
36 void trimFields(bool left, bool right);
37
38 ssize_t writeNode(domnode *dn,
39 output *out,
40 bool indent,
41 uint16_t *indentlevel);
42 ssize_t writeValue(output *out, domnode *value);
43
44 private:
45 csvdomprivate *pvt;
Definition csvdom.h:53
Definition domnode.h:122
Definition output.h:11