Copies dynamic fields from one object to another, optionally limited by the settings for and . When true, prohibits the replacement of fields that already have a value. When is specified, only fields with leading characters that exactly match the characters in are copied.
| 241 | // already have a value. When <filter> is specified, only fields with leading characters that |
| 242 | // exactly match the characters in <filter> are copied. |
| 243 | void SimObject::assignDynamicFieldsFrom(SimObject* from, const char* filter, bool no_replace) |
| 244 | { |
| 245 | if (from->mFieldDictionary) |
| 246 | { |
| 247 | if( mFieldDictionary == NULL ) |
| 248 | mFieldDictionary = new SimFieldDictionary; |
| 249 | mFieldDictionary->assignFrom(from->mFieldDictionary, filter, no_replace); |
| 250 | } |
| 251 | } |
| 252 | //============================================================================= |
| 253 | // Persistence. |
| 254 | //============================================================================= |
no test coverage detected