LIEF: Library to Instrument Executable Formats Version 2.0.0
Loading...
Searching...
No Matches
ART/File.hpp
Go to the documentation of this file.
1/* Copyright 2017 - 2026 R. Thomas
2 *
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15#ifndef LIEF_ART_FILE_H
16#define LIEF_ART_FILE_H
17#include <ostream>
18
19#include "LIEF/ART/Header.hpp"
20
21#include "LIEF/Object.hpp"
22#include "LIEF/visibility.h"
23
24
25namespace LIEF::ART {
26class Parser;
27
28class LIEF_API File : public Object {
29 friend class Parser;
30
31 public:
32 File& operator=(const File& copy) = delete;
33 File(const File& copy) = delete;
34
37
38 void accept(Visitor& visitor) const override;
39
40
41 ~File() override;
42
43 LIEF_API friend std::ostream& operator<<(std::ostream& os, const File& art_file);
44
45 private:
46 File();
47
48 Header header_;
49};
50
51}
52
53
54#endif
const Header & header() const
File & operator=(const File &copy)=delete
File(const File &copy)=delete
friend class Parser
Definition ART/File.hpp:29
void accept(Visitor &visitor) const override
Definition ART/Header.hpp:32
Class which parses an ART file and transforms it into an ART::File object.
Definition ART/Parser.hpp:32
Definition Visitor.hpp:211
#define LIEF_LIFETIMEBOUND
Definition compiler_attributes.hpp:72
Definition ART/enums.hpp:20
#define LIEF_API
Definition visibility.h:44