|
// released into the public domain
// by Christopher Diggins 2004
// http://www.cdiggins.com
#ifndef XML_TEST_HPP_INCLUDED
#define XML_TEST_HPP_INCLUDED
#include "xml_grammar.hpp"
template<>
struct yard::Actor<char const*, xml_grammar::STag> {
static void OnBefore(char const* pos) { }
static void OnFailure(char const* pos) { }
static void OnSuccess(char const* begin, char const* end) {
std::string s(begin, end - begin);
s = "STag: " + s;
puts(s.c_str());
}
};
template<>
struct yard::Actor<char const*, xml_grammar::ETag> {
static void OnBefore(char const* pos) { }
static void OnFailure(char const* pos) { }
static void OnSuccess(char const* begin, char const* end) {
std::string s(begin, end - begin);
s = "ETag: " + s;
puts(s.c_str());
}
};
#endif // #ifndef XML_TEST_HPP_INCLUDED
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here