| 867 | //------------------------------------------------------------------------------ |
| 868 | |
| 869 | vtkVariant ConvertStringToVtkIdType(bool isBinary, const char* rawData) |
| 870 | { |
| 871 | if (isBinary) |
| 872 | { |
| 873 | vtkIdType result; |
| 874 | ConvertFromNetworkOrder(result, rawData); |
| 875 | return vtkVariant(result); |
| 876 | } |
| 877 | else |
| 878 | { |
| 879 | std::stringstream convertStream; |
| 880 | convertStream.str(rawData); |
| 881 | vtkIdType result; |
| 882 | convertStream >> result; |
| 883 | return vtkVariant(result); |
| 884 | } |
| 885 | } |
| 886 | |
| 887 | //------------------------------------------------------------------------------ |
| 888 |
no test coverage detected