本文整理汇总了C++中CXmlNode::SetBase方法的典型用法代码示例。如果您正苦于以下问题:C++ CXmlNode::SetBase方法的具体用法?C++ CXmlNode::SetBase怎么用?C++ CXmlNode::SetBase使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CXmlNode
的用法示例。
在下文中一共展示了CXmlNode::SetBase方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: ReadNodeNoNS
CXmlNode CXmlNode::ReadNodeNoNS(const CString& strNodeName)
{
CXmlNode node;
if (IsValid())
{
int nCount = (int)m_pBase->m_nodes.size();
for (int i = 0; i < nCount; ++i)
{
if (strNodeName == GetNameNoNS(m_pBase->m_nodes[i]->m_sName))
{
CXmlNodeBase* pBase = m_pBase->m_nodes[i];
node.SetBase(pBase);
break;
}
}
}
return node;
}
示例2: GetNode
bool CXmlNode::GetNode(const CString& sName, CXmlNode& oNode)
{
bool bRes = false;
if (IsValid())
{
int nCount = (int)m_pBase->m_nodes.size();
for (int i = 0; i < nCount; ++i)
{
if (sName == m_pBase->m_nodes[i]->m_sName)
{
CXmlNodeBase* pBase = m_pBase->m_nodes[i];
oNode.SetBase(pBase);
bRes = true;
break;
}
}
}
return bRes;
}
示例3: GetChilds
bool CXmlNode::GetChilds(CXmlNodes& oXmlNodes)
{
bool bRes = false;
if (IsValid())
{
int nCount = (int)m_pBase->m_nodes.size();
if(nCount > 0)
{
bRes = true;
for (int i = 0; i < nCount; ++i)
{
CXmlNode oNode;
CXmlNodeBase* pBase = m_pBase->m_nodes[i];
oNode.SetBase(pBase);
oXmlNodes.m_nodes.insert(oXmlNodes.m_nodes.end(), oNode);
}
}
}
return bRes;
}
示例4: GetNodes
CXmlNodes CXmlNode::GetNodes(const CString& sName)
{
CXmlNodes oNodes;
if (IsValid())
{
bool bGetAll = false;
if(_T("*") == sName)
bGetAll = true;
int nCount = (int)m_pBase->m_nodes.size();
for (int i = 0; i < nCount; ++i)
{
if (bGetAll || sName == m_pBase->m_nodes[i]->m_sName)
{
CXmlNode oNode;
CXmlNodeBase* pBase = m_pBase->m_nodes[i];
oNode.SetBase(pBase);
oNodes.m_nodes.insert(oNodes.m_nodes.end(), oNode);
}
}
}
return oNodes;
}
示例5: ReadNodesNoNS
CXmlNodes CXmlNode::ReadNodesNoNS(const std::wstring& sName)
{
CXmlNodes oNodes;
if (IsValid())
{
bool bGetAll = false;
if (L"*" == sName)
bGetAll = true;
int nCount = (int)m_pBase->m_nodes.size();
for (int i = 0; i < nCount; ++i)
{
if (bGetAll || sName == GetNameNoNS(m_pBase->m_nodes[i]->m_sName))
{
CXmlNode oNode;
CXmlNodeBase* pBase = m_pBase->m_nodes[i];
oNode.SetBase(pBase);
oNodes.m_nodes.insert(oNodes.m_nodes.end(), oNode);
}
}
}
return oNodes;
}