TECA
teca_dataset_capture.h
1 #ifndef teca_dataset_capture_h
2 #define teca_dataset_capture_h
3 
4 #include "teca_algorithm.h"
5 #include "teca_metadata.h"
6 #include "teca_dataset_fwd.h"
7 #include "teca_shared_object.h"
8 
9 TECA_SHARED_OBJECT_FORWARD_DECL(teca_dataset_capture)
10 
11 
18 {
19 public:
20  TECA_ALGORITHM_STATIC_NEW(teca_dataset_capture)
21  TECA_ALGORITHM_DELETE_COPY_ASSIGN(teca_dataset_capture)
22  TECA_ALGORITHM_CLASS_NAME(teca_dataset_capture)
24 
25  // report/initialize to/from Boost program options
26  // objects.
27  TECA_GET_ALGORITHM_PROPERTIES_DESCRIPTION()
28  TECA_SET_ALGORITHM_PROPERTIES()
29 
30  // set/get the dataset from the last pipeline update
31  TECA_ALGORITHM_PROPERTY(const_p_teca_dataset, dataset)
32 
33 protected:
35 
36 private:
37  const_p_teca_dataset execute(unsigned int port,
38  const std::vector<const_p_teca_dataset> &input_data,
39  const teca_metadata &request) override;
40 
41 private:
42  const_p_teca_dataset dataset;
43 };
44 
45 #endif
teca_metadata
Definition: teca_metadata.h:17
teca_dataset_capture
Definition: teca_dataset_capture.h:18
teca_algorithm
Definition: teca_algorithm.h:25