AnCH Framework 0.2
Another C++ Hack: C++23 utility libraries
Loading...
Searching...
No Matches
options.hpp
1/*
2 ANCH Framework: ANother C++ Hack is a C++ framework based on C++23 standard
3 Copyright (C) 2026 Vincent Lachenal
4
5 This file is part of ANCH Framework.
6
7 ANCH Framework is free software: you can redistribute it and/or modify
8 it under the terms of the GNU Lesser General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 ANCH Framework is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public License
18 along with ANCH Framework. If not, see <https://www.gnu.org/licenses/>.
19*/
20#pragma once
21
22#include <cstddef>
23#include <string>
24
25namespace anch::csv {
26
35 struct Options {
37 char separator = ',';
38
40 char quote = '"';
41
43 bool crlf = true;
44
46 bool header = true;
47
49 bool bom = false;
50
52 std::size_t maxRecordSize = 1024 * 1024;
53
55 std::size_t maxSize = 0;
56
58 std::size_t maxColumns = 1024;
59
61 bool sameColumnCount = true;
62
65
68
71
73 std::string trueValue = "true";
74
76 std::string falseValue = "false";
77 };
78
79}
AnCH CSV library namespace.
Definition options.hpp:35
bool sameColumnCount
Definition options.hpp:61
bool readCheckConstraints
Definition options.hpp:67
std::string trueValue
Definition options.hpp:73
bool crlf
Definition options.hpp:43
bool bom
Definition options.hpp:49
char quote
Definition options.hpp:40
std::size_t maxRecordSize
Definition options.hpp:52
std::size_t maxSize
Definition options.hpp:55
bool header
Definition options.hpp:46
std::string falseValue
Definition options.hpp:76
bool ignoreUnknownColumns
Definition options.hpp:64
char separator
Definition options.hpp:37
bool writeCheckConstraints
Definition options.hpp:70
std::size_t maxColumns
Definition options.hpp:58