Lemma is an Electromagnetics API
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Filter.h 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /* This file is part of Lemma, a geophysical modelling and inversion API */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. /**
  6. @file
  7. @author Trevor Irons
  8. @date 07/20/2010
  9. @version $Id: filter.h 193 2014-11-10 23:51:41Z tirons $
  10. **/
  11. #include "LemmaObject.h"
  12. namespace Lemma {
  13. // ===================================================================
  14. // Class: Filter
  15. /**
  16. @class Filter
  17. \ingroup LemmaCore
  18. \brief Abstract class for filtering.
  19. \details Derived classes include fourier domain and time domain filters.
  20. */
  21. // ===================================================================
  22. class Filter : public LemmaObject {
  23. friend std::ostream &operator<<(std::ostream &stream, const Filter& ob);
  24. public:
  25. // ==================== LIFECYCLE =======================
  26. /**
  27. * Uses YAML to serialize this object.
  28. * @return a YAML::Node
  29. */
  30. virtual YAML::Node Serialize() const;
  31. // ==================== OPERATORS =======================
  32. // ==================== OPERATIONS =======================
  33. // ==================== ACCESS =======================
  34. // ==================== INQUIRY =======================
  35. /** Returns the name of the underlying class, similiar to Python's type */
  36. virtual inline std::string GetName() const {
  37. return this->CName;
  38. }
  39. protected:
  40. // ==================== LIFECYCLE =======================
  41. /// Default protected constructor.
  42. Filter ( );
  43. /// Default protected constructor.
  44. Filter ( const YAML::Node& node );
  45. /// Default protected constructor.
  46. virtual ~Filter ();
  47. // ==================== DATA MEMBERS =========================
  48. private:
  49. /** ASCII string representation of the class name */
  50. static constexpr auto CName = "Filter";
  51. }; // ----- end of class Filter -----
  52. } // ----- end of Lemma name -----
  53. /* vim: set tabstop=4 expandtab: */
  54. /* vim: set filetype=cpp: */