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.

Instrument.h 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 02/05/2010
  9. @version $Id: instrument.h 193 2014-11-10 23:51:41Z tirons $
  10. **/
  11. #ifndef __INSTRUMENT_H
  12. #define __INSTRUMENT_H
  13. #include "LemmaObject.h"
  14. namespace Lemma {
  15. // =======================================================================
  16. // Class: Instrument
  17. /// \brief Abstract class for instruments
  18. /// \details
  19. // =======================================================================
  20. class Instrument : public LemmaObject {
  21. friend std::ostream &operator<<(std::ostream &stream,
  22. const Instrument &ob);
  23. public:
  24. // ==================== LIFECYCLE ===========================
  25. // ==================== OPERATORS ===========================
  26. // ==================== OPERATIONS ===========================
  27. //virtual void ForwardModelOnOctreeMesh()=0;
  28. // ==================== ACCESS ===========================
  29. // ==================== INQUIRY ===========================
  30. /** Returns the name of the underlying class, similiar to Python's type */
  31. virtual inline std::string GetName() const {
  32. return this->CName;
  33. }
  34. // ==================== DATA MEMBERS ===========================
  35. protected:
  36. // ==================== LIFECYCLE ===========================
  37. /// Default protected constructor.
  38. Instrument ( );
  39. /// Default protected constructor.
  40. ~Instrument ();
  41. private:
  42. /** ASCII string representation of the class name */
  43. static constexpr auto CName = "Instrument";
  44. }; // ----- end of class Instrument -----
  45. } // ----- end of Lemma name -----
  46. #endif // __INSTRUMENT_H