aboutsummaryrefslogtreecommitdiff
path: root/src/function/external_command.h
blob: 8af5079b4ddb1068f9259d7c0502bbc945b9b98b (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
#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(
			std::string,
			boost::optional<std::string>
		) const;

};

}

#endif  // INPUTXSLT_SRC_FUNCTION_EXTERNAL_COMMAND_H_