Orcus
Toggle main menu visibility
Loading...
Searching...
No Matches
include
orcus
orcus_json.hpp
1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
/*
3
* This Source Code Form is subject to the terms of the Mozilla Public
4
* License, v. 2.0. If a copy of the MPL was not distributed with this
5
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
*/
7
8
#ifndef INCLUDED_ORCUS_ORCUS_JSON_HPP
9
#define INCLUDED_ORCUS_ORCUS_JSON_HPP
10
11
#include "env.hpp"
12
#include "./spreadsheet/types.hpp"
13
14
#include <memory>
15
#include <string_view>
16
17
namespace
orcus {
18
19
namespace
spreadsheet {
namespace
iface {
20
21
class
import_factory
;
22
23
}}
24
25
class
ORCUS_DLLPUBLIC orcus_json
26
{
27
struct
impl;
28
std::unique_ptr<impl> mp_impl;
29
30
public
:
31
32
orcus_json(
const
orcus_json&) =
delete
;
33
orcus_json& operator= (
const
orcus_json&) =
delete
;
34
35
orcus_json(
spreadsheet::iface::import_factory
* im_fact);
36
~orcus_json();
37
38
void
set_cell_link(std::string_view path, std::string_view sheet, spreadsheet::row_t row, spreadsheet::col_t col);
39
40
void
start_range(
41
std::string_view sheet, spreadsheet::row_t row, spreadsheet::col_t col,
bool
row_header);
42
43
void
append_field_link(std::string_view path, std::string_view label);
44
void
set_range_row_group(std::string_view path);
45
void
commit_range();
46
47
void
append_sheet(std::string_view name);
48
49
void
read_stream(std::string_view stream);
50
58
void
read_map_definition
(std::string_view stream);
59
66
void
detect_map_definition
(std::string_view stream);
67
};
68
69
}
70
71
#endif
72
73
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
orcus::orcus_json::read_map_definition
void read_map_definition(std::string_view stream)
orcus::orcus_json::detect_map_definition
void detect_map_definition(std::string_view stream)
orcus::spreadsheet::iface::import_factory
Definition
import_interface.hpp:1169
Generated on
for Orcus by
1.17.0