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