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.

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---\n"; // End of doc --- as a direct stream should encapulste thingy
  15. return stream;
  16. }
  17. // ==================== LIFECYCLE ===================================
  18. Grid::Grid( ) : LemmaObject( ) {
  19. }
  20. Grid::Grid( const YAML::Node& node ) : LemmaObject(node) {
  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. }