CaptureMoment 0.1.0
Free and open-source non-destructive photo editor
Loading...
Searching...
No Matches
CaptureMoment::Core::Managers Namespace Reference

Classes

class  ISourceManager
 Abstract interface for managing image sources. More...
 
class  SourceManager
 Concrete implementation of ISourceManager using OIIO. More...
 
class  StateImageManager
 Manages the working image lifecycle and coordinates asynchronous processing. More...
 

Functions

static bool hasExtension (std::string_view path, std::span< const std::string_view > extensions) noexcept
 Checks if a file path has one of the specified extensions.
 

Variables

static std::shared_ptr< OIIO::ImageCache > s_global_cache_ptr { nullptr }
 
static std::once_flag s_cache_init_flag
 

Function Documentation

◆ hasExtension()

static bool CaptureMoment::Core::Managers::hasExtension ( std::string_view path,
std::span< const std::string_view > extensions )
staticnodiscardnoexcept

Checks if a file path has one of the specified extensions.

Parameters
pathThe file path to check.
extensionsThe list of extensions to compare against.
Returns
true If the file has one of the specified extensions.
false If the file does not have any of the specified extensions.

Definition at line 32 of file source_manager.cpp.

Variable Documentation

◆ s_global_cache_ptr

std::shared_ptr<OIIO::ImageCache> CaptureMoment::Core::Managers::s_global_cache_ptr { nullptr }
static

Definition at line 22 of file source_manager.cpp.

◆ s_cache_init_flag

std::once_flag CaptureMoment::Core::Managers::s_cache_init_flag
static

Definition at line 23 of file source_manager.cpp.

CaptureMoment — footer