Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
XmlTokensComposerAbstraction.hpp
Go to the documentation of this file.
1
6#pragma once
7
10
12
13namespace abstraction {
14
15class XmlTokensComposerAbstraction : virtual public NaryOperationAbstraction < const ext::deque < sax::Token > &, const std::string & >, virtual public ValueOperationAbstraction < void > {
16public:
17 std::shared_ptr < abstraction::Value > run ( ) const override {
18 const std::shared_ptr < abstraction::Value > & param2 = std::get < 0 > ( this->getParams ( ) );
19 const std::shared_ptr < abstraction::Value > & param1 = std::get < 1 > ( this->getParams ( ) );
20 sax::SaxComposeInterface::composeFile ( abstraction::retrieveValue < const std::string & > ( param1 ), abstraction::retrieveValue < const ext::deque < sax::Token > & > ( param2 ) );
21 return std::make_shared < abstraction::Void > ( );
22 }
23
24};
25
26} /* namespace abstraction */
27
const ext::array< std::shared_ptr< abstraction::Value >, NumberOfParams > & getParams() const
Definition: NaryOperationAbstraction.hpp:21
Definition: NaryOperationAbstraction.hpp:77
Definition: ValueOperationAbstraction.hpp:19
Definition: XmlTokensComposerAbstraction.hpp:15
std::shared_ptr< abstraction::Value > run() const override
Definition: XmlTokensComposerAbstraction.hpp:17
static void composeFile(const std::string &filename, const ext::deque< Token > &in)
Definition: SaxComposeInterface.cpp:37
Definition: AlgorithmAbstraction.hpp:11
ParamType retrieveValue(const std::shared_ptr< abstraction::Value > &param, bool move=false)
Definition: ValueHolderInterface.hpp:26