Lemma is an Electromagnetics API
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

modelreadertem1d.cpp 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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 M. Andy Kass
  8. @date 02/19/2011
  9. @version $Id: modelreadertem1d.cpp 87 2013-09-05 22:44:05Z tirons $
  10. **/
  11. #include "modelreadertem1d.h"
  12. namespace Lemma {
  13. std::ostream &operator<<(std::ostream &stream,
  14. const ModelReaderTem1D &ob) {
  15. stream << *(ModelReaderTem1D*)(&ob);
  16. return stream;
  17. }
  18. ModelReaderTem1D::ModelReaderTem1D(const std::string &name) :
  19. ModelReader(name) {
  20. }
  21. ModelReaderTem1D::~ModelReaderTem1D() {
  22. if (NumberOfReferences != 0) {
  23. throw DeleteObjectWithReferences(this);
  24. }
  25. }
  26. ModelReaderTem1D* ModelReaderTem1D::New() {
  27. ModelReaderTem1D* Obj = new ModelReaderTem1D("ModelReaderTem1D");
  28. Obj->AttachTo(Obj);
  29. return Obj;
  30. }
  31. void ModelReaderTem1D::Delete() {
  32. this->DetachFrom(this);
  33. }
  34. void ModelReaderTem1D::Release() {
  35. delete this;
  36. }
  37. //void ModelReaderTem1D::ReadParameters(/* Pass file name */) {
  38. //}
  39. //void ModelReaderTem1D::ReadModel() {
  40. //}
  41. //void ModelReaderTem1D::ReadInstrument() {
  42. //}
  43. //void ModelReaderTem1D::ReadWaveform() {
  44. //}
  45. //Datamembers:
  46. // modelfile, instrumentfile, waveformfile
  47. } // namespace Lemma