#include <DataProvider.hpp>
 | 
| using  | data_type = DataType | 
|   | This class provides a generic interface to data services.  
  | 
|   | 
| using  | selection_type = SelectionType | 
|   | 
◆ data_type
template<class DataType , class SelectionType > 
      
 
This class provides a generic interface to data services. 
 
 
◆ selection_type
template<class DataType , class SelectionType > 
      
 
 
◆ ~DataProvider()
template<class DataType , class SelectionType > 
 
 
◆ finalize()
template<class DataType , class SelectionType > 
 
Release any resources that should not be held as the run is shutting down. 
In particular, this should be called before MPI_Finalize() 
Reimplemented in data_access::WrappedDataProvider.
 
 
◆ get_available_variable_names()
template<class DataType , class SelectionType > 
  
  
      
        
          | virtual boost::span< const std::string > data_access::DataProvider< DataType, SelectionType >::get_available_variable_names  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ get_data_start_time()
template<class DataType , class SelectionType > 
 
 
◆ get_data_stop_time()
template<class DataType , class SelectionType > 
 
 
◆ get_ts_index_for_time()
template<class DataType , class SelectionType > 
  
  
      
        
          | virtual size_t data_access::DataProvider< DataType, SelectionType >::get_ts_index_for_time  | 
          ( | 
          const time_t & |           epoch_time | ) | 
           const | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ get_value()
template<class DataType , class SelectionType > 
 
Get the value of a forcing property for an arbitrary time period, converting units if needed. 
An std::out_of_range exception should be thrown if the data for the time period is not available.
- Parameters
 - 
  
    | selector | Data required to establish what subset of the stored data should be accessed  | 
    | m | How data is to be resampled if there is a mismatch in data alignment or repeat rate  | 
  
   
- Returns
 - The value of the forcing property for the described time period, with units converted if needed. 
 
- Exceptions
 - 
  
    | std::out_of_range | If data for the time period is not available.  | 
  
   
Referenced by data_access::WrappedDataProvider::get_value(), and realization::Bmi_Module_Formulation::set_model_inputs_prior_to_update().
 
 
◆ get_values()
template<class DataType , class SelectionType > 
 
Get the values of a forcing property for an arbitrary time period, converting units if needed. 
An std::out_of_range exception should be thrown if the data for the time period is not available.
If a provider doesn't implement this function, then by default, get_values will be a simple proxy to get_value with the result wrapped in a std::vector<double>
- Parameters
 - 
  
    | output_name | The name of the forcing property of interest.  | 
    | init_time_epoch | The epoch time (in seconds) of the start of the time period.  | 
    | duration_seconds | The length of the time period, in seconds.  | 
    | output_units | The expected units of the desired output value.  | 
  
   
- Returns
 - std::vector<double> The vector of values of the forcing property for the described time period, with units converted if needed. 
 
- Exceptions
 - 
  
    | std::out_of_range | If data for the time period is not available.  | 
  
   
Referenced by data_access::WrappedDataProvider::get_values(), and realization::Bmi_Module_Formulation::set_model_inputs_prior_to_update().
 
 
◆ is_property_sum_over_time_step()
template<class DataType , class SelectionType > 
  
  
      
        
          | virtual bool data_access::DataProvider< DataType, SelectionType >::is_property_sum_over_time_step  | 
          ( | 
          const std::string & |           name | ) | 
           const | 
         
       
   | 
  
inlinevirtual   | 
  
 
 
◆ record_duration()
template<class DataType , class SelectionType > 
 
 
The documentation for this class was generated from the following file: