source: soft/giet_vm/memo/include/libelfpp/elfpp/elfpp_segment.hxx @ 378

Last change on this file since 378 was 163, checked in by karaoui, 12 years ago

changing mover to memo
changing soft.bin to soft.elf
...

File size: 1.9 KB
Line 
1/*
2    This file is part of Libelfpp.
3
4    Libelfpp is free software: you can redistribute it and/or modify
5    it under the terms of the GNU Lesser General Public License as
6    published by the Free Software Foundation, either version 3 of the
7    License, or (at your option) any later version.
8
9    Libelfpp is distributed in the hope that it will be useful, but
10    WITHOUT ANY WARRANTY; without even the implied warranty of
11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12    General Public License for more details.
13
14    You should have received a copy of the GNU Lesser General Public
15    License along with Libelfpp.  If not, see
16    <http://www.gnu.org/licenses/>.
17
18   Copyright (c) Alexandre Becoulet <alexandre.becoulet@free.fr>
19*/
20
21#ifndef ELFPP_SEGMENT_HXX_
22#define ELFPP_SEGMENT_HXX_
23
24namespace elfpp
25{
26
27  segment::segment(object &obj)
28  {
29  }
30
31  segment::~segment()
32  {
33  }
34
35  p_type_e segment::get_type() const
36  {
37    return type_;
38  }
39
40  void segment::set_type(p_type_e e)
41  {
42    type_ = e;
43  }
44
45  p_flags_e segment::get_flags() const
46  {
47    return flags_;
48  }
49
50  void segment::set_flags(p_flags_e e)
51  {
52    flags_ = e;
53  }
54
55  uint64_t segment::get_vaddr() const
56  {
57    return vaddr_;
58  }
59
60  void segment::set_vaddr(uint64_t a)
61  {
62    vaddr_ = a;
63  }
64
65  uint64_t segment::get_paddr() const
66  {
67    return paddr_;
68  }
69
70  void segment::set_paddr(uint64_t a)
71  {
72    paddr_ = a;
73  }
74
75  size_t segment::get_mem_size() const
76  {
77    return mem_size_;
78  }
79
80  void segment::set_mem_size(size_t a)
81  {
82    mem_size_ = a;
83  }
84
85  size_t segment::get_file_size() const
86  {
87    return file_size_;
88  }
89
90  void segment::set_file_size(size_t a)
91  {
92    file_size_ = a;
93  }
94
95  off_t segment::get_file_offset() const
96  {
97    return offset_;
98  }
99
100  void segment::set_file_offset(off_t a)
101  {
102    offset_ = a;
103  }
104
105  size_t segment::get_align() const
106  {
107    return align_;
108  }
109
110  void segment::set_align(size_t a)
111  {
112    align_ = a;
113  }
114
115}
116
117#endif
118
Note: See TracBrowser for help on using the repository browser.