Scippy

    SCIP

    Solving Constraint Integer Programs

    xml.h File Reference

    Detailed Description

    declarations for XML parsing

    Author
    Thorsten Koch
    Marc Pfetsch

    Definition in file xml.h.

    Go to the source code of this file.

    Typedefs

    typedef struct XML_ATTR_struct XML_ATTR
     
    typedef struct XML_NODE_struct XML_NODE
     

    Functions

    XML_NODESCIPxmlProcess (const char *filename)
     
    XML_NODESCIPxmlNewNode (const char *name, int lineno)
     
    XML_ATTRSCIPxmlNewAttr (const char *name, const char *value)
     
    void SCIPxmlAddAttr (XML_NODE *n, XML_ATTR *a)
     
    void SCIPxmlAppendChild (XML_NODE *parent, XML_NODE *child)
     
    void SCIPxmlFreeNode (XML_NODE *node)
     
    void SCIPxmlShowNode (const XML_NODE *root)
     
    const char * SCIPxmlGetAttrval (const XML_NODE *node, const char *name)
     
    const XML_NODESCIPxmlFirstNode (const XML_NODE *node, const char *name)
     
    const XML_NODESCIPxmlNextNode (const XML_NODE *node, const char *name)
     
    const XML_NODESCIPxmlFindNode (const XML_NODE *node, const char *name)
     
    const XML_NODESCIPxmlFindNodeMaxdepth (const XML_NODE *node, const char *name, int depth, int maxdepth)
     
    const XML_NODESCIPxmlNextSibl (const XML_NODE *node)
     
    const XML_NODESCIPxmlPrevSibl (const XML_NODE *node)
     
    const XML_NODESCIPxmlFirstChild (const XML_NODE *node)
     
    const XML_NODESCIPxmlLastChild (const XML_NODE *node)
     
    const char * SCIPxmlGetName (const XML_NODE *node)
     
    int SCIPxmlGetLine (const XML_NODE *node)
     
    const char * SCIPxmlGetData (const XML_NODE *node)
     
    const char * SCIPxmlFindPcdata (const XML_NODE *node, const char *name)
     

    Typedef Documentation

    ◆ XML_ATTR

    typedef struct XML_ATTR_struct XML_ATTR

    Definition at line 41 of file xml.h.

    ◆ XML_NODE

    typedef struct XML_NODE_struct XML_NODE

    Definition at line 50 of file xml.h.

    Function Documentation

    ◆ SCIPxmlProcess()

    ◆ SCIPxmlNewNode()

    XML_NODE * SCIPxmlNewNode ( const char *  name,
    int  lineno 
    )

    create new node

    Definition at line 1172 of file xmlparse.c.

    References BMSallocMemory, BMSclearMemory, BMSduplicateMemoryArray, and NULL.

    Referenced by handleDecl(), handleStarttag(), procPcdata(), and SCIPxmlProcess().

    ◆ SCIPxmlNewAttr()

    XML_ATTR * SCIPxmlNewAttr ( const char *  name,
    const char *  value 
    )

    create new attribute

    Definition at line 1191 of file xmlparse.c.

    References a, BMSallocMemory, BMSclearMemory, BMSduplicateMemoryArray, SCIP_Var::name, and NULL.

    Referenced by procInTag(), and SCIPxmlProcess().

    ◆ SCIPxmlAddAttr()

    void SCIPxmlAddAttr ( XML_NODE n,
    XML_ATTR a 
    )

    add attribute

    Definition at line 1211 of file xmlparse.c.

    References a, and NULL.

    Referenced by procInTag(), and SCIPxmlProcess().

    ◆ SCIPxmlAppendChild()

    void SCIPxmlAppendChild ( XML_NODE parent,
    XML_NODE child 
    )

    append child node

    Definition at line 1224 of file xmlparse.c.

    References NULL.

    Referenced by handleDecl(), handleStarttag(), and procPcdata().

    ◆ SCIPxmlFreeNode()

    void SCIPxmlFreeNode ( XML_NODE node)

    ◆ SCIPxmlShowNode()

    void SCIPxmlShowNode ( const XML_NODE root)

    output node

    Definition at line 1305 of file xmlparse.c.

    References a, infoMessage, SCIP_Var::name, NULL, and SCIPxmlShowNode().

    Referenced by SCIP_DECL_READERREAD(), and SCIPxmlShowNode().

    ◆ SCIPxmlGetAttrval()

    const char * SCIPxmlGetAttrval ( const XML_NODE node,
    const char *  name 
    )

    ◆ SCIPxmlFirstNode()

    const XML_NODE * SCIPxmlFirstNode ( const XML_NODE node,
    const char *  name 
    )

    return first node

    Definition at line 1358 of file xmlparse.c.

    References NULL.

    Referenced by SCIPxmlNextNode().

    ◆ SCIPxmlNextNode()

    const XML_NODE * SCIPxmlNextNode ( const XML_NODE node,
    const char *  name 
    )

    return next node

    Definition at line 1378 of file xmlparse.c.

    References NULL, and SCIPxmlFirstNode().

    ◆ SCIPxmlFindNode()

    const XML_NODE * SCIPxmlFindNode ( const XML_NODE node,
    const char *  name 
    )

    find node

    Definition at line 1390 of file xmlparse.c.

    References NULL, r, and SCIPxmlFindNode().

    Referenced by SCIPxmlFindNode(), and SCIPxmlFindPcdata().

    ◆ SCIPxmlFindNodeMaxdepth()

    const XML_NODE * SCIPxmlFindNodeMaxdepth ( const XML_NODE node,
    const char *  name,
    int  depth,
    int  maxdepth 
    )

    find node with bound on the depth

    Parameters
    nodecurrent node - use start node to begin
    namename of tag to search for
    depthcurrent depth - start with 0 for root
    maxdepthmaximal depth

    Definition at line 1415 of file xmlparse.c.

    References NULL, r, and SCIPxmlFindNodeMaxdepth().

    Referenced by readConstraints(), readLinearCoefs(), readNConstraints(), readNonlinearExprs(), readObjective(), readQuadraticCoefs(), readSOScons(), readVariables(), readXmlSolFile(), SCIP_DECL_READERREAD(), and SCIPxmlFindNodeMaxdepth().

    ◆ SCIPxmlNextSibl()

    const XML_NODE * SCIPxmlNextSibl ( const XML_NODE node)

    ◆ SCIPxmlPrevSibl()

    const XML_NODE * SCIPxmlPrevSibl ( const XML_NODE node)

    return previous sibling

    Definition at line 1455 of file xmlparse.c.

    References NULL.

    ◆ SCIPxmlFirstChild()

    const XML_NODE * SCIPxmlFirstChild ( const XML_NODE node)

    ◆ SCIPxmlLastChild()

    const XML_NODE * SCIPxmlLastChild ( const XML_NODE node)

    return last child

    Definition at line 1475 of file xmlparse.c.

    References NULL.

    ◆ SCIPxmlGetName()

    const char * SCIPxmlGetName ( const XML_NODE node)

    return name of node

    Definition at line 1485 of file xmlparse.c.

    References NULL.

    Referenced by readExpression(), readLinearCoefs(), readNonlinearExprs(), readQuadraticCoefs(), and readSOScons().

    ◆ SCIPxmlGetLine()

    int SCIPxmlGetLine ( const XML_NODE node)

    get line number

    Definition at line 1495 of file xmlparse.c.

    References NULL.

    ◆ SCIPxmlGetData()

    const char * SCIPxmlGetData ( const XML_NODE node)

    get data

    Definition at line 1505 of file xmlparse.c.

    References NULL.

    Referenced by readLinearCoefs(), readObjective(), and SCIP_DECL_READERREAD().

    ◆ SCIPxmlFindPcdata()

    const char * SCIPxmlFindPcdata ( const XML_NODE node,
    const char *  name 
    )

    find PCDATA

    Definition at line 1515 of file xmlparse.c.

    References NULL, and SCIPxmlFindNode().