From eecba3b5fcb47a01e6e13ee1940def989f6dd22d Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Thu, 28 Feb 2002 20:56:59 +0000 Subject: - Added SIS stuff by Daniel Brahneborg --- lib/siscomponentrecord.h | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 lib/siscomponentrecord.h (limited to 'lib/siscomponentrecord.h') diff --git a/lib/siscomponentrecord.h b/lib/siscomponentrecord.h new file mode 100644 index 0000000..995750d --- /dev/null +++ b/lib/siscomponentrecord.h @@ -0,0 +1,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 + -- cgit v1.2.3