plptools
Loading...
Searching...
No Matches
siscomponentrecord.h
Go to the documentation of this file.
1/*
2 * This file is part of plptools.
3 *
4 * Copyright (C) 2002 Daniel Brahneborg <basic.chello@se>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * along with this program; if not, see <https://www.gnu.org/licenses/>.
18 */
19
20#ifndef _SISCOMPONENTRECORD_H
21#define _SISCOMPONENTRECORD_H
22
23#include "sistypes.h"
24
25class SISFile;
26
37{
38public:
39
42
51 SisRC fillFrom(uint8_t* buf, int* base, off_t len, SISFile* sisFile);
52
56 uint32_t getLastEnd();
57
64 uint8_t* getName(int no);
65
66private:
67
68 uint32_t* m_nameLengths;
69 uint32_t* m_namePtrs;
70
74 uint8_t** m_names;
75
80
81};
82
83#endif
The name of the component in this SIS file.
SisRC fillFrom(uint8_t *buf, int *base, off_t len, SISFile *sisFile)
Populate the fields.
int m_nameCount
The number of names, so we know how much to delete.
uint32_t getLastEnd()
Find out the end position for the last name in the file.
uint8_t ** m_names
The extracted names, as zero terminated strings.
uint8_t * getName(int no)
Return the name for the given language.
The top level container of a SIS file.
Definition: sisfile.h:36
SisRC
Return Codes.
Definition: sistypes.h:29