equal
deleted
inserted
replaced
23 #include <vector> |
23 #include <vector> |
24 |
24 |
25 #include "typedefs.h" |
25 #include "typedefs.h" |
26 #include "TypeId.h" |
26 #include "TypeId.h" |
27 #include "AttributeMetadata.h" |
27 #include "AttributeMetadata.h" |
|
28 #include "BufferingMode.h" |
28 |
29 |
29 namespace relpipe { |
30 namespace relpipe { |
30 namespace writer { |
31 namespace writer { |
31 |
32 |
32 class RelationalWriter { |
33 class RelationalWriter { |
69 * should be called in this way: writeAttribute(&value, typeid(value)); |
70 * should be called in this way: writeAttribute(&value, typeid(value)); |
70 * if the type does not match, the RelpipeWriterException is thrown |
71 * if the type does not match, the RelpipeWriterException is thrown |
71 */ |
72 */ |
72 virtual void writeAttribute(const void* value, const std::type_info& type) = 0; |
73 virtual void writeAttribute(const void* value, const std::type_info& type) = 0; |
73 |
74 |
|
75 |
|
76 /** |
|
77 * @param mode buffering mode to be set |
|
78 * @param envDefault if mode is ENVIRONMENT but given environmental variable is not set, this defaul is used |
|
79 */ |
|
80 virtual void setBufferingMode(BufferingMode mode, BufferingMode envDefault = BufferingMode::AUTO) = 0; |
|
81 |
74 }; |
82 }; |
75 |
83 |
76 } |
84 } |
77 } |
85 } |