Skip to content

Commit

Permalink
Delete defunct {CSV,BMI,NetCDF}DataSelector classes
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilMiller committed Apr 30, 2024
1 parent a6c8a4f commit ceb7c01
Showing 1 changed file with 0 additions and 75 deletions.
75 changes: 0 additions & 75 deletions include/forcing/DataProviderSelectors.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@

#include <string>

/**
* @brief This class is intended to be the virtual base for all data selectors used with the
* DataProvider API
*
*/

class CatchmentAggrDataSelector
{
public:
Expand Down Expand Up @@ -121,73 +115,4 @@ class CatchmentAggrDataSelector
std::string id_str; //< the catchment to access data for
};


#if !defined(__APPLE__) && !defined(__llvm__) && defined(__GNUC__) && __GNUC__ < 8
// Enable a workaround for old GCC versions (but not Clang or Apple's fake-GCC that's actually Clang)
#define NGEN_SELECTOR_CAST
#endif

/**
* @brief This a data selector intended for use with CSV data
*
*/

class CSVDataSelector : public CatchmentAggrDataSelector
{
public:

CSVDataSelector(std::string var, time_t start, long dur, std::string units) :
CatchmentAggrDataSelector(std::string(), var, start, dur, units)
{}

#if defined(NGEN_SELECTOR_CAST)
operator const CatchmentAggrDataSelector&() const { return *this; }
#endif

private:
};

class BMIDataSelector : public CatchmentAggrDataSelector
{
public:

BMIDataSelector(std::string var, time_t start, long dur, std::string units) :
CatchmentAggrDataSelector(std::string(), var, start, dur, units)
{}

#if defined(NGEN_SELECTOR_CAST)
operator const CatchmentAggrDataSelector&() const { return *this; }
#endif

private:
};

#ifdef NETCDF_ACTIVE
/**
* @brief This is the data selector intended for use with netcdf providers
*
*/

class NetCDFDataSelector : public CatchmentAggrDataSelector
{
public:

NetCDFDataSelector(std::string id) : CatchmentAggrDataSelector(id,std::string(),0,0,std::string()) {}
NetCDFDataSelector(const char* id) : CatchmentAggrDataSelector(std::string(id),std::string(),0,0,std::string()) {}
NetCDFDataSelector(std::string id, std::string var, time_t start, long dur, std::string units) :
CatchmentAggrDataSelector(id, var, start, dur, units)
{

}

#if defined(NGEN_SELECTOR_CAST)
operator const CatchmentAggrDataSelector&() const { return *this; }
#endif

private:
};
#endif // NETCDF_ACTIVE

#undef NGEN_SELECTOR_CAST

#endif

0 comments on commit ceb7c01

Please sign in to comment.