| 879 | } |
| 880 | |
| 881 | static stream_t Text2StreamT(const Ztring& ParameterName, size_t ToRemove) |
| 882 | { |
| 883 | Ztring StreamKind_Text=ParameterName.substr(0, ParameterName.size()-ToRemove); |
| 884 | stream_t StreamKind2=Stream_Max; |
| 885 | if (StreamKind_Text==__T("General")) |
| 886 | StreamKind2=Stream_General; |
| 887 | if (StreamKind_Text==__T("Video")) |
| 888 | StreamKind2=Stream_Video; |
| 889 | if (StreamKind_Text==__T("Audio")) |
| 890 | StreamKind2=Stream_Audio; |
| 891 | if (StreamKind_Text==__T("Text")) |
| 892 | StreamKind2=Stream_Text; |
| 893 | if (StreamKind_Text==__T("Other")) |
| 894 | StreamKind2=Stream_Other; |
| 895 | if (StreamKind_Text==__T("Image")) |
| 896 | StreamKind2=Stream_Image; |
| 897 | if (StreamKind_Text==__T("Menu")) |
| 898 | StreamKind2=Stream_Menu; |
| 899 | return StreamKind2; |
| 900 | } |
| 901 | |
| 902 | //*************************************************************************** |
| 903 | // std::cin threaded interface |
no test coverage detected