1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
25 #include <cosv/bstream.hxx>
26 #include <cosv/openclose.hxx>
29 #include <cosv/string.hxx>
31 #include <cosv/persist.hxx>
32 #include <cosv/ploc.hxx>
40 File is a class representing a file.
42 class File
: public bstream
,
44 public ploc::Persistent
49 const char * i_sLocation
,
50 uintt in_nMode
= CFM_RW
);
52 const String
& i_sLocation
,
53 uintt in_nMode
= CFM_RW
);
67 // Interface bistream:
68 virtual uintt
do_read(
71 virtual bool inq_eod() const;
72 // Interface bostream:
73 virtual uintt
do_write(
77 virtual uintt
do_seek(
79 seek_dir i_eStartPoint
= ::csv::beg
);
80 virtual uintt
inq_position() const;
81 // Interface OpenClose:
83 uintt in_nOpenModeInfo
);
84 virtual void do_close();
85 virtual bool inq_is_open() const;
86 // Interface Persistent:
87 virtual const ploc::Path
&
93 uintt nMode
; /// RWMode, OpenMode and ShareMode.
114 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */