src/CLIParser.h
branchv_0
changeset 23 6ee7a9e311e9
parent 22 d5e80f15d1f7
child 26 421608ecc12a
equal deleted inserted replaced
22:d5e80f15d1f7 23:6ee7a9e311e9
    58 
    58 
    59 	static const string_t OPTION_RELATION;
    59 	static const string_t OPTION_RELATION;
    60 	static const string_t OPTION_OUTPUT_ATTRIBUTE;
    60 	static const string_t OPTION_OUTPUT_ATTRIBUTE;
    61 	static const string_t OPTION_INPUT_ATTRIBUTES_APPEND;
    61 	static const string_t OPTION_INPUT_ATTRIBUTES_APPEND;
    62 	static const string_t OPTION_INPUT_ATTRIBUTES_PREPEND;
    62 	static const string_t OPTION_INPUT_ATTRIBUTES_PREPEND;
       
    63 	static const string_t OPTION_DEBUG_VARIABLE_MAPPING;
    63 	static const string_t OPTION_BEFORE_RECORDS;
    64 	static const string_t OPTION_BEFORE_RECORDS;
    64 	static const string_t OPTION_AFTER_RECORDS;
    65 	static const string_t OPTION_AFTER_RECORDS;
    65 	static const string_t OPTION_FOR_EACH;
    66 	static const string_t OPTION_FOR_EACH;
    66 	static const string_t OPTION_WHERE;
    67 	static const string_t OPTION_WHERE;
    67 	static const string_t OPTION_DROP;
    68 	static const string_t OPTION_DROP;
    81 			else if (option == OPTION_WHERE) currentRelation.guileWhere = readNext(arguments, i);
    82 			else if (option == OPTION_WHERE) currentRelation.guileWhere = readNext(arguments, i);
    82 			else if (option == OPTION_HAS_MORE_RECORDS) currentRelation.guileHasMoreRecords = readNext(arguments, i);
    83 			else if (option == OPTION_HAS_MORE_RECORDS) currentRelation.guileHasMoreRecords = readNext(arguments, i);
    83 			else if (option == OPTION_DROP) currentRelation.drop = true;
    84 			else if (option == OPTION_DROP) currentRelation.drop = true;
    84 			else if (option == OPTION_INPUT_ATTRIBUTES_APPEND) currentRelation.inputAttributesAppend = true;
    85 			else if (option == OPTION_INPUT_ATTRIBUTES_APPEND) currentRelation.inputAttributesAppend = true;
    85 			else if (option == OPTION_INPUT_ATTRIBUTES_PREPEND) currentRelation.inputAttributesPrepend = true;
    86 			else if (option == OPTION_INPUT_ATTRIBUTES_PREPEND) currentRelation.inputAttributesPrepend = true;
       
    87 			else if (option == OPTION_DEBUG_VARIABLE_MAPPING) currentRelation.debugVariableMapping = true;
    86 			else if (option == OPTION_RELATION) {
    88 			else if (option == OPTION_RELATION) {
    87 				addRelation(c, currentRelation); // previous relation
    89 				addRelation(c, currentRelation); // previous relation
    88 				currentRelation.relation = readNext(arguments, i);
    90 				currentRelation.relation = readNext(arguments, i);
    89 			} else if (option == OPTION_OUTPUT_ATTRIBUTE) {
    91 			} else if (option == OPTION_OUTPUT_ATTRIBUTE) {
    90 				relpipe::writer::AttributeMetadata attribute;
    92 				relpipe::writer::AttributeMetadata attribute;
   111 
   113 
   112 const string_t CLIParser::OPTION_RELATION = L"--relation";
   114 const string_t CLIParser::OPTION_RELATION = L"--relation";
   113 const string_t CLIParser::OPTION_OUTPUT_ATTRIBUTE = L"--output-attribute";
   115 const string_t CLIParser::OPTION_OUTPUT_ATTRIBUTE = L"--output-attribute";
   114 const string_t CLIParser::OPTION_INPUT_ATTRIBUTES_APPEND = L"--input-attributes-append";
   116 const string_t CLIParser::OPTION_INPUT_ATTRIBUTES_APPEND = L"--input-attributes-append";
   115 const string_t CLIParser::OPTION_INPUT_ATTRIBUTES_PREPEND = L"--input-attributes-prepend";
   117 const string_t CLIParser::OPTION_INPUT_ATTRIBUTES_PREPEND = L"--input-attributes-prepend";
       
   118 const string_t CLIParser::OPTION_DEBUG_VARIABLE_MAPPING = L"--debug-variable-mapping";
   116 const string_t CLIParser::OPTION_BEFORE_RECORDS = L"--before-records";
   119 const string_t CLIParser::OPTION_BEFORE_RECORDS = L"--before-records";
   117 const string_t CLIParser::OPTION_AFTER_RECORDS = L"--after-records";
   120 const string_t CLIParser::OPTION_AFTER_RECORDS = L"--after-records";
   118 const string_t CLIParser::OPTION_FOR_EACH = L"--for-each";
   121 const string_t CLIParser::OPTION_FOR_EACH = L"--for-each";
   119 const string_t CLIParser::OPTION_WHERE = L"--where";
   122 const string_t CLIParser::OPTION_WHERE = L"--where";
   120 const string_t CLIParser::OPTION_DROP = L"--drop";
   123 const string_t CLIParser::OPTION_DROP = L"--drop";