src/Configuration.h
author František Kučera <franta-hg@frantovo.cz>
Thu, 02 Jan 2020 23:31:44 +0100
branchv_0
changeset 7 ff69af3c67a3
parent 4 a0689654b3c2
child 8 8730e2d0db0e
permissions -rw-r--r--
XInclude support – option: --xinclude true

/**
 * Relational pipes
 * Copyright © 2019 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 <vector>

#include <relpipe/writer/typedefs.h>


namespace relpipe {
namespace in {
namespace xmltable {

class AttributeRecipe {
public:

	virtual ~AttributeRecipe() {
	}

	relpipe::writer::string_t name;
	relpipe::writer::TypeId type;
	relpipe::writer::string_t xpath;
};

class RelationConfiguration {
public:

	virtual ~RelationConfiguration() {
	}

	relpipe::writer::string_t relation;
	relpipe::writer::boolean_t nameIsXPath = false;
	relpipe::writer::string_t xpath;
	std::vector<AttributeRecipe> attributes;
	
};

class Configuration {
public:
	std::vector<RelationConfiguration> relationConfigurations;
	std::vector<relpipe::writer::string_t> namespaceMappings;
	bool xinclude = false;

	virtual ~Configuration() {
	}
};

}
}
}