mirror of
https://github.com/bulletphysics/bullet3
synced 2024-12-14 22:00:05 +00:00
42 lines
1.6 KiB
C++
42 lines
1.6 KiB
C++
/*
|
|
Copyright (C) 2005-2006 Feeling Software Inc.
|
|
MIT License: http://www.opensource.org/licenses/mit-license.php
|
|
*/
|
|
/*
|
|
Based on the FS Import classes:
|
|
Copyright (C) 2005-2006 Feeling Software Inc
|
|
Copyright (C) 2005-2006 Autodesk Media Entertainment
|
|
MIT License: http://www.opensource.org/licenses/mit-license.php
|
|
*/
|
|
|
|
#ifndef _FU_XML_PARSER_H_
|
|
#define _FU_XML_PARSER_H_
|
|
|
|
#ifdef HAS_LIBXML
|
|
|
|
namespace FUXmlParser
|
|
{
|
|
// Retrieve specific child nodes
|
|
FCOLLADA_EXPORT xmlNode* FindChildByType(xmlNode* parent, const char* type);
|
|
FCOLLADA_EXPORT xmlNode* FindChildByName(xmlNode* parent, const char* name);
|
|
FCOLLADA_EXPORT void FindChildrenByType(xmlNode* parent, const char* type, xmlNodeList& nodes);
|
|
FCOLLADA_EXPORT xmlNode* FindChildByProperty(xmlNode* parent, const char* prop, const char* val );
|
|
FCOLLADA_EXPORT xmlNode* FindNodeInListByProperty(xmlNodeList list, const char* property, const char* prop);
|
|
|
|
// Retrieve node property and content
|
|
FCOLLADA_EXPORT bool HasNodeProperty(xmlNode* node, const char* property);
|
|
FCOLLADA_EXPORT string ReadNodeProperty(xmlNode* node, const char* property);
|
|
FCOLLADA_EXPORT FUCrc32::crc32 ReadNodePropertyCRC(xmlNode* node, const char* property);
|
|
FCOLLADA_EXPORT const char* ReadNodeContentDirect(xmlNode* node);
|
|
FCOLLADA_EXPORT string ReadNodeContentFull(xmlNode* node);
|
|
|
|
// Process values
|
|
FCOLLADA_EXPORT void XmlToString(string& s);
|
|
};
|
|
|
|
inline bool IsEquivalent(const xmlChar* sz1, const char* sz2) { return IsEquivalent((const char*) sz1, sz2); }
|
|
|
|
#endif // HAS_LIBXML
|
|
|
|
#endif //_FU_XML_PARSER_H_
|