Orcus
Toggle main menu visibility
Loading...
Searching...
No Matches
include
orcus
orcus_xml.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_XML_HPP
9
#define INCLUDED_ORCUS_ORCUS_XML_HPP
10
11
#include "env.hpp"
12
#include "spreadsheet/types.hpp"
13
14
#include <ostream>
15
#include <memory>
16
17
namespace
orcus {
18
19
class
xmlns_repository
;
20
21
namespace
spreadsheet {
namespace
iface {
22
class
import_factory
;
23
class
export_factory
;
24
}}
25
26
class
ORCUS_DLLPUBLIC orcus_xml
27
{
28
struct
impl;
29
std::unique_ptr<impl> mp_impl;
30
31
public
:
32
orcus_xml(
const
orcus_xml&) =
delete
;
33
orcus_xml& operator= (
const
orcus_xml&) =
delete
;
34
35
orcus_xml(
xmlns_repository
& ns_repo,
spreadsheet::iface::import_factory
* im_fact,
spreadsheet::iface::export_factory
* ex_fact);
36
~orcus_xml();
37
49
void
set_namespace_alias
(std::string_view alias, std::string_view uri,
bool
default_ns=
false
);
50
60
void
set_cell_link
(std::string_view xpath, std::string_view sheet, spreadsheet::row_t row, spreadsheet::col_t col);
61
70
void
start_range
(std::string_view sheet, spreadsheet::row_t row, spreadsheet::col_t col);
71
80
void
append_field_link
(std::string_view xpath, std::string_view label);
81
91
void
set_range_row_group
(std::string_view xpath);
92
96
void
commit_range
();
97
103
void
append_sheet
(std::string_view name);
104
110
void
read_stream
(std::string_view stream);
111
119
void
read_map_definition
(std::string_view stream);
120
127
void
detect_map_definition
(std::string_view stream);
128
137
void
write_map_definition
(std::string_view stream, std::ostream& out)
const
;
138
149
void
write
(std::string_view stream, std::ostream& out)
const
;
150
};
151
152
}
153
154
#endif
155
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
orcus::orcus_xml::append_field_link
void append_field_link(std::string_view xpath, std::string_view label)
orcus::orcus_xml::detect_map_definition
void detect_map_definition(std::string_view stream)
orcus::orcus_xml::set_cell_link
void set_cell_link(std::string_view xpath, std::string_view sheet, spreadsheet::row_t row, spreadsheet::col_t col)
orcus::orcus_xml::set_range_row_group
void set_range_row_group(std::string_view xpath)
orcus::orcus_xml::append_sheet
void append_sheet(std::string_view name)
orcus::orcus_xml::commit_range
void commit_range()
orcus::orcus_xml::set_namespace_alias
void set_namespace_alias(std::string_view alias, std::string_view uri, bool default_ns=false)
orcus::orcus_xml::start_range
void start_range(std::string_view sheet, spreadsheet::row_t row, spreadsheet::col_t col)
orcus::orcus_xml::read_map_definition
void read_map_definition(std::string_view stream)
orcus::orcus_xml::write_map_definition
void write_map_definition(std::string_view stream, std::ostream &out) const
orcus::orcus_xml::write
void write(std::string_view stream, std::ostream &out) const
orcus::orcus_xml::read_stream
void read_stream(std::string_view stream)
orcus::spreadsheet::iface::export_factory
Definition
export_interface.hpp:40
orcus::spreadsheet::iface::import_factory
Definition
import_interface.hpp:1169
orcus::xmlns_repository
Definition
xml_namespace.hpp:30
Generated on
for Orcus by
1.17.0