src/Configuration.h
branchv_0
changeset 1 3bbf848b3565
parent 0 3493d6e7016e
child 6 1b17b8cdbfc3
equal deleted inserted replaced
0:3493d6e7016e 1:3bbf848b3565
    24 
    24 
    25 namespace relpipe {
    25 namespace relpipe {
    26 namespace in {
    26 namespace in {
    27 namespace x11 {
    27 namespace x11 {
    28 
    28 
    29 class AttributeRecipe {
       
    30 public:
       
    31 
       
    32 	virtual ~AttributeRecipe() {
       
    33 	}
       
    34 
       
    35 	relpipe::common::type::StringX name;
       
    36 	relpipe::writer::TypeId type;
       
    37 
       
    38 };
       
    39 
       
    40 class RelationConfiguration {
       
    41 public:
       
    42 
       
    43 	virtual ~RelationConfiguration() {
       
    44 	}
       
    45 
       
    46 	relpipe::common::type::StringX relation;
       
    47 	relpipe::common::type::Boolean writeHeader = true;
       
    48 	std::vector<AttributeRecipe> attributes;
       
    49 	std::vector<relpipe::common::type::StringX> values;
       
    50 	std::istream* valueStream = nullptr;
       
    51 };
       
    52 
       
    53 class Configuration {
    29 class Configuration {
    54 public:
    30 public:
    55 	std::vector<RelationConfiguration> relationConfigurations;
    31 	bool listInputDevices = true;
       
    32 	bool listInputEvents = false;
    56 
    33 
    57 	virtual ~Configuration() {
    34 	virtual ~Configuration() {
    58 	}
    35 	}
    59 };
    36 };
    60 
    37