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.cpp 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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.cpp 193 2014-11-10 23:51:41Z tirons $
  10. **/
  11. #include "Instrument.h"
  12. namespace Lemma {
  13. std::ostream &operator << (std::ostream &stream, const Instrument &ob) {
  14. stream << ob.Serialize() << "\n---\n"; // End of doc --- as a direct stream should encapulste thingy
  15. return stream;
  16. }
  17. Instrument::Instrument( ) : LemmaObject() {
  18. }
  19. Instrument::Instrument( const YAML::Node& node ) : LemmaObject( node ) {
  20. // Fill in class specifics
  21. }
  22. Instrument::~Instrument() {
  23. }
  24. //--------------------------------------------------------------------------------------
  25. // Class: Instrument
  26. // Method: Serialize
  27. //--------------------------------------------------------------------------------------
  28. YAML::Node Instrument::Serialize ( ) const {
  29. YAML::Node node = LemmaObject::Serialize();;
  30. node.SetTag( GetName() );
  31. // Fill in class specifics
  32. return node;
  33. } // ----- end of method Instrument::Serialize -----
  34. } // ----- end of Lemma name -----