blog/cpp/fonts/core/tables/name/name.h

30 lines
585 B
C
Raw Permalink Normal View History

2024-09-13 15:10:58 +08:00
#ifndef __NAME_H__
#define __NAME_H__
#include <cstdint>
#include <list>
#include <string>
#include <map>
#include "../../../reader/reader.h"
#include "name_head.h"
class NameTable
{
private:
uint16_t offset;
uint16_t len;
nameTableHeader header;
std::map<int, std::string> names;
public:
NameTable():offset(0),len(0),header(),names({}){};
~NameTable() {};
NameTable(reader *, uint16_t);
void readHeader(reader*);
void read(reader *, uint16_t);
void readRecord(reader *);
void display();
void readName(reader*, nameRecord);
};
#endif