// // assign and update my properties from the bitVector passed in // void plObjInterface::ISetAllProperties(const hsBitVector& b) { // if (&b != &fProps) // don't copy if they are the same variable fProps = b; int i; for(i=0;i<GetNumProperties(); i++) SetProperty(i, GetProperty(i)); }
uint32 CPropertyDB::CreateRow(std::initializer_list<TPropertyValue> _lPropertyValues) { // We do not currently support DB resizing assert(_lPropertyValues.size() <= GetNumProperties()); uint32 uNewRowIndex = CreateRow(); uint32 uPropertyIndex = 0; BOOST_FOREACH(const TPropertyValue& _PropertyValue, _lPropertyValues) { SetPropertyValue(uNewRowIndex, uPropertyIndex, _PropertyValue); std::cout << _PropertyValue << std::endl; ++uPropertyIndex; }