![]() |
Max OS 0.3
|
Manages all the resource registries for each resource type. More...
#include <resource.h>
Public Member Functions | |
| GlobalResourceRegistry () | |
| Constructs a new GlobalResourceRegistry and sets it as the current global registry. | |
| ~GlobalResourceRegistry () | |
| Destructor for GlobalResourceRegistry, unsets it as the current global registry if it is. | |
Static Public Member Functions | |
| static BaseResourceRegistry * | get_registry (resource_type_t type) |
| Gets a registry of a type. | |
| static void | add_registry (resource_type_t type, BaseResourceRegistry *registry) |
| Adds a registry to the global list if there is not already one for that type. | |
| static void | remove_registry (BaseResourceRegistry *registry) |
| Adds a registry to the global list if there is not already one for that type. | |
Manages all the resource registries for each resource type.
Definition at line 121 of file resource.h.
| GlobalResourceRegistry::GlobalResourceRegistry | ( | ) |
Constructs a new GlobalResourceRegistry and sets it as the current global registry.
Definition at line 197 of file resource.cpp.
| GlobalResourceRegistry::~GlobalResourceRegistry | ( | ) |
Destructor for GlobalResourceRegistry, unsets it as the current global registry if it is.
Definition at line 205 of file resource.cpp.
|
static |
Adds a registry to the global list if there is not already one for that type.
| type | The type of registry being added |
| registry | The registry to add |
Definition at line 232 of file resource.cpp.
Referenced by MaxOS::processes::BaseResourceRegistry::BaseResourceRegistry().
|
static |
Gets a registry of a type.
| type | The type of registry to get |
Definition at line 217 of file resource.cpp.
Referenced by MaxOS::processes::ResourceManager::close_resource(), MaxOS::processes::ResourceManager::open_resource(), MaxOS::system::SyscallManager::syscall_resource_create(), MaxOS::filesystem::FileResource::write(), and MaxOS::filesystem::DirectoryResource::write().
|
static |
Adds a registry to the global list if there is not already one for that type.
| registry | The registry to add |
Definition at line 246 of file resource.cpp.
References MaxOS::processes::BaseResourceRegistry::type().
Referenced by MaxOS::processes::BaseResourceRegistry::~BaseResourceRegistry().