Main Lemma Repository
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

Grid.cpp 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 10/25/2009
  9. @version $Id: grid.cpp 193 2014-11-10 23:51:41Z tirons $
  10. **/
  11. #include "Grid.h"
  12. namespace Lemma {
  13. std::ostream &operator << (std::ostream &stream, const Grid &ob) {
  14. stream << ob.Serialize() << "\n";
  15. return stream;
  16. }
  17. // ==================== LIFECYCLE ===================================
  18. Grid::Grid( const ctor_key& key ) : LemmaObject( key ) {
  19. }
  20. Grid::Grid( const YAML::Node& node, const ctor_key& key ) : LemmaObject(node, key) {
  21. }
  22. Grid::~Grid ( ) {
  23. }
  24. YAML::Node Grid::Serialize() const {
  25. YAML::Node node = LemmaObject::Serialize();
  26. node.SetTag( this->GetName() );
  27. return node;
  28. }
  29. //--------------------------------------------------------------------------------------
  30. // Class: Grid
  31. // Method: GetName
  32. // Description: Class identifier
  33. //--------------------------------------------------------------------------------------
  34. inline std::string Grid::GetName ( ) const {
  35. return CName;
  36. } // ----- end of method Grid::get_GetName -----
  37. }