Skip to content

Commit

Permalink
Register SpikeEventSeries as a type
Browse files Browse the repository at this point in the history
  • Loading branch information
oruebel committed Sep 20, 2024
1 parent 5798145 commit 8832b04
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nwb/ecephys/SpikeEventSeries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
using namespace AQNWB::NWB;

// SpikeEventSeries
// Initialize the static registered_ member to trigger registration
REGISTER_SUBCLASS_IMPL(SpikeEventSeries)

/** Constructor */
SpikeEventSeries::SpikeEventSeries(const std::string& path,
Expand Down
3 changes: 3 additions & 0 deletions src/nwb/ecephys/SpikeEventSeries.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ namespace AQNWB::NWB
class SpikeEventSeries : public ElectricalSeries
{
public:
// Register the TimeSeries as a subclass of Container
REGISTER_SUBCLASS(SpikeEventSeries, "core")

/**
* @brief Constructor.
* @param path The location of the SpikeEventSeries in the file.
Expand Down

0 comments on commit 8832b04

Please sign in to comment.