Logo Search packages:      
Sourcecode: inkscape version File versions

bool buildtool::MakeBase::parsePatternSet ( Element *  elem,
MakeBase propRef,
std::vector< String > &  includes,
std::vector< String > &  excludes 
) [protected, inherited]

Parse a <patternset>

Parse a <patternset> entry

Definition at line 3970 of file buildtool.cpp.

References buildtool::MakeBase::getAttribute().

Referenced by buildtool::MakeBase::parseFileSet().

{
    std::vector<Element *> children  = elem->getChildren();
    for (unsigned int i=0 ; i<children.size() ; i++)
        {
        Element *child = children[i];
        String tagName = child->getName();
        if (tagName == "exclude")
            {
            String fname;
            if (!propRef.getAttribute(child, "name", fname))
                return false;
            //trace("EXCLUDE: %s", fname.c_str());
            excludes.push_back(fname);
            }
        else if (tagName == "include")
            {
            String fname;
            if (!propRef.getAttribute(child, "name", fname))
                return false;
            //trace("INCLUDE: %s", fname.c_str());
            includes.push_back(fname);
            }
        }

    return true;
}


Generated by  Doxygen 1.6.0   Back to index