Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
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 * );
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