| 1211 | //----------------------------------------------------------------------------- |
| 1212 | |
| 1213 | StringTableEntry SimObject::getDataFieldPrefix(StringTableEntry fieldName) |
| 1214 | { |
| 1215 | // Sanity! |
| 1216 | AssertFatal(fieldName != NULL, "Cannot get field prefix with NULL field name."); |
| 1217 | |
| 1218 | // Find the field. |
| 1219 | const AbstractClassRep::Field* pField = findField(fieldName); |
| 1220 | |
| 1221 | // Return nothing if field was not found. |
| 1222 | if (pField == NULL) |
| 1223 | return StringTable->EmptyString(); |
| 1224 | |
| 1225 | // Yes, so fetch the console base type. |
| 1226 | ConsoleBaseType* pConsoleBaseType = ConsoleBaseType::getType(pField->type); |
| 1227 | |
| 1228 | // Fetch the type prefix. |
| 1229 | return pConsoleBaseType->getTypePrefix(); |
| 1230 | } |
| 1231 | |
| 1232 | |
| 1233 | //----------------------------------------------------------------------------- |
nothing calls this directly
no test coverage detected