Orcus
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
16
namespace
orcus {
17
18
class
pstring;
19
class
xmlns_repository;
20
struct
orcus_xml_impl;
21
22
namespace
spreadsheet {
namespace
iface {
23
class
import_factory;
24
class
export_factory;
25
}}
26
27
class
ORCUS_DLLPUBLIC
orcus_xml
28
{
29
orcus_xml
(
const
orcus_xml
&);
// disabled
30
orcus_xml
& operator= (
const
orcus_xml
&);
// disabled
31
32
void
read_impl(
const
pstring
& strm);
33
34
public
:
35
orcus_xml
(
xmlns_repository
& ns_repo,
spreadsheet::iface::import_factory
* im_fact,
spreadsheet::iface::export_factory
* ex_fact);
36
~
orcus_xml
();
37
38
void
set_namespace_alias(
const
pstring
& alias,
const
pstring
& uri);
39
40
void
set_cell_link(
const
pstring
& xpath,
const
pstring
& sheet, spreadsheet::row_t row, spreadsheet::col_t col);
41
42
void
start_range(
const
pstring
& sheet, spreadsheet::row_t row, spreadsheet::col_t col);
43
void
append_field_link(
const
pstring
& xpath);
44
void
commit_range();
45
46
void
append_sheet(
const
pstring
& name);
47
48
void
read_stream(
const
char
* p,
size_t
n);
49
void
write(
const
char
* p_in,
size_t
n_in, std::ostream& out)
const
;
50
51
private
:
52
orcus_xml_impl* mp_impl;
53
};
54
55
}
56
57
#endif
58
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
orcus::spreadsheet::iface::import_factory
Definition:
import_interface.hpp:809
orcus::spreadsheet::iface::export_factory
Definition:
export_interface.hpp:26
orcus::pstring
Definition:
pstring.hpp:24
orcus::xmlns_repository
Definition:
xml_namespace.hpp:27
orcus::orcus_xml
Definition:
orcus_xml.hpp:27
Generated on Wed Sep 29 2021 05:17:13 for Orcus by
1.8.17