----------------------------------------------------------------------------- VDataTable::insert( pType, pFieldName ); Add a DataTable entry, referencing the field name and assign it the given data type. For a full list of possible data types, see the 'eDataType' declaration in VDataTable.h. -----------------------------------------------------------------------------
| 78 | // |
| 79 | //----------------------------------------------------------------------------- |
| 80 | void VDataTable::insert( eDataType pType, const String &pFieldName ) |
| 81 | { |
| 82 | if ( mDataMap.contains( pFieldName ) ) |
| 83 | { |
| 84 | // Change Field Type. |
| 85 | mDataMap.find( pFieldName )->value.Type = pType; |
| 86 | |
| 87 | // Return. |
| 88 | return; |
| 89 | } |
| 90 | |
| 91 | // Insert Item. |
| 92 | mDataMap.insert( pFieldName, sDataItem( pType, pFieldName ) ); |
| 93 | } |
| 94 | |
| 95 | //----------------------------------------------------------------------------- |
| 96 | // |
no test coverage detected