NumpyFrameSaver.h
Go to the documentation of this file.
1 /** Some frames to a Numpy file */
2 
3 #ifndef WIRECELLSIO_NUMPYFRAMESAVER
4 #define WIRECELLSIO_NUMPYFRAMESAVER
5 
8 #include "WireCellUtil/Logging.h"
9 
10 namespace WireCell {
11  namespace Sio {
12 
13  // This saver immediately saves each frame.
14  class NumpyFrameSaver : public virtual WireCell::IFrameFilter,
16  public:
18  virtual ~NumpyFrameSaver();
19 
20  /// IFrameFilter
21  virtual bool operator()(const WireCell::IFrame::pointer& inframe,
22  WireCell::IFrame::pointer& outframe);
23 
24  /// IConfigurable
26  virtual void configure(const WireCell::Configuration& config);
27  private:
28 
30  int m_save_count; // count frames saved
32  };
33  }
34 }
35 #endif
std::shared_ptr< const IFrame > pointer
Definition: IData.h:19
virtual WireCell::Configuration default_configuration() const
IConfigurable.
virtual bool operator()(const WireCell::IFrame::pointer &inframe, WireCell::IFrame::pointer &outframe)
IFrameFilter.
virtual void configure(const WireCell::Configuration &config)
Accept a configuration.
static Config * config
Definition: config.cpp:1054
std::shared_ptr< spdlog::logger > logptr_t
Definition: Logging.h:24
Definition: Main.h:22
Json::Value Configuration
Definition: Configuration.h:50