cf.h 573 B

1234567891011121314151617181920212223242526272829
  1. #ifndef LPJGUESS_GUESSNC_CF_H
  2. #define LPJGUESS_GUESSNC_CF_H
  3. #ifdef HAVE_NETCDF
  4. #include "guessnc.h"
  5. namespace GuessNC {
  6. namespace CF {
  7. /// Thrown by code in the CF namespace
  8. /** Typically thrown when encountering a file which doesn't
  9. * conform to CF or our limited understanding of CF.
  10. */
  11. class CFError : public GuessNCError {
  12. public:
  13. CFError(const std::string& what) : GuessNCError(what) {}
  14. CFError(const std::string& variable, const std::string& what) : GuessNCError(variable + " : " + what) {}
  15. };
  16. }
  17. }
  18. #endif // HAVE_NETCDF
  19. #endif // LPJGUESS_GUESSNC_CF_H