src/ExecMsg.h
author František Kučera <franta-hg@frantovo.cz>
Sat, 11 Jan 2020 00:56:51 +0100
branchv_0
changeset 29 6f15f18d2abf
permissions -rw-r--r--
field group --exec, replaces --script and --hash, starts reusable sub-program that returns set of attributes for all records during its runtime (no fork/exec for each record like with --script)

// This file was generated from the specification.

#include <map>
#include <string>

namespace relpipe {
namespace in {
namespace filesystem {

class ExecMsg {
public:

	static const int VERSION_SUPPORTED;
	static const int WAITING_FOR_VERSION;
	static const int VERSION_ACCEPTED;
	static const int RELATION_START;
	static const int INPUT_ATTRIBUTE_METADATA;
	static const int OUTPUT_ATTRIBUTE_ALIAS;
	static const int OPTION;
	static const int COMPLETION_REQUEST;
	static const int COMPLETION;
	static const int COMPLETION_END;
	static const int WAITING_FOR_OUTPUT_ATTRIBUTES_METADATA;
	static const int OUTPUT_ATTRIBUTE_METADATA;
	static const int WAITING_FOR_INPUT_ATTRIBUTES;
	static const int INPUT_ATTRIBUTE;
	static const int WAITING_FOR_OUTPUT_ATTRIBUTES;
	static const int OUTPUT_ATTRIBUTE;
	static const int EXECUTOR_ERROR;
	static const int PROCESS_ERROR;
	static const int PROCESS_WARNING;
	static const int RELATION_END;

	static std::map<int, std::wstring> getMessageNames() {
		std::map<int, std::wstring> m;

		m[VERSION_SUPPORTED] = L"VERSION_SUPPORTED";
		m[WAITING_FOR_VERSION] = L"WAITING_FOR_VERSION";
		m[VERSION_ACCEPTED] = L"VERSION_ACCEPTED";
		m[RELATION_START] = L"RELATION_START";
		m[INPUT_ATTRIBUTE_METADATA] = L"INPUT_ATTRIBUTE_METADATA";
		m[OUTPUT_ATTRIBUTE_ALIAS] = L"OUTPUT_ATTRIBUTE_ALIAS";
		m[OPTION] = L"OPTION";
		m[COMPLETION_REQUEST] = L"COMPLETION_REQUEST";
		m[COMPLETION] = L"COMPLETION";
		m[COMPLETION_END] = L"COMPLETION_END";
		m[WAITING_FOR_OUTPUT_ATTRIBUTES_METADATA] = L"WAITING_FOR_OUTPUT_ATTRIBUTES_METADATA";
		m[OUTPUT_ATTRIBUTE_METADATA] = L"OUTPUT_ATTRIBUTE_METADATA";
		m[WAITING_FOR_INPUT_ATTRIBUTES] = L"WAITING_FOR_INPUT_ATTRIBUTES";
		m[INPUT_ATTRIBUTE] = L"INPUT_ATTRIBUTE";
		m[WAITING_FOR_OUTPUT_ATTRIBUTES] = L"WAITING_FOR_OUTPUT_ATTRIBUTES";
		m[OUTPUT_ATTRIBUTE] = L"OUTPUT_ATTRIBUTE";
		m[EXECUTOR_ERROR] = L"EXECUTOR_ERROR";
		m[PROCESS_ERROR] = L"PROCESS_ERROR";
		m[PROCESS_WARNING] = L"PROCESS_WARNING";
		m[RELATION_END] = L"RELATION_END";

		return m;
	}

};

const int ExecMsg::VERSION_SUPPORTED = 100;
const int ExecMsg::WAITING_FOR_VERSION = 101;
const int ExecMsg::VERSION_ACCEPTED = 102;
const int ExecMsg::RELATION_START = 103;
const int ExecMsg::INPUT_ATTRIBUTE_METADATA = 104;
const int ExecMsg::OUTPUT_ATTRIBUTE_ALIAS = 105;
const int ExecMsg::OPTION = 106;
const int ExecMsg::COMPLETION_REQUEST = 107;
const int ExecMsg::COMPLETION = 108;
const int ExecMsg::COMPLETION_END = 109;
const int ExecMsg::WAITING_FOR_OUTPUT_ATTRIBUTES_METADATA = 110;
const int ExecMsg::OUTPUT_ATTRIBUTE_METADATA = 111;
const int ExecMsg::WAITING_FOR_INPUT_ATTRIBUTES = 112;
const int ExecMsg::INPUT_ATTRIBUTE = 113;
const int ExecMsg::WAITING_FOR_OUTPUT_ATTRIBUTES = 114;
const int ExecMsg::OUTPUT_ATTRIBUTE = 115;
const int ExecMsg::EXECUTOR_ERROR = 116;
const int ExecMsg::PROCESS_ERROR = 117;
const int ExecMsg::PROCESS_WARNING = 118;
const int ExecMsg::RELATION_END = 120;

}
}
}