bool StructValueInfo::AllowSubStruct() const { for ( Tag* tag = m_Tags.Get(); tag != 0; tag = tag->GetNext() ) { if ( tag->GetType() == kGeneric ) { GenericTag* gentag = ( GenericTag* ) tag; if ( gentag->GetNumValues() == 0 && !strcmp ( gentag->m_Name.Get(), "AllowSubstruct" ) ) { return true; } } } return false; }