/ Return true for table types based on file. */ /
| 186 | /* Return true for table types based on file. */ |
| 187 | /***********************************************************************/ |
| 188 | bool IsFileType(TABTYPE type) |
| 189 | { |
| 190 | bool isfile; |
| 191 | |
| 192 | switch (type) { |
| 193 | case TAB_DOS: |
| 194 | case TAB_FIX: |
| 195 | case TAB_BIN: |
| 196 | case TAB_CSV: |
| 197 | case TAB_FMT: |
| 198 | case TAB_DBF: |
| 199 | case TAB_XML: |
| 200 | case TAB_INI: |
| 201 | case TAB_VEC: |
| 202 | case TAB_JSON: |
| 203 | #if defined(BSON_SUPPORT) |
| 204 | case TAB_BSON: |
| 205 | #endif // BSON_SUPPORT |
| 206 | case TAB_REST: |
| 207 | // case TAB_ZIP: |
| 208 | isfile= true; |
| 209 | break; |
| 210 | default: |
| 211 | isfile= false; |
| 212 | break; |
| 213 | } // endswitch type |
| 214 | |
| 215 | return isfile; |
| 216 | } // end of IsFileType |
| 217 | |
| 218 | /***********************************************************************/ |
| 219 | /* Return true for table types returning exact row count. */ |
no outgoing calls
no test coverage detected