3#ifndef DUNE_DGF_BASICBLOCK_HH
4#define DUNE_DGF_BASICBLOCK_HH
13#include <dune/grid/io/file/dgfparser/entitykey.hh>
14#include <dune/grid/io/file/dgfparser/dgfexception.hh>
22 inline void makeupcase( std :: string &s )
24 for (
size_t i=0; i<s.size(); i++)
25 s[i]=std::toupper(s[i]);
33 std::string identifier;
35 std::stringstream block;
39 void getblock ( std::istream &in );
45 std::stringstream line;
60 template<
class ENTRY >
61 bool getnextentry( ENTRY &entry )
64 return static_cast< bool >( line );
67 bool gettokenparam ( std :: string token, std :: string &entry );
68 bool findtoken( std :: string token );
72 BasicBlock ( std::istream &in,
const char*
id );
95 const std::string & id ()
const
101 friend std :: ostream &
operator<< ( std :: ostream &os,
const BasicBlock &b )
103 return os <<
"block " << b.identifier <<
" (line " << b.pos <<
")";
std::ostream & operator<<(std::ostream &s, const array< T, N > &e)
Output operator for array.
Definition: array.hh:26
Dune namespace.
Definition: alignment.hh:10
Standard Dune debug streams.