plptools
Loading...
Searching...
No Matches
SISComponentNameRecord Class Reference

The name of the component in this SIS file. More...

#include <siscomponentrecord.h>

Public Member Functions

 SISComponentNameRecord ()
 
virtual ~SISComponentNameRecord ()
 
SisRC fillFrom (uint8_t *buf, int *base, off_t len, SISFile *sisFile)
 Populate the fields. More...
 
uint32_t getLastEnd ()
 Find out the end position for the last name in the file. More...
 
uint8_t * getName (int no)
 Return the name for the given language. More...
 

Private Attributes

uint32_t * m_nameLengths
 
uint32_t * m_namePtrs
 
uint8_t ** m_names
 The extracted names, as zero terminated strings. More...
 
int m_nameCount
 The number of names, so we know how much to delete. More...
 

Detailed Description

The name of the component in this SIS file.

A single instance holds the names for all languages.

There is one name record for each language. First comes the lengths of all the names, as 32 bit integers. Second comes pointers to the names, as an index in the complete SISFile.

Definition at line 36 of file siscomponentrecord.h.

Constructor & Destructor Documentation

◆ SISComponentNameRecord()

SISComponentNameRecord::SISComponentNameRecord ( )

Definition at line 28 of file siscomponentrecord.cpp.

◆ ~SISComponentNameRecord()

SISComponentNameRecord::~SISComponentNameRecord ( )
virtual

Definition at line 33 of file siscomponentrecord.cpp.

Member Function Documentation

◆ fillFrom()

SisRC SISComponentNameRecord::fillFrom ( uint8_t *  buf,
int *  base,
off_t  len,
SISFile sisFile 
)

Populate the fields.

Parameters
bufThe buffer to read data from.
baseThe index where we start reading data.
lenThe length of the buffer, for range checking.
sisFileThe container sis file.

Definition at line 44 of file siscomponentrecord.cpp.

◆ getLastEnd()

uint32_t SISComponentNameRecord::getLastEnd ( )

Find out the end position for the last name in the file.

Definition at line 103 of file siscomponentrecord.cpp.

◆ getName()

uint8_t * SISComponentNameRecord::getName ( int  no)

Return the name for the given language.

Parameters
noThe sequence number in the list of language records in the sis file.

Definition at line 116 of file siscomponentrecord.cpp.

Member Data Documentation

◆ m_nameCount

int SISComponentNameRecord::m_nameCount
private

The number of names, so we know how much to delete.

Definition at line 79 of file siscomponentrecord.h.

◆ m_nameLengths

uint32_t* SISComponentNameRecord::m_nameLengths
private

Definition at line 68 of file siscomponentrecord.h.

◆ m_namePtrs

uint32_t* SISComponentNameRecord::m_namePtrs
private

Definition at line 69 of file siscomponentrecord.h.

◆ m_names

uint8_t** SISComponentNameRecord::m_names
private

The extracted names, as zero terminated strings.

Definition at line 74 of file siscomponentrecord.h.


The documentation for this class was generated from the following files: