s11n::io::strtool::entity_translator Struct Reference

YAGNI! More...

#include <strtool.hpp>

List of all members.

Public Member Functions

 entity_translator (const entity_map &map, bool reverse)
 Sets the map and reverse options to be used from calls to operator().
void operator() (std::string &str) const
 Calls translate_entities( str, MAP, REVERSE ), where MAP and REVERSE are the flags set via the ctor.


Detailed Description

YAGNI!

A functor for translating entities in a set of strings. Designed for use with std::for_each().

Definition at line 284 of file strtool.hpp.


Constructor & Destructor Documentation

s11n::io::strtool::entity_translator::entity_translator ( const entity_map map,
bool  reverse 
) [inline]

Sets the map and reverse options to be used from calls to operator().

Definition at line 290 of file strtool.hpp.


Member Function Documentation

void s11n::io::strtool::entity_translator::operator() ( std::string &  str  )  const [inline]

Calls translate_entities( str, MAP, REVERSE ), where MAP and REVERSE are the flags set via the ctor.

Definition at line 300 of file strtool.hpp.

References s11n::io::strtool::translate_entities().


The documentation for this struct was generated from the following file:
Generated on Thu Feb 8 10:28:11 2007 for libs11n-1.2.5 by  doxygen 1.5.0