![]() |
aqnwb 0.1.0
|
The main namespace for AqNWB. More...
Namespaces | |
namespace | HDF5 |
Namespace for all components of the HDF5 I/O backend. | |
namespace | IO |
namespace | NWB |
Namespace for all classes related to the NWB data standard. | |
namespace | SPEC |
Classes | |
class | Channel |
Class for storing acquisition system channel information. More... | |
class | Types |
Provides definitions for various types used in the project. More... | |
Functions | |
static std::string | generateUuid () |
Generates a UUID (Universally Unique Identifier) as a string. | |
static std::string | getCurrentTime () |
Get the current time in ISO 8601 format with the UTC offset. | |
static bool | isISO8601Date (const std::string &dateStr) |
Check that a string is formatted in ISO8601 format. | |
static std::shared_ptr< IO::BaseIO > | createIO (const std::string &type, const std::string &filename) |
Factory method to create an IO object. | |
static std::string | mergePaths (const std::string &path1, const std::string &path2) |
Merge two paths into a single path, handling extra trailing and starting "/". | |
static void | convertFloatToInt16LE (const float *source, void *dest, SizeType numSamples) |
Method to convert float values to uint16 values. This method was adapted from JUCE AudioDataConverters using a default value of destBytesPerSample = 2. | |
static std::unique_ptr< int16_t[]> | transformToInt16 (SizeType numSamples, float conversion_factor, const float *data) |
Method to scale float values and convert to int16 values. | |
The main namespace for AqNWB.
|
inlinestatic |
Method to convert float values to uint16 values. This method was adapted from JUCE AudioDataConverters using a default value of destBytesPerSample = 2.
source | The source float data to convert |
dest | The destination for the converted uint16 data |
numSamples | The number of samples to convert |
|
inlinestatic |
Factory method to create an IO object.
|
inlinestatic |
Generates a UUID (Universally Unique Identifier) as a string.
|
inlinestatic |
Get the current time in ISO 8601 format with the UTC offset.
|
inlinestatic |
Check that a string is formatted in ISO8601 format.
This function only validates the regex pattern but does not check that the time values specified are indeed valid.
|
inlinestatic |
Merge two paths into a single path, handling extra trailing and starting "/".
This function is useful for constructing paths in HDF5 files, where paths always use "/".
path1 | The first path to merge. |
path2 | The second path to merge. |
|
inlinestatic |
Method to scale float values and convert to int16 values.
numSamples | The number of samples to convert |
conversion_factor | The conversion factor to scale the data |
data | The data to convert |