# HG changeset patch # User František Kučera # Date 1616950630 -7200 # Node ID 043a3e2e5f0c206d7f16048d57247cd76fed7ec0 # Parent 17fc678e0a94e8761c73cfeb8ecd977dcc56566b namespaces clean up diff -r 17fc678e0a94 -r 043a3e2e5f0c src/X11Handler.h --- a/src/X11Handler.h Sun Mar 28 18:41:21 2021 +0200 +++ b/src/X11Handler.h Sun Mar 28 18:57:10 2021 +0200 @@ -25,7 +25,7 @@ #include #include -#include +#include #include #include #include @@ -36,24 +36,20 @@ namespace out { namespace x11 { -using namespace relpipe; -using namespace relpipe::reader; -using namespace relpipe::reader::handlers; - -class X11Handler : public RelationalReaderStringHandler { +class X11Handler : public relpipe::reader::handlers::RelationalReaderStringHandler { private: std::ostream& output; Configuration& configuration; const char QUOTE = '"'; std::wstring_convert> convertor; // TODO: probably not needed - std::vector firstAttributes; - integer_t valueCount = 0; + std::vector firstAttributes; + relpipe::common::type::Integer valueCount = 0; public: X11Handler(std::ostream& output, Configuration& configuration) : output(output), configuration(configuration) { } - void startRelation(string_t name, std::vector attributes) override { + void startRelation(relpipe::common::type::StringX name, std::vector attributes) override { if (firstAttributes.empty()) { firstAttributes = attributes; if (configuration.writeHeader) for (auto attr : attributes) attribute(attr.getAttributeName()); @@ -62,7 +58,7 @@ } } - void attribute(const string_t& value) override { + void attribute(const relpipe::common::type::StringX& value) override { valueCount++; if (value.size() > 0) {