3 #ifndef RESOURCE_ITEM_H
4 #define RESOURCE_ITEM_H
7 #include <SupportDefs.h>
17 virtual ~ResourceItem();
19 void SetLocation(roff_t offset
, roff_t size
);
20 void SetIdentity(type_code type
, int32 id
,
23 void SetOffset(roff_t offset
);
24 roff_t
GetOffset() const;
26 void SetSize(roff_t size
);
27 roff_t
GetSize() const;
29 void SetType(type_code type
);
30 type_code
GetType() const;
35 void SetName(const char* name
);
36 const char* GetName() const;
38 void SetData(const void* data
, roff_t size
= -1);
40 void* AllocData(roff_t size
= -1);
41 void* GetData() const;
43 status_t
LoadData(BPositionIO
& file
,
46 status_t
WriteData(BPositionIO
& file
) const;
59 #endif // RESOURCE_ITEM_H