Line data Source code
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 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 :
20 : #ifndef ADC_PARSER_FILECOLI_HXX
21 : #define ADC_PARSER_FILECOLI_HXX
22 :
23 :
24 : namespace autodoc
25 : {
26 :
27 1 : class FileCollector_Ifc
28 : {
29 : public:
30 : // TYPES
31 : typedef StringVector::const_iterator const_iterator;
32 :
33 : enum E_SearchMode
34 : {
35 : flat,
36 : recursive
37 : };
38 :
39 : // LIFECYCLE
40 1 : virtual ~FileCollector_Ifc() {}
41 :
42 : // OPERATIONS
43 : virtual uintt AddFilesFrom(
44 : const char * i_sRootDir,
45 : const char * i_sFilter,
46 : E_SearchMode i_eSearchMode ) = 0;
47 : virtual uintt AddFile(
48 : const char * i_sFilePath ) = 0;
49 : virtual void EraseAll() = 0;
50 :
51 : // INQUIRY
52 : virtual const_iterator
53 : Begin() const = 0;
54 : virtual const_iterator
55 : End() const = 0;
56 : virtual uintt Size() const = 0;
57 : };
58 :
59 :
60 : } // namespace autodoc
61 :
62 :
63 : #endif
64 :
65 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|