2009-06-18 21:57:37 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef IMAGE_INFO_H
|
|
|
|
#define IMAGE_INFO_H
|
|
|
|
|
|
|
|
#include <image.h>
|
|
|
|
#include <String.h>
|
|
|
|
|
2009-06-30 02:38:15 +04:00
|
|
|
#include "Types.h"
|
2009-06-20 21:20:49 +04:00
|
|
|
|
2009-06-18 21:57:37 +04:00
|
|
|
|
|
|
|
class ImageInfo {
|
|
|
|
public:
|
|
|
|
ImageInfo();
|
|
|
|
ImageInfo(const ImageInfo& other);
|
|
|
|
ImageInfo(team_id team, image_id image,
|
2009-06-20 21:20:49 +04:00
|
|
|
const BString& name,
|
|
|
|
target_addr_t textBase,
|
|
|
|
target_size_t textSize,
|
|
|
|
target_addr_t dataBase,
|
|
|
|
target_size_t dataSize);
|
2009-06-18 21:57:37 +04:00
|
|
|
|
|
|
|
void SetTo(team_id team, image_id image,
|
2009-06-20 21:20:49 +04:00
|
|
|
const BString& name,
|
|
|
|
target_addr_t textBase,
|
|
|
|
target_size_t textSize,
|
|
|
|
target_addr_t dataBase,
|
|
|
|
target_size_t dataSize);
|
2009-06-18 21:57:37 +04:00
|
|
|
|
|
|
|
team_id TeamID() const { return fTeam; }
|
|
|
|
image_id ImageID() const { return fImage; }
|
|
|
|
const char* Name() const { return fName.String(); }
|
|
|
|
|
2009-06-20 21:20:49 +04:00
|
|
|
target_addr_t TextBase() const { return fTextBase; }
|
|
|
|
target_size_t TextSize() const { return fTextSize; }
|
|
|
|
target_addr_t DataBase() const { return fDataBase; }
|
|
|
|
target_size_t DataSize() const { return fDataSize; }
|
|
|
|
|
2009-06-18 21:57:37 +04:00
|
|
|
private:
|
|
|
|
thread_id fTeam;
|
|
|
|
image_id fImage;
|
|
|
|
BString fName;
|
2009-06-20 21:20:49 +04:00
|
|
|
target_addr_t fTextBase;
|
|
|
|
target_size_t fTextSize;
|
|
|
|
target_addr_t fDataBase;
|
|
|
|
target_size_t fDataSize;
|
2009-06-18 21:57:37 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // IMAGE_INFO_H
|