Main Lemma Repository
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

Instrument.h 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. /// \ingroup LemmaCore
  18. /// \brief Abstract class for instruments
  19. /// \details
  20. // =======================================================================
  21. class Instrument : public LemmaObject {
  22. friend std::ostream &operator<<(std::ostream &stream,
  23. const Instrument &ob);
  24. public:
  25. // ==================== LIFECYCLE ===========================
  26. /**
  27. * Uses YAML to serialize this object.
  28. * @return a YAML::Node
  29. */
  30. YAML::Node Serialize() const;
  31. // ==================== OPERATORS ===========================
  32. // ==================== OPERATIONS ===========================
  33. //virtual void ForwardModelOnOctreeMesh()=0;
  34. // ==================== ACCESS ===========================
  35. // ==================== INQUIRY ===========================
  36. /** Returns the name of the underlying class, similiar to Python's type */
  37. virtual inline std::string GetName() const {
  38. return this->CName;
  39. }
  40. // ==================== DATA MEMBERS ===========================
  41. protected:
  42. // ==================== LIFECYCLE ===========================
  43. /// Default protected constructor.
  44. Instrument ( const YAML::Node& node );
  45. /// Default protected constructor.
  46. Instrument ( );
  47. /// Default protected constructor.
  48. ~Instrument ();
  49. private:
  50. /** ASCII string representation of the class name */
  51. static constexpr auto CName = "Instrument";
  52. }; // ----- end of class Instrument -----
  53. } // ----- end of Lemma name -----
  54. #endif // __INSTRUMENT_H