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.

datareaderfem.cpp 1001B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 01/03/2013
  9. @version $Id$
  10. **/
  11. #include "datareaderfem.h"
  12. namespace Lemma {
  13. DataReaderFem::DataReaderFem(const std::string &name) : DataReader(name) {
  14. }
  15. DataReaderFem::~DataReaderFem() {
  16. if (NumberOfReferences != 0) {
  17. throw DeleteObjectWithReferences(this);
  18. }
  19. }
  20. DataReaderFem* DataReaderFem::New() {
  21. DataReaderFem* Obj = new DataReaderFem("DataReaderFem");
  22. Obj->AttachTo(Obj);
  23. return Obj;
  24. }
  25. void DataReaderFem::Delete() {
  26. this->DetachFrom(this);
  27. }
  28. void DataReaderFem::Release() {
  29. delete this;
  30. }
  31. Data* DataReaderFem::GetData() {
  32. return 0;
  33. // I fucking hate virtual functions and they should die
  34. }
  35. } // end of namespace Lemma