5#ifndef DUNE_DGF_BASICBLOCK_HH
6#define DUNE_DGF_BASICBLOCK_HH
14#include <dune/common/stdstreams.hh>
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 );
62 template<
class ENTRY >
66 return static_cast< bool >(
line );
69 bool gettokenparam ( std :: string token, std :: string &entry );
74 BasicBlock ( std::istream &in,
const char*
id );
97 const std::string &
id ()
const
105 return os <<
"block " << b.identifier <<
" (line " << b.pos <<
")";
Include standard header files.
Definition: agrid.hh:60
void makeupcase(std ::string &s)
Definition: basic.hh:24
void reset()
Definition: basic.hh:51
bool getnextline()
Definition: basic.cc:94
BasicBlock(std::istream &in, const char *id)
Definition: basic.cc:18
bool findtoken(std ::string token)
Definition: basic.cc:123
bool getnextentry(ENTRY &entry)
Definition: basic.hh:63
const std::string & id() const
Definition: basic.hh:97
int & noflines()
Definition: basic.hh:87
friend std::ostream & operator<<(std ::ostream &os, const BasicBlock &b)
Definition: basic.hh:103
bool isempty()
Definition: basic.hh:82
bool isactive()
Definition: basic.hh:77
int linenumber()
Definition: basic.hh:92
std::stringstream line
Definition: basic.hh:47
bool gettokenparam(std ::string token, std ::string &entry)
Definition: basic.cc:104