EHM DAL 0.2.3
Data abstraction layer for Eastside Hockey Manager
Loading...
Searching...
No Matches
name_pointer.h
1#pragma once
2
3// Application headers
4#include "include/database/pointer/pointer.h"
5#include "include/database/pointer/pointer_flags.h"
6
7// Qt headers
8#include <QString>
9
10namespace ehm_dal::data_types {
11
12// --- Name record pointer with text buffer --- //
17class NamePointer : public Pointer
18{
19public:
22 const qint32 record_id = PointerFlags::NULL_POINTER);
23 virtual ~NamePointer();
24
25 // Get data
26 inline QString text() const override { return name_buffer_; }
27
28 // Initialisation
29 void init() override;
30
31private:
32 QString name_buffer_;
33};
34} // namespace ehm_dal::data_types
35
The NamePointer class acts as a pointer to a Name table. The name string is buffered and is then resy...
Definition: name_pointer.h:18
void init() override
Initialise/connect the Pointer to the item to be pointed to. This need only be done once.
The Pointer class represents a pointer to a table item.
Definition: pointer.h:21
namespace ehm_dal::data_types
Definition: attribute.h:6
@ NULL_POINTER
Definition: pointer_flags.h:9
TableIndex
The TableIndex enum represents the id number of each table within the database.
Definition: table_index.h:14