dune-grid  2.2.0
dim.hh
Go to the documentation of this file.
00001 #ifndef DUNE_DGF_DIMBLOCK_HH
00002 #define DUNE_DGF_DIMBLOCK_HH
00003 
00004 #include <iostream>
00005 
00006 #include <dune/grid/io/file/dgfparser/blocks/basic.hh>
00007 
00008 
00009 namespace Dune
00010 {    
00011 
00012   namespace dgf    
00013   {
00014     class DimBlock : public BasicBlock {
00015       int _dimworld;     // dimension of world
00016       int _dim;          // dimension of grid
00017      public:
00018       const static char* ID;
00019       // initialize block and get dimension of world
00020       DimBlock ( std :: istream &in );
00021       // get dimension of world found in block
00022       int dim() {
00023         return _dim;
00024       }
00025       int dimworld() {
00026         return _dimworld;
00027       }
00028       // some information 
00029       bool ok() {
00030         return true;
00031       }
00032     }; 
00033     
00034   } // end namespace dgf
00035 
00036 } // end namespace Dune
00037 
00038 #endif