OpenDDLParser: latest greatest.

This commit is contained in:
Kim Kulling
2015-10-01 20:29:15 +02:00
parent 7ed32fd5a9
commit 4a8b459706
10 changed files with 295 additions and 193 deletions
+5 -5
View File
@@ -49,11 +49,7 @@ static void releaseReferencedNames( Reference *ref ) {
return;
}
if( ref->m_referencedName ) {
for( size_t i = 0; i < ref->m_numRefs; i++ ) {
delete ref->m_referencedName;
}
}
delete ref;
}
DDLNode::DDLNode( const std::string &type, const std::string &name, size_t idx, DDLNode *parent )
@@ -143,6 +139,10 @@ bool DDLNode::hasProperty( const std::string &name ) {
return ( ddl_nullptr != prop );
}
bool DDLNode::hasProperties() const {
return( ddl_nullptr != m_properties );
}
Property *DDLNode::findPropertyByName( const std::string &name ) {
if( name.empty() ) {
return ddl_nullptr;