LibreOffice Module dbaccess (master) 1
rowinputbinary.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#pragma once
11
12#include <vector>
13#include <tools/stream.hxx>
14
15#include <com/sun/star/io/XInputStream.hpp>
16
17#include "columndef.hxx"
18
19namespace dbahsql
20{
22{
23private:
24 std::unique_ptr<SvStream> m_pStream;
25
26protected:
27 OUString readString();
28 bool checkNull();
29
30 OUString readUTF(sal_Int32 nLen);
31
32public:
34
39 std::vector<css::uno::Any> readOneRow(const std::vector<ColumnDefinition>& colTypes);
40
44 void seek(sal_Int32 nPos);
45
46 void setInputStream(css::uno::Reference<css::io::XInputStream> const& rStream);
47 SvStream* getInputStream() const;
48};
49
50} // namespace dbahsql
51
52/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::vector< css::uno::Any > readOneRow(const std::vector< ColumnDefinition > &colTypes)
Reads one row from the actual position.
std::unique_ptr< SvStream > m_pStream
OUString readUTF(sal_Int32 nLen)
SvStream * getInputStream() const
void setInputStream(css::uno::Reference< css::io::XInputStream > const &rStream)
void seek(sal_Int32 nPos)
Sets the file-pointer offset, measured from the beginning of the file.