src/Configuration.h
branchv_0
changeset 2 4b05b16b97e6
parent 0 7b70918c30af
equal deleted inserted replaced
1:23c516259cc5 2:4b05b16b97e6
    23 
    23 
    24 namespace relpipe {
    24 namespace relpipe {
    25 namespace tr {
    25 namespace tr {
    26 namespace httpd {
    26 namespace httpd {
    27 
    27 
    28 enum class InputAttributePolicy {
       
    29 	Prepend,
       
    30 	Append,
       
    31 	Auto
       
    32 };
       
    33 
       
    34 class AttributeRecipe {
       
    35 public:
       
    36 
       
    37 	virtual ~AttributeRecipe() {
       
    38 	}
       
    39 
       
    40 	relpipe::common::type::StringX name;
       
    41 	relpipe::writer::TypeId type;
       
    42 	relpipe::common::type::StringX httpd;
       
    43 };
       
    44 
       
    45 class RelationConfiguration {
       
    46 public:
       
    47 
       
    48 	virtual ~RelationConfiguration() {
       
    49 	}
       
    50 
       
    51 	relpipe::common::type::StringX relation;
       
    52 	relpipe::common::type::StringX where;
       
    53 	InputAttributePolicy inputAttributePolicy = InputAttributePolicy::Auto;
       
    54 	std::vector<AttributeRecipe> outputAttributes;
       
    55 	std::vector<relpipe::common::type::StringX> xmlAttributes;
       
    56 };
       
    57 
       
    58 class Configuration {
    28 class Configuration {
    59 public:
    29 public:
    60 	std::vector<RelationConfiguration> relationConfigurations;
    30 	uint16_t tcpPort = 8080;
    61 	std::vector<relpipe::common::type::StringX> namespaceMappings;
       
    62 
    31 
    63 	virtual ~Configuration() {
    32 	virtual ~Configuration() {
    64 	}
    33 	}
    65 };
    34 };
    66 
    35