12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
-
-
-
-
-
-
- #ifndef GRIDREADER_INC
- #define GRIDREADER_INC
-
- #include "LemmaObject.h"
- #include "Grid.h"
-
- namespace Lemma {
-
-
-
- class GridReader : public LemmaObject {
-
- friend std::ostream &operator << (std::ostream &stream, const GridReader &ob) {
- stream << ob.Serialize() << "\n---\n";
- return stream;
- }
-
- public:
-
-
-
-
-
-
-
- virtual void ReadASCIIGridFile( const std::string& name )=0;
-
- virtual std::shared_ptr< Grid > GetGrid( )=0;
-
-
-
-
-
-
- virtual inline std::string GetName() const {
- return this->CName;
- }
-
- protected:
-
-
-
-
- GridReader ( ) : LemmaObject( ) {
- }
-
-
- GridReader ( const YAML::Node& node ) : LemmaObject( node ) {
- }
-
-
- ~GridReader () {
- }
-
- private:
-
-
- static constexpr auto CName = "GridReader";
-
-
-
- };
-
-
- }
-
- #endif
|