MagnifySource.h
Go to the documentation of this file.
1 /** A "Magnify" file is one used for viewing in the Magnify display.
2  *
3  * The file can only hold one frame so this source may be called at
4  * most twice before it starts returning false. First time will give
5  * a frame, second time will give an EOS.
6  */
7 
8 #ifndef WIRECELLROOT_MAGNIFYFILESOURCE
9 #define WIRECELLROOT_MAGNIFYFILESOURCE
10 
13 
14 namespace WireCell {
15  namespace Root {
16 
17  class MagnifySource : public IFrameSource, public IConfigurable {
18  public:
19 
20  MagnifySource();
21  virtual ~MagnifySource();
22 
23  /// IFrameSource
24  virtual bool operator()(IFrame::pointer& out);
25 
26  /// IConfigurable
28  virtual void configure(const WireCell::Configuration& config);
29  private:
31  int m_calls;
32  };
33  }
34 }
35 
36 #endif
std::shared_ptr< const IFrame > pointer
Definition: IData.h:19
virtual WireCell::Configuration default_configuration() const
IConfigurable.
static Config * config
Definition: config.cpp:1054
virtual void configure(const WireCell::Configuration &config)
Accept a configuration.
virtual bool operator()(IFrame::pointer &out)
IFrameSource.
Definition: Main.h:22
Json::Value Configuration
Definition: Configuration.h:50