MiKTeX 26.5-next
A scalable TeX distribution
Loading...
Searching...
No Matches
CsvList.h
1/* miktex/Core/CsvList.h: -*- C++ -*-
2
3 Copyright (C) 1996-2020 Christian Schenk
4
5 This file is part of the MiKTeX Core Library.
6
7 The MiKTeX Core Library is free software; you can redistribute it
8 and/or modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; either version 2, or
10 (at your option) any later version.
11
12 The MiKTeX Core Library is distributed in the hope that it will be
13 useful, but WITHOUT ANY WARRANTY; without even the implied warranty
14 of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with the MiKTeX Core Library; if not, write to the Free
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20 02111-1307, USA. */
21
22#pragma once
23
24#if !defined(FB648E67CF8147BEB6646148F256DC30)
25#define FB648E67CF8147BEB6646148F256DC30
26
27#include <miktex/Core/config.h>
28
29#include <memory>
30#include <string>
31
32MIKTEX_CORE_BEGIN_NAMESPACE;
33
34class CsvList
35{
36public:
37 CsvList() = delete;
38
39public:
40 CsvList(const CsvList& other) = delete;
41
42public:
43 CsvList& operator= (const CsvList& other) = delete;
44
45public:
46 CsvList(CsvList&& other) = delete;
47
48public:
49 CsvList& operator= (CsvList&& other) = delete;
50
51public:
52 virtual MIKTEXCOREEXPORT MIKTEXTHISCALL ~CsvList() noexcept;
53
54public:
55 MIKTEXCOREEXPORT MIKTEXTHISCALL CsvList(const std::string& s, char separator);
56
57public:
58 explicit MIKTEXCOREEXPORT MIKTEXTHISCALL operator bool() const;
59
60public:
61 MIKTEXCORETHISAPI(std::string) operator*() const;
62
63public:
64 MIKTEXCORETHISAPI(CsvList &) operator++();
65
66private:
67 class impl;
68 std::unique_ptr<impl> pimpl;
69};
70
71MIKTEX_CORE_END_NAMESPACE;
72
73#endif