libultraship
Reimplementations of libultra (N64 SDK) functions for modern hardware
Loading...
Searching...
No Matches
Ship::ResourceFilter Struct Reference

Specifies which resources to include or exclude when performing a bulk load/unload. More...

#include <ResourceManager.h>

Public Member Functions

 ResourceFilter (const std::list< std::string > &includeMasks, const std::list< std::string > &excludeMasks, const uintptr_t owner, const std::shared_ptr< Archive > parent)
 

Public Attributes

const std::list< std::string > IncludeMasks
 Glob patterns that a resource path must match to be included.
 
const std::list< std::string > ExcludeMasks
 Glob patterns that cause a matching resource to be excluded even when it matches IncludeMasks.
 
const uintptr_t Owner = 0
 Opaque owner handle; 0 matches resources from any owner.
 
const std::shared_ptr< ArchiveParent = nullptr
 Archive to scope the query to; nullptr matches resources from any archive.
 

Detailed Description

Specifies which resources to include or exclude when performing a bulk load/unload.

IncludeMasks and ExcludeMasks are glob-style patterns matched against resource paths. Owner and Parent scope the query to resources loaded by a specific owner or from a specific archive (pass 0 / nullptr to match all).

Constructor & Destructor Documentation

◆ ResourceFilter()

Ship::ResourceFilter::ResourceFilter ( const std::list< std::string > &  includeMasks,
const std::list< std::string > &  excludeMasks,
const uintptr_t  owner,
const std::shared_ptr< Archive parent 
)

Member Data Documentation

◆ ExcludeMasks

const std::list<std::string> Ship::ResourceFilter::ExcludeMasks

Glob patterns that cause a matching resource to be excluded even when it matches IncludeMasks.

◆ IncludeMasks

const std::list<std::string> Ship::ResourceFilter::IncludeMasks

Glob patterns that a resource path must match to be included.

◆ Owner

const uintptr_t Ship::ResourceFilter::Owner = 0

Opaque owner handle; 0 matches resources from any owner.

◆ Parent

const std::shared_ptr<Archive> Ship::ResourceFilter::Parent = nullptr

Archive to scope the query to; nullptr matches resources from any archive.


The documentation for this struct was generated from the following file: