Debian Codegraph @

src/lib/EPUBCounter.h

raw
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libepubgen 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 #ifndef INCLUDED_EPUBCOUNTER_H
11 #define INCLUDED_EPUBCOUNTER_H
12
13 namespace libepubgen
14 {
15
16 class EPUBCounter
17 {
18 // disable copying
19 EPUBCounter(const EPUBCounter &);
20 EPUBCounter &operator=(const EPUBCounter &);
21
22 public:
23 EPUBCounter();
24
25 unsigned current() const;
26 unsigned next();
27
28 private:
29 unsigned m_current;
30 };
31
32 }
33
34 #endif // INCLUDED_EPUBCOUNTER_H
35
36 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */