PetaVision  Alpha
ColProbe.hpp
1 /*
2  * ColProbe.hpp
3  *
4  * Created on: Nov 25, 2010
5  * Author: pschultz
6  */
7 
8 #ifndef COLPROBE_HPP_
9 #define COLPROBE_HPP_
10 
11 #include "BaseProbe.hpp"
12 #include <string.h>
13 
14 namespace PV {
15 
16 class HyPerCol;
17 
38 class ColProbe : public BaseProbe {
39  public:
43  ColProbe(const char *name, HyPerCol *hc);
44 
48  virtual ~ColProbe();
49 
50  virtual Response::Status respond(std::shared_ptr<BaseMessage const> message) override;
51 
56  virtual Response::Status
57  communicateInitInfo(std::shared_ptr<CommunicateInitInfoMessage const> message) override;
58 
65  virtual Response::Status outputState(double timed) override { return Response::SUCCESS; }
66 
67  protected:
71  ColProbe();
72 
78  int initialize(const char *name, HyPerCol *hc);
79 
94  virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override;
95 
101  virtual void ioParam_targetName(enum ParamsIOFlag ioFlag) override;
102 
103  Response::Status
104  respondColProbeWriteParams(std::shared_ptr<ColProbeWriteParamsMessage const>(message));
105  Response::Status
106  respondColProbeOutputState(std::shared_ptr<ColProbeOutputStateMessage const>(message));
107 
111  virtual void initOutputStreams(const char *filename, Checkpointer *checkpointer) override;
112 
118  virtual void outputHeader() {}
119 
120  private:
127  int initialize_base();
128 }; // end class ColProbe
129 
130 } // end namespace PV
131 
132 #endif /* COLPROBE_HPP_ */
virtual ~ColProbe()
Definition: ColProbe.cpp:24
virtual void ioParam_targetName(enum ParamsIOFlag ioFlag) override
targetName: ColProbe sets targetName to the empty string, since the only possible target is the paren...
Definition: ColProbe.cpp:41
virtual Response::Status outputState(double timed) override
Definition: ColProbe.hpp:65
int initialize(const char *name, HyPerCol *hc)
Definition: ColProbe.cpp:31
int initialize_base()
Definition: ColProbe.cpp:26
virtual Response::Status communicateInitInfo(std::shared_ptr< CommunicateInitInfoMessage const > message) override
Definition: ColProbe.cpp:82
virtual void outputHeader()
Definition: ColProbe.hpp:118
virtual void initOutputStreams(const char *filename, Checkpointer *checkpointer) override
Definition: ColProbe.cpp:47
virtual int ioParamsFillGroup(enum ParamsIOFlag ioFlag) override
Definition: ColProbe.cpp:36