public RCODE reportNodeCreate( ref RestoreAction peRestoreAction, ulong ulTransId, uint uiCollection, ulong ulRefNodeId, eDomNodeType eNodeType, uint uiNameId, eNodeInsertLoc eLocation) { peRestoreAction = RestoreAction.XFLM_RESTORE_ACTION_CONTINUE; return(RCODE.NE_XFLM_OK); }
private static extern RCODE xflaim_Query_addXPathComponent( IntPtr pQuery, eXPathAxisTypes eXPathAxis, eDomNodeType eNodeType, uint uiNameId);
//----------------------------------------------------------------------------- // addXPathComponent //----------------------------------------------------------------------------- /// <summary> /// Add an XPATH component to a query. /// </summary> /// <param name="eXPathAxis"> /// Type of axis for the XPATH component being added. /// </param> /// <param name="eNodeType"> /// Type of node for the XPATH component. /// </param> /// <param name="uiNameId"> /// Name ID for the node in the XPATH component. /// </param> public void addXPathComponent( eXPathAxisTypes eXPathAxis, eDomNodeType eNodeType, uint uiNameId) { RCODE rc = 0; if ((rc = xflaim_Query_addXPathComponent( m_pQuery, eXPathAxis, eNodeType, uiNameId)) != 0) { throw new XFlaimException( rc); } }
//----------------------------------------------------------------------------- // getChild //----------------------------------------------------------------------------- /// <summary> /// Retrieves the first instance of the specified type of node from this /// node's child nodes. /// </summary> /// <param name="eNodeType"> /// Type of node to retrieve. /// </param> /// <param name="nodeToReuse"> /// An existing <see cref="DOMNode"/> object can optionally be passed in, and /// it will be reused instead of a new object being allocated. /// </param> /// <returns> /// Returns a <see cref="DOMNode"/> object. /// </returns> public DOMNode getChild( eDomNodeType eNodeType, DOMNode nodeToReuse) { RCODE rc; IntPtr pNode = (nodeToReuse != null) ? nodeToReuse.getNode() : IntPtr.Zero; if ((rc = xflaim_DOMNode_getChild( m_pNode, m_db.getDb(), eNodeType, ref pNode)) != 0) { throw new XFlaimException( rc); } return( makeNode( nodeToReuse, pNode)); }
//----------------------------------------------------------------------------- // createNode //----------------------------------------------------------------------------- /// <summary> /// Creates a new DOM node and inserts it into the database in the /// specified position relative to the current node. An existing /// DOMNode object can optionally be passed in, and it will be reused /// instead of a new object being allocated. /// </summary> /// <param name="eNodeType"> /// Type of node to create. /// </param> /// <param name="uiNameId"> /// The dictionary tag number that represents the node name. This name ID /// must exist in the dictionary before it can be used here. The value /// may be one of the predefined ones, or it may be created by calling /// <see cref="Db.createElementDef"/>. /// </param> /// <param name="eInsertLoc"> /// The relative position to insert the new node with respect to this node. /// </param> /// <param name="nodeToReuse"> /// An existing <see cref="DOMNode"/> object can optionally be passed in, and /// it will be reused instead of a new object being allocated. /// </param> /// <returns> /// Returns a <see cref="DOMNode"/> object. /// </returns> public DOMNode createNode( eDomNodeType eNodeType, uint uiNameId, eNodeInsertLoc eInsertLoc, DOMNode nodeToReuse) { RCODE rc; IntPtr pNode = (nodeToReuse != null) ? nodeToReuse.getNode() : IntPtr.Zero; if ((rc = xflaim_DOMNode_createNode( m_pNode, m_db.getDb(), eNodeType, uiNameId, eInsertLoc, ref pNode)) != 0) { throw new XFlaimException( rc); } return( makeNode( nodeToReuse, pNode)); }
private static extern RCODE xflaim_DOMNode_getChild( IntPtr pNode, IntPtr pDb, eDomNodeType eNodeType, ref IntPtr ppNode);
private static extern RCODE xflaim_DOMNode_createNode( IntPtr pNode, IntPtr pDb, eDomNodeType eNodeType, uint uiNameId, eNodeInsertLoc eInsertLoc, ref IntPtr ppNode);
public RCODE reportNodeCreate( ref RestoreAction peRestoreAction, ulong ulTransId, uint uiCollection, ulong ulRefNodeId, eDomNodeType eNodeType, uint uiNameId, eNodeInsertLoc eLocation) { peRestoreAction = RestoreAction.XFLM_RESTORE_ACTION_CONTINUE; return( RCODE.NE_XFLM_OK); }