1 /* 2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 #include "ImageInfo.h" 7 8 9 ImageInfo::ImageInfo() 10 : 11 fTeam(-1), 12 fImage(-1), 13 fName(), 14 fTextBase(0), 15 fTextSize(0), 16 fDataBase(0), 17 fDataSize(0) 18 { 19 } 20 21 ImageInfo::ImageInfo(const ImageInfo& other) 22 : 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) 31 { 32 } 33 34 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) 38 : 39 fTeam(team), 40 fImage(image), 41 fName(name), 42 fType(type), 43 fTextBase(textBase), 44 fTextSize(textSize), 45 fDataBase(dataBase), 46 fDataSize(dataSize) 47 { 48 } 49 50 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) 55 { 56 fTeam = team; 57 fImage = image; 58 fName = name; 59 fType = type; 60 fTextBase = textBase; 61 fTextSize = textSize; 62 fDataBase = dataBase; 63 fDataSize = dataSize; 64 } 65