Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

cppdom::HasAttributeNamePredicate Class Reference

#include <predicates.h>

List of all members.

Public Methods

 HasAttributeNamePredicate (const std::string &attrName)
 set the attribute name to match. More...

void setName (const std::string &attrName)
 set the attribute name to match. More...

bool operator() (const XMLNodePtr &node)

Private Attributes

std::string mName


Constructor & Destructor Documentation

cppdom::HasAttributeNamePredicate::HasAttributeNamePredicate const std::string &    attrName [inline]
 

set the attribute name to match.

Definition at line 51 of file predicates.h.

References mName.

00052          : mName(attrName)
00053       {}


Member Function Documentation

bool cppdom::HasAttributeNamePredicate::operator() const XMLNodePtr   node [inline]
 

Definition at line 58 of file predicates.h.

References mName.

00059       {
00060          return node->hasAttribute(mName);
00061       }

void cppdom::HasAttributeNamePredicate::setName const std::string &    attrName [inline]
 

set the attribute name to match.

Definition at line 56 of file predicates.h.

References mName.

00056 { mName = attrName; }


Member Data Documentation

std::string cppdom::HasAttributeNamePredicate::mName [private]
 

Definition at line 64 of file predicates.h.

Referenced by HasAttributeNamePredicate(), operator()(), and setName().


The documentation for this class was generated from the following file:
Generated on Thu Jan 2 21:29:20 2003 for cppdom by doxygen1.2.15