MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::IO::FileMetadata Struct Reference

Generic metadata structure for any file type. More...

#include <FileReader.hpp>

+ Collaboration diagram for MayaFlux::IO::FileMetadata:

Public Member Functions

template<typename T >
std::optional< T > get_attribute (const std::string &key) const
 Get a typed attribute value by key.
 

Public Attributes

std::string format
 File format identifier (e.g., "wav", "mp3", "hdf5")
 
std::string mime_type
 MIME type if applicable (e.g., "audio/wav")
 
uint64_t file_size = 0
 Size in bytes.
 
std::chrono::system_clock::time_point creation_time
 File creation time.
 
std::chrono::system_clock::time_point modification_time
 Last modification time.
 
std::unordered_map< std::string, std::any > attributes
 Type-specific metadata stored as key-value pairs (e.g., sample rate, channels)
 

Detailed Description

Generic metadata structure for any file type.

Stores both standard and type-specific metadata for files, including format, MIME type, size, timestamps, and arbitrary key-value attributes.

Definition at line 23 of file FileReader.hpp.


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