/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #ifndef INCLUDED_DBACCESS_SOURCE_FILTER_HSQLDB_HSQLIMPORT_HXX #define INCLUDED_DBACCESS_SOURCE_FILTER_HSQLDB_HSQLIMPORT_HXX #include #include #include "rowinputbinary.hxx" #include "hsqlbinarynode.hxx" namespace dbahsql { class SAL_DLLPUBLIC_EXPORT HsqlImporter { private: css::uno::Reference& m_rConnection; css::uno::Reference m_xStorage; protected: void insertRow(const std::vector& xRows, const OUString& sTable, const std::vector& rColTypes); void processTree(HsqlBinaryNode& rNode, HsqlRowInputStream& rStream, const std::vector& rColTypes, const OUString& sTableName); void parseTableRows(const std::vector& rIndexes, const std::vector& rColTypes, const OUString& sTableName); public: HsqlImporter(css::uno::Reference& rConnection, const css::uno::Reference& rStorage); void importHsqlDatabase(); }; } #endif // INCLUDED_DBACCESS_SOURCE_FILTER_HSQLDB_HSQLIMPORT_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */