src/Configuration.h
branchv_0
changeset 26 576d4965434f
parent 25 0cfbaf5c57a6
equal deleted inserted replaced
25:0cfbaf5c57a6 26:576d4965434f
    26 namespace relpipe {
    26 namespace relpipe {
    27 namespace tr {
    27 namespace tr {
    28 namespace sed {
    28 namespace sed {
    29 
    29 
    30 enum class ENTITY {
    30 enum class ENTITY {
       
    31 	DEFAULT,
    31 	RELATION,
    32 	RELATION,
    32 	ATTRIBUTE,
    33 	ATTRIBUTE,
    33 	VALUE
    34 	VALUE
    34 };
    35 };
    35 
    36 
    40 	}
    41 	}
    41 
    42 
    42 	virtual ~RewriteRule() {
    43 	virtual ~RewriteRule() {
    43 	}
    44 	}
    44 
    45 
       
    46 	/**
       
    47 	 * What will be modified:
       
    48 	 *  - relation: rename relation
       
    49 	 *  - attribute: rename attribute
       
    50 	 *  - value: rewrite value
       
    51 	 *  - default: not yet set (should be set in CLIParser; means error everywhere else)
       
    52 	 */
       
    53 	ENTITY modify = ENTITY::DEFAULT;
    45 	relpipe::common::type::StringX attribute;
    54 	relpipe::common::type::StringX attribute;
    46 	relpipe::common::type::StringX value;
    55 	relpipe::common::type::StringX value;
    47 	relpipe::common::type::StringX replacement;
    56 	relpipe::common::type::StringX replacement;
    48 	std::wregex attributePattern;
    57 	std::wregex attributePattern;
    49 	std::wregex valuePattern;
    58 	std::wregex valuePattern;