libetonyek_xml.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /*
00003  * This file is part of the libetonyek project.
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  */
00009 
00010 #ifndef LIBETONYEK_XML_H_INCLUDED
00011 #define LIBETONYEK_XML_H_INCLUDED
00012 
00013 #include <string>
00014 
00015 #include <boost/optional.hpp>
00016 
00017 #include "libetonyek_utils.h"
00018 
00019 extern "C" int readFromStream(void *context, char *buffer, int len);
00020 
00021 extern "C" int closeStream(void * /* context */);
00022 
00023 namespace libetonyek
00024 {
00025 
00031 bool bool_cast(const char *value);
00032 boost::optional<bool> try_bool_cast(const char *value);
00033 
00034 double double_cast(const char *value);
00035 boost::optional<double> try_double_cast(const char *value);
00036 
00037 int int_cast(const char *value);
00038 boost::optional<int> try_int_cast(const char *value);
00039 
00040 const char *char_cast(const char *c);
00041 const char *char_cast(const signed char *c);
00042 const char *char_cast(const unsigned char *c);
00043 
00044 }
00045 
00046 #endif // LIBETONYEK_XML_H_INCLUDED
00047 
00048 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */