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.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. \ingroup LemmaCore
  17. \brief Abstract class for filtering.
  18. \details Derived classes include fourier domain and time domain filters.
  19. */
  20. // ===================================================================
  21. class Filter : public LemmaObject {
  22. friend std::ostream &operator<<(std::ostream &stream, const Filter& ob);
  23. public:
  24. // ==================== LIFECYCLE =======================
  25. /**
  26. * Uses YAML to serialize this object.
  27. * @return a YAML::Node
  28. */
  29. virtual YAML::Node Serialize() const;
  30. // ==================== OPERATORS =======================
  31. // ==================== OPERATIONS =======================
  32. // ==================== ACCESS =======================
  33. // ==================== INQUIRY =======================
  34. /** Returns the name of the underlying class, similiar to Python's type */
  35. virtual std::string GetName() const;
  36. protected:
  37. // ==================== LIFECYCLE =======================
  38. /// Default protected constructor.
  39. Filter ( const ctor_key& );
  40. /// Default protected constructor.
  41. Filter ( const YAML::Node& node, const ctor_key& );
  42. /// Default protected constructor.
  43. virtual ~Filter ();
  44. // ==================== DATA MEMBERS =========================
  45. private:
  46. /** ASCII string representation of the class name */
  47. static constexpr auto CName = "Filter";
  48. }; // ----- end of class Filter -----
  49. } // ----- end of Lemma name -----
  50. /* vim: set tabstop=4 expandtab: */
  51. /* vim: set filetype=cpp: */