TagChecker Class Reference

Checks whether the input contains a given tag. Throws an std::runtime_error if the tag is not found. More...

#include <element_to_refine.h>

List of all members.

Public Member Functions

 TagChecker (const std::string &tag)
 Constructor.
const std::string & get_tag () const
 Returns tag.

Detailed Description

Checks whether the input contains a given tag. Throws an std::runtime_error if the tag is not found.

Suggested Use

The class works with std::istream. The following code shows checking for tag 'TAG' in the input file stream:

    std::ifstream fin("my_file.txt");
    fin >> TagChecker("TAG");

Constructor & Destructor Documentation

TagChecker::TagChecker ( const std::string &  tag  )  [inline, explicit]

Constructor.

Parameters:
[in] tag A tag.

Member Function Documentation

const std::string& TagChecker::get_tag (  )  const [inline]

Returns tag.

Returns:
A tag. Returned reference becomes invalid after the instance is released

The documentation for this class was generated from the following file:
Generated on Sat Jun 5 15:17:43 2010 for Hermes2D Library: Real Version by  doxygen 1.6.3