Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
XmlComposerAbstraction.hpp
Go to the documentation of this file.
1
6#pragma once
7
10
12
13namespace abstraction {
14
15template < class ParamType >
16class XmlComposerAbstraction : virtual public NaryOperationAbstraction < const ParamType & >, virtual public ValueOperationAbstraction < ext::deque < sax::Token > > {
17public:
18 std::shared_ptr < abstraction::Value > run ( ) const override {
19 const std::shared_ptr < abstraction::Value > & param = std::get < 0 > ( this->getParams ( ) );
20 return std::make_shared < abstraction::ValueHolder < ext::deque < sax::Token > > > ( factory::XmlDataFactory::toTokens ( abstraction::retrieveValue < const ParamType & > ( param ) ), true );
21 }
22
23};
24
25} /* namespace abstraction */
26
const ext::array< std::shared_ptr< abstraction::Value >, NumberOfParams > & getParams() const
Definition: NaryOperationAbstraction.hpp:21
Definition: NaryOperationAbstraction.hpp:77
Definition: ValueOperationAbstraction.hpp:19
Definition: XmlComposerAbstraction.hpp:16
std::shared_ptr< abstraction::Value > run() const override
Definition: XmlComposerAbstraction.hpp:18
static ext::deque< sax::Token > toTokens(const T &data)
Definition: XmlDataFactory.hpp:180
Definition: AlgorithmAbstraction.hpp:11