libetonyek_xml.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3  * This file is part of the libetonyek project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef LIBETONYEK_XML_H_INCLUDED
11 #define LIBETONYEK_XML_H_INCLUDED
12 
13 #include <memory>
14 #include <string>
15 
16 #include <boost/optional.hpp>
17 
18 #include <libxml/xmlreader.h>
19 
20 #include "libetonyek_utils.h"
21 
22 namespace libetonyek
23 {
24 
25 std::unique_ptr<xmlTextReader, void (*)(xmlTextReaderPtr)> xmlReaderForStream(const RVNGInputStreamPtr_t &input);
26 
32 bool bool_cast(const char *value);
33 boost::optional<bool> try_bool_cast(const char *value);
34 
35 double double_cast(const char *value);
36 boost::optional<double> try_double_cast(const char *value);
37 
38 int int_cast(const char *value);
39 boost::optional<int> try_int_cast(const char *value);
40 
41 const char *char_cast(const char *c);
42 const char *char_cast(const signed char *c);
43 const char *char_cast(const unsigned char *c);
44 
45 }
46 
47 #endif // LIBETONYEK_XML_H_INCLUDED
48 
49 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
std::unique_ptr< xmlTextReader, void(*)(xmlTextReaderPtr)> xmlReaderForStream(const RVNGInputStreamPtr_t &input)
Definition: libetonyek_xml.h:25
bool bool_cast(const char *value)
Convert string value to bool.
Definition: libetonyek_xml.cpp:65
boost::optional< bool > try_bool_cast(const char *value)
Definition: libetonyek_xml.cpp:70
Definition: IWORKToken.h:631
int int_cast(const char *value)
Definition: libetonyek_xml.cpp:103
const char * char_cast(const char *const c)
Definition: libetonyek_xml.cpp:118
std::shared_ptr< librevenge::RVNGInputStream > RVNGInputStreamPtr_t
Definition: libetonyek_utils.h:82
boost::optional< int > try_int_cast(const char *value)
Definition: libetonyek_xml.cpp:108
double double_cast(const char *value)
Definition: libetonyek_xml.cpp:88
Definition: IWORKToken.h:516
boost::optional< double > try_double_cast(const char *value)
Definition: libetonyek_xml.cpp:93

Generated for libetonyek by doxygen 1.8.6