src/ParallelFilesystemCommand.h
author František Kučera <franta-hg@frantovo.cz>
Mon, 20 Jan 2020 15:48:39 +0100
branchv_0
changeset 55 698836fc65b4
parent 54 ef726975c34b
child 56 81a53e7cf0ab
permissions -rw-r--r--
parallel processing: link to librt (POSIX MQ)

/**
 * Relational pipes
 * Copyright © 2020 František Kučera (Frantovo.cz, GlobalCode.info)
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, version 3 of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */
#pragma once

#include <mqueue.h>

#include "FilesystemCommand.h"

namespace relpipe {
namespace in {
namespace filesystem {

namespace fs = std::filesystem;
using namespace relpipe::writer;

class ParallelFilesystemCommand : public FilesystemCommand {
public:

	void process(std::istream& input, std::ostream& output, Configuration& configuration) {
		// TODO: ParallelFilesystemCommand
		mq_close(0); // FIXME: remove (this line just tests that linking to librt worked well)
		throw RelpipeWriterException(L"ParallelFilesystemCommand is not yet implemented");
	}
};

}
}
}