aboutsummaryrefslogtreecommitdiffstats
path: root/lib/siscomponentrecord.h
blob: 995750d3f46e4eef3c0702001e5a4abcb2dea64b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef _SISCOMPONENTRECORD_H
#define _SISCOMPONENTRECORD_H

#include "sistypes.h"

class SISFile;

/**
 * The name of the component in this SIS file.
 * A single instance holds the names for all languages.
 */
class SISComponentNameRecord
{
public:

	virtual ~SISComponentNameRecord();

	/**
	 * Populate the fields.
	 */
	void fillFrom(uchar* buf, int base, SISFile* sisFile);

	uchar* getName(int no);

private:

	uint32* m_nameLengths;
	uint32* m_namePtrs;

	/**
	 * The extracted names.
	 */
	uchar** m_names;

};

#endif