5#ifndef DUNE_DGF_BASICBLOCK_HH
6#define DUNE_DGF_BASICBLOCK_HH
15#include <dune/grid/io/file/dgfparser/entitykey.hh>
16#include <dune/grid/io/file/dgfparser/dgfexception.hh>
24 inline void makeupcase( std :: string &s )
26 for (
size_t i=0; i<s.size(); i++)
27 s[i]=std::toupper(s[i]);
35 std::string identifier;
37 std::stringstream block_;
41 void getblock ( std::istream &in );
47 std::stringstream
line;
62 template<
class ENTRY >
63 bool getnextentry( ENTRY &entry )
66 return static_cast< bool >(
line );
69 bool gettokenparam ( std :: string token, std :: string &entry );
70 bool findtoken( std :: string token );
74 BasicBlock ( std::istream &in,
const char*
id );
97 const std::string & id ()
const
103 friend std :: ostream &operator<< ( std :: ostream &os,
const BasicBlock &b )
105 return os <<
"block " << b.identifier <<
" (line " << b.pos <<
")";
constexpr GeometryType line
GeometryType representing a line.
Definition: type.hh:513
Dune namespace.
Definition: alignedallocator.hh:13
Standard Dune debug streams.