PIP 5.6.1
Platform-Independent Primitives
Classes | Public Member Functions | Static Public Member Functions | List of all members
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.
 
Sectionsection (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 PIResourcesStorageinstance ()
 Returns singleton storage instance.
 

Detailed Description

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