aboutsummaryrefslogtreecommitdiff
path: root/src/function/external_command.h
blob: 3c4579d2ba64ca9f028410f62eb98a096a4494ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef INPUTXSLT_SRC_FUNCTION_EXTERNAL_COMMAND_H_
#define INPUTXSLT_SRC_FUNCTION_EXTERNAL_COMMAND_H_

#include <boost/filesystem.hpp>
#include <boost/optional.hpp>

#include "base.h"

namespace InputXSLT {

class FunctionExternalCommand : public FunctionBase<
	FunctionExternalCommand,
	std::string,
	boost::optional<std::string>
> {
	public:
		using FunctionBase::FunctionBase;

	protected:
		friend FunctionBase;

		DomDocumentCache::document_ptr constructDocument(
			const FilesystemContext&,
			std::string,
			boost::optional<std::string>
		) const;

};

}

#endif  // INPUTXSLT_SRC_FUNCTION_EXTERNAL_COMMAND_H_