#include "roast/xml/roast_xml/sax.hpp"
#include "roast/xml/roast_xml/rxpath.hpp"
+#include <memory.h>
namespace roast
{
void operator()(){
}
+
+ ///////////////////////////////////////////////////////////////
+
+ void start_element( const sized_ccharbuf &s ){}
+ void start_xml_declaration(){}
+ void end_xml_declaration(){}
+ void attribute( const sized_ccharbuf &attr_name, const sized_ccharbuf &attr_value ){}
+ void comment( const sized_ccharbuf &s ){}
+ void text( const sized_ccharbuf &s ){
+ char work[32];
+ memset(work,0,sizeof(work));
+ memcpy(work, s.ptr, s.size);
+ value = atoi(work);
+ }
+ void end_element(){}
};
+
+ ///////
class text2str : public rax_functor
{
void operator()(){
}
+
+ ///////////////////////////////////////////////////////////////
+
+ void start_element( const sized_ccharbuf &s ){}
+ void start_xml_declaration(){}
+ void end_xml_declaration(){}
+ void attribute( const sized_ccharbuf &attr_name, const sized_ccharbuf &attr_value ){}
+ void comment( const sized_ccharbuf &s ){}
+ void text( const sized_ccharbuf &s ){ value = ::std::string(s.ptr, s.size); }
+ void end_element(){}
};
//////////////////////////////////////////////////////////////////////////