src/SedHandler.h
branchv_0
changeset 9 f5c9a6daf4ea
parent 8 de3def6505a9
child 15 09981db6ad87
equal deleted inserted replaced
8:de3def6505a9 9:f5c9a6daf4ea
    65 			relationNameRegEx = wregex(arguments[0]);
    65 			relationNameRegEx = wregex(arguments[0]);
    66 			attributeNameRegEx = wregex(arguments[1]);
    66 			attributeNameRegEx = wregex(arguments[1]);
    67 			searchRegEx = wregex(arguments[2]);
    67 			searchRegEx = wregex(arguments[2]);
    68 			replacement = arguments[3];
    68 			replacement = arguments[3];
    69 		} else {
    69 		} else {
    70 			throw cli::RelpipeCLIException(L"Usage: relpipe-tr-sed <relationNameRegExp> <attributeNameRegExp> <searchRegExp> <replacementRegExp>", cli::CLI::EXIT_CODE_UNKNOWN_COMMAND);
    70 			throw cli::RelpipeCLIException(L"Usage: relpipe-tr-sed <relationNameRegExp> <attributeNameRegExp> <searchRegExp> <replacement>", cli::CLI::EXIT_CODE_UNKNOWN_COMMAND);
    71 		}
    71 		}
    72 	}
    72 	}
    73 
    73 
    74 	void startRelation(string_t name, vector<AttributeMetadata> attributes) override {
    74 	void startRelation(string_t name, vector<AttributeMetadata> attributes) override {
    75 		// TODO: move to a reusable method (or use same metadata on both reader and writer side?)
    75 		// TODO: move to a reusable method (or use same metadata on both reader and writer side?)