MiKTeX 26.5-next
A scalable TeX distribution
Loading...
Searching...
No Matches
TpmParser.h
1/* TpmParser.h: -*- C++ -*-
2
3 Copyright (C) 2001-2019 Christian Schenk
4
5 This file is part of MiKTeX Package Manager.
6
7 MiKTeX Package Manager 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 MiKTeX Package Manager 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 MiKTeX Package Manager; if not, write to the Free
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA
20 02111-1307, USA. */
21
22#if !defined(F16B91F7E26E4BF69460B977B1C0BC5A)
23#define F16B91F7E26E4BF69460B977B1C0BC5A
24
25#include <memory>
26#include <string>
27
28#include <miktex/Util/PathName>
29#include <miktex/Core/Session>
30
31#include <miktex/PackageManager/PackageManager>
32
33MPM_INTERNAL_BEGIN_NAMESPACE;
34
35class MIKTEXNOVTABLE TpmParser
36{
37public:
38 virtual ~TpmParser() = 0;
39
40public:
41 virtual void Parse(const MiKTeX::Util::PathName& path, const std::string& texmfPrefix) = 0;
42
43public:
44 virtual const MiKTeX::Packages::PackageInfo& GetPackageInfo() const = 0;
45
46public:
47 void Parse(const MiKTeX::Util::PathName& path);
48
49public:
50 static std::unique_ptr<TpmParser> Create();
51};
52
53MPM_INTERNAL_END_NAMESPACE;
54
55#endif
Definition TpmParser.h:36
Instances of this class can be used to store path names.
Definition PathName.h:64
Package record.
Definition PackageInfo.h:34