![]() |
PIP 5.6.1
Platform-Independent Primitives
|
Global storage for sections and entries registered by the resources subsystem. More...
#include <piresourcesstorage.h>
Classes | |
| struct | Section |
| One logical resource section with named binary entries. More... | |
Public Member Functions | |
| void | registerSection (const PIString §ion_name, const Section &data) |
Registers or merges a ready section under name section_name. | |
| void | registerSection (const uchar *rc_data, const uchar *rc_desc, int rc_desc_size) |
| Registers compiled resources from raw data and serialized descriptors. | |
| Section * | section (const PIString §ion_name) const |
| Returns registered section by name, or null if it is absent. | |
| PIByteArray | get (const PIString §ion_name, const PIString &entry_name) const |
| Returns entry data by section and entry name. | |
| PIByteArray | get (const PIString &entry_name) const |
Returns first entry with name entry_name across all sections. | |
| void | clear () |
| Removes all registered sections and entry buffers. | |
Static Public Member Functions | |
| static PIResourcesStorage * | instance () |
| Returns singleton storage instance. | |
Global storage for sections and entries registered by the resources subsystem.