PIP 6.1.0
Platform-Independent Primitives
Loading...
Searching...
No Matches
PIResourcesStorage Class Reference

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 &section_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 &section_name) const
 Returns registered section by name, or null if it is absent.
PIByteArray get (const PIString &section_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.

Detailed Description

Global storage for sections and entries registered by the resources subsystem.