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 .
20 #ifndef CSV_PLOCDIR_HXX
21 #define CSV_PLOCDIR_HXX
26 #include <cosv/persist.hxx>
28 #include <cosv/ploc.hxx>
44 class Directory
: public Persistent
50 const Path
& i_rLocation
);
52 const char * i_rLocation
);
54 const Directory
& i_rDir
);
58 Directory
& operator+=(
59 const String
& i_sName
);
60 Directory
& operator+=(
61 const DirectoryChain
&
63 Directory
& operator-=(
68 bool i_bCreateParentsIfNecessary
= true ) const;
71 void GetContainedDirectories(
72 StringVector
& o_rResult
) const;
74 Currently only filters of the form "*.ending" or "*.*"
75 (the default) are processed correctly under UNIX. Under WNT this
76 restriction does not apply.
78 void GetContainedFiles(
79 StringVector
& o_rResult
,
80 const char * i_sFilter
= "*.*",
81 E_Recursivity i_eRecursivity
= flat
) const;
83 // Interface Peristent:
89 true, if parent(!) directory exists or could be created.
90 false, if this is a root directory.
92 bool Check_Parent() const;
93 bool PhysicalCreate_Dir(
94 const char * i_sStr
) const;
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */