#include <xercesutils.h>
Public Types | |
| typedef std::map< std::string, std::string > | ResultMap |
Public Member Functions | |
| AttributeSearch () | |
| ~AttributeSearch () | |
| ResultMap | operator() (const XERCES_CPP_NAMESPACE_QUALIFIER Attributes &attrs) |
| Process the Attributes and make an easier structure to use. | |
A helper used when searching with a known string. e.g. "mystring", "Type", "Name", or "Value". For example:
void myHandler::startElement(... Attributes& attrs) { AttributeSearch attSearch; AttributeSearch::ResultMap results = attrSearch(attrs) AttributeSearch::ResultMap::iterator itr = results.find("Name"); if (itr != results.end()) { std::cout << "name is: " << itr->second << std::endl; } }
| typedef std::map<std::string,std::string> dtUtil::AttributeSearch::ResultMap |
| AttributeSearch::AttributeSearch | ( | ) |
| AttributeSearch::~AttributeSearch | ( | ) |
| AttributeSearch::ResultMap AttributeSearch::operator() | ( | const XERCES_CPP_NAMESPACE_QUALIFIER Attributes & | attrs | ) |
Process the Attributes and make an easier structure to use.