Newer
Older
#include "GapSymbol.h"
#include <object/Object.h>
#include <registration/XmlRegistration.hpp>
namespace core {
alphabet::GapSymbol xmlApi < alphabet::GapSymbol >::parse ( ext::deque < sax::Token >::iterator & input ) {
sax::FromXMLParserHelper::popToken ( input, sax::Token::TokenType::START_ELEMENT, xmlTagName ( ) );
sax::FromXMLParserHelper::popToken ( input, sax::Token::TokenType::END_ELEMENT, xmlTagName ( ) );
return alphabet::GapSymbol ( );
}
bool xmlApi < alphabet::GapSymbol >::first ( const ext::deque < sax::Token >::const_iterator & input ) {
return sax::FromXMLParserHelper::isToken ( input, sax::Token::TokenType::START_ELEMENT, xmlTagName ( ) );
}
std::string xmlApi < alphabet::GapSymbol >::xmlTagName ( ) {
return "GapSymbol";
}
void xmlApi < alphabet::GapSymbol >::compose ( ext::deque < sax::Token > & output, const alphabet::GapSymbol & ) {
output.emplace_back ( xmlTagName ( ), sax::Token::TokenType::START_ELEMENT );
output.emplace_back ( xmlTagName ( ), sax::Token::TokenType::END_ELEMENT );
}
} /* namespace core */
namespace {
auto xmlWrite = registration::XmlWriterRegister < alphabet::GapSymbol > ( );
auto xmlRead = registration::XmlReaderRegister < alphabet::GapSymbol > ( );
auto xmlGroup = registration::XmlRegisterTypeInGroup < object::Object, alphabet::GapSymbol > ( );
} /* namespace */