Orcus
Loading...
Searching...
No Matches
include
orcus
global.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_GLOBAL_HPP
9
#define INCLUDED_ORCUS_GLOBAL_HPP
10
11
#include "types.hpp"
12
#include "env.hpp"
13
14
#include <memory>
15
#include <functional>
16
17
#define ORCUS_ASCII(literal) literal, sizeof(literal)-1
18
#define ORCUS_N_ELEMENTS(name) sizeof(name)/sizeof(name[0])
19
20
namespace
orcus {
21
22
class
tokens;
23
24
ORCUS_DLLPUBLIC
void
print_element(xmlns_id_t ns, xml_token_t name);
// TODO:API: not used. remove?
25
29
ORCUS_DLLPUBLIC
void
print_attrs(
const
tokens& tokens,
const
xml_attrs_t& attrs);
// TODO:API: internal to liborcus
30
43
ORCUS_DLLPUBLIC date_time_t to_date_time(std::string_view str);
// TODO:API: internal to liborcus
44
49
template
<
typename
T>
50
struct
map_object_deleter
// TODO:API: remove it and use unique_ptr
51
{
52
void
operator() (
typename
T::value_type& v)
53
{
54
delete
v.second;
55
}
56
};
57
58
}
59
60
#endif
61
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
orcus::map_object_deleter
Definition
global.hpp:51
Generated on Mon Feb 20 2023 00:00:00 for Orcus by
1.9.7