Lemma is an Electromagnetics API
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

Filter.cpp 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 07/20/2010
  9. @version $Id: filter.cpp 193 2014-11-10 23:51:41Z tirons $
  10. **/
  11. #include "Filter.h"
  12. namespace Lemma {
  13. std::ostream &operator << (std::ostream &stream, const Filter &ob) {
  14. stream << ob.Serialize() << "\n---\n"; // End of doc --- as a direct stream should encapulste thingy
  15. return stream;
  16. }
  17. //--------------------------------------------------------------------------------------
  18. // Class: Filter
  19. // Method: Filter
  20. // Description: constructor (protected)
  21. //--------------------------------------------------------------------------------------
  22. Filter::Filter( ) : LemmaObject( ) { }
  23. //--------------------------------------------------------------------------------------
  24. // Class: Filter
  25. // Method: ~Filter
  26. // Description: destructor (protected)
  27. //--------------------------------------------------------------------------------------
  28. Filter::~Filter( ) { }
  29. //--------------------------------------------------------------------------------------
  30. // Class: Filter
  31. // Method: Filter
  32. // Description: DeSerializing constructor (protected)
  33. //--------------------------------------------------------------------------------------
  34. Filter::Filter ( const YAML::Node& node ) : LemmaObject(node) {
  35. }
  36. //--------------------------------------------------------------------------------------
  37. // Class: Filter
  38. // Method: Serialize
  39. //--------------------------------------------------------------------------------------
  40. YAML::Node Filter::Serialize ( ) const {
  41. YAML::Node node = LemmaObject::Serialize();;
  42. node.SetTag( GetName() );
  43. // FILL IN CLASS SPECIFICS HERE
  44. return node;
  45. } // ----- end of method Filter::Serialize -----
  46. //--------------------------------------------------------------------------------------
  47. // Class: Filter
  48. // Method: GetName
  49. // Description: Class identifier
  50. //--------------------------------------------------------------------------------------
  51. inline std::string Filter::GetName ( ) const {
  52. return CName;
  53. } // ----- end of method Filter::get_GetName -----
  54. } // ----- end of Lemma name -----