headers/bsd: Add sys/queue.h.
[haiku.git] / src / kits / debugger / model / ImageInfo.cpp
blobfb056ca61586ee5691bf6925c7dff31e267f37ca
1 /*
2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
6 #include "ImageInfo.h"
9 ImageInfo::ImageInfo()
11 fTeam(-1),
12 fImage(-1),
13 fName(),
14 fTextBase(0),
15 fTextSize(0),
16 fDataBase(0),
17 fDataSize(0)
21 ImageInfo::ImageInfo(const ImageInfo& other)
23 fTeam(other.fTeam),
24 fImage(other.fImage),
25 fName(other.fName),
26 fType(other.fType),
27 fTextBase(other.fTextBase),
28 fTextSize(other.fTextSize),
29 fDataBase(other.fDataBase),
30 fDataSize(other.fDataSize)
35 ImageInfo::ImageInfo(team_id team, image_id image, const BString& name,
36 image_type type, target_addr_t textBase, target_size_t textSize,
37 target_addr_t dataBase, target_size_t dataSize)
39 fTeam(team),
40 fImage(image),
41 fName(name),
42 fType(type),
43 fTextBase(textBase),
44 fTextSize(textSize),
45 fDataBase(dataBase),
46 fDataSize(dataSize)
51 void
52 ImageInfo::SetTo(team_id team, image_id image, const BString& name,
53 image_type type, target_addr_t textBase, target_size_t textSize,
54 target_addr_t dataBase, target_size_t dataSize)
56 fTeam = team;
57 fImage = image;
58 fName = name;
59 fType = type;
60 fTextBase = textBase;
61 fTextSize = textSize;
62 fDataBase = dataBase;
63 fDataSize = dataSize;