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.

modelreaderfem1d.cpp 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 01/23/2013
  9. @version $Id$
  10. **/
  11. #include "modelreaderfem1d.h"
  12. namespace Lemma {
  13. std::ostream &operator<<(std::ostream &stream,
  14. const ModelReaderFem1D &ob) {
  15. stream << *(ModelReaderFem1D*)(&ob);
  16. return stream;
  17. }
  18. ModelReaderFem1D::ModelReaderFem1D(const std::string &name) :
  19. ModelReader(name) {
  20. }
  21. ModelReaderFem1D::~ModelReaderFem1D() {
  22. if (NumberOfReferences != 0) {
  23. throw DeleteObjectWithReferences(this);
  24. }
  25. }
  26. ModelReaderFem1D* ModelReaderFem1D::New() {
  27. ModelReaderFem1D* Obj = new ModelReaderFem1D("ModelReaderFem1D");
  28. Obj->AttachTo(Obj);
  29. return Obj;
  30. }
  31. void ModelReaderFem1D::Delete() {
  32. this->DetachFrom(this);
  33. }
  34. void ModelReaderFem1D::Release() {
  35. delete this;
  36. }
  37. } // end of namespace Lemma