src/ArgumentsCommand.h
branchv_0
changeset 39 c3672791b2e8
parent 37 27f0ffa712d9
equal deleted inserted replaced
38:4e29bbc0afa5 39:c3672791b2e8
    37 	void process(std::istream& input, std::ostream& output, const relpipe::writer::string_t& command, const std::vector<relpipe::writer::string_t>& arguments) override {
    37 	void process(std::istream& input, std::ostream& output, const relpipe::writer::string_t& command, const std::vector<relpipe::writer::string_t>& arguments) override {
    38 		using namespace relpipe::writer;
    38 		using namespace relpipe::writer;
    39 
    39 
    40 		size_t i = 0;
    40 		size_t i = 0;
    41 		string_t relationName = arguments[i++];
    41 		string_t relationName = arguments[i++];
    42 		integer_t attributeCount = std::stoul(arguments[i++]); // TODO: use integer data type's method?
    42 		integer_t attributeCount = std::stol(arguments[i++]); // TODO: use integer data type's method? + unsigned type
    43 		boolean_t writeHeader = true; // TODO: add option for header omitting
    43 		boolean_t writeHeader = true; // TODO: add option for header omitting
    44 
    44 
    45 		// TODO: check argument count
    45 		// TODO: check argument count
    46 
    46 
    47 		std::shared_ptr<RelationalWriter> writer(Factory::create(output));
    47 		std::shared_ptr<RelationalWriter> writer(Factory::create(output));