Main Lemma Repository
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.

DataReader.h 1.9KB

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 Trevor Irons
  8. @date 03/01/2010
  9. @version $Id: datareader.h 193 2014-11-10 23:51:41Z tirons $
  10. **/
  11. #ifndef DATAREADER_H_INC
  12. #define DATAREADER_H_INC
  13. #include "LemmaObject.h"
  14. #include "Data.h"
  15. namespace Lemma {
  16. // ===================================================================
  17. // Class: DataReader
  18. /// \brief Abstract class whose derived members read data files and
  19. /// converts them to Data Classes
  20. /// \details
  21. // ===================================================================
  22. class DataReader : public LemmaObject {
  23. friend std::ostream &operator<<(std::ostream &stream,
  24. const DataReader &ob);
  25. public:
  26. // ==================== LIFECYCLE =======================
  27. // ==================== OPERATORS =======================
  28. // ==================== OPERATIONS =======================
  29. // ==================== ACCESS =======================
  30. virtual Data* GetData()=0;
  31. // ==================== INQUIRY =======================
  32. protected:
  33. // ==================== LIFECYCLE =======================
  34. /// Default protected constructor.
  35. DataReader (const std::string &name);
  36. /// Default protected constructor.
  37. ~DataReader ();
  38. // ==================== DATA MEMBERS =========================
  39. private:
  40. }; // ----- end of class DataReader -----
  41. } // ----- end of Lemma name -----
  42. #endif // ----- #ifndef DATAREADER_H_INC -----
  43. /* vim: set tabstop=4 expandtab: */
  44. /* vim: set filetype=cpp: */