aqnwb 0.1.0
Loading...
Searching...
No Matches
Utils.hpp File Reference
#include <algorithm>
#include <chrono>
#include <cmath>
#include <cstdint>
#include <ctime>
#include <iomanip>
#include <sstream>
#include <boost/date_time.hpp>
#include <boost/endian/conversion.hpp>
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/uuid_io.hpp>
#include "BaseIO.hpp"
#include "boost/date_time/c_local_time_adjustor.hpp"
#include "hdf5/HDF5IO.hpp"
Include dependency graph for Utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  AQNWB
 The main namespace for AqNWB.
 

Functions

std::string AQNWB::generateUuid ()
 Generates a UUID (Universally Unique Identifier) as a string.
 
std::string AQNWB::getCurrentTime ()
 Get the current time in ISO 8601 format with the UTC offset.
 
std::shared_ptr< BaseIOAQNWB::createIO (const std::string &type, const std::string &filename)
 Factory method to create an IO object.
 
void AQNWB::convertFloatToInt16LE (const float *source, void *dest, int numSamples)
 Method to convert float values to uint16 values. This method was adapted from JUCE AudioDataConverters using a default value of destBytesPerSample = 2.
 
std::unique_ptr< int16_t[]> AQNWB::transformToInt16 (SizeType numSamples, float conversion_factor, const float *data)
 Method to scale float values and convert to int16 values.