bool PropertyManager::PropertyExists(std::string pCategory, std::string pName) { if (CategoryExists(pCategory)) return _properties[pCategory].find(pName) != _properties[pCategory].cend(); else return false; }
/* Add a new category to a free position, returns the index of the added category or dmAllCategories if no free position was found */ static UInt8 AddCategoryToFreePosition ( Char* name ) { UInt8 category; for ( category = 0; category < dmRecNumCategories; category++ ) { if ( ! CategoryExists(category) ) { CategorySetName( plkrDocList, category, name ); Prefs()->categories |= ( 1 << category ); return category; } } return dmAllCategories; }