TECA
The Toolkit for Extreme Climate Analysis
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.h"
7 #include "teca_shared_object.h"
8 
9 TECA_SHARED_OBJECT_FORWARD_DECL(teca_dataset_capture)
10 
11 /** @brief
12  * An algorithm that takes a reference to dataset produced
13  * by the upstream algorithm it is connected to.
14  *
15  * @details
16  * The dataset is passed through so that this can be inserted
17  * anywhere giving one access to the intermediate data.
18  */
20 {
21 public:
22  TECA_ALGORITHM_STATIC_NEW(teca_dataset_capture)
23  TECA_ALGORITHM_DELETE_COPY_ASSIGN(teca_dataset_capture)
24  TECA_ALGORITHM_CLASS_NAME(teca_dataset_capture)
26 
27  // report/initialize to/from Boost program options
28  // objects.
29  TECA_GET_ALGORITHM_PROPERTIES_DESCRIPTION()
30  TECA_SET_ALGORITHM_PROPERTIES()
31 
32  // set/get the dataset from the last pipeline update
33  TECA_ALGORITHM_PROPERTY(const_p_teca_dataset, dataset)
34 
35 protected:
37 
38 private:
39  const_p_teca_dataset execute(unsigned int port,
40  const std::vector<const_p_teca_dataset> &input_data,
41  const teca_metadata &request) override;
42 
43 private:
44  const_p_teca_dataset dataset;
45 };
46 
47 #endif
teca_metadata
A generic container for meta data in the form of name=value pairs.
Definition: teca_metadata.h:18
teca_dataset_capture
An algorithm that takes a reference to dataset produced by the upstream algorithm it is connected to.
Definition: teca_dataset_capture.h:19
teca_shared_object.h
teca_algorithm
The interface to TECA pipeline architecture.
Definition: teca_algorithm.h:237