bool Stream_File::OpenStdin() { Close(); _hFile = ::GetStdHandle(STD_INPUT_HANDLE); if (_hFile != INVALID_HANDLE_VALUE) { _fileName = "stdin", SetReadable(true), SetWritable(false); SetCodec(Codec::CreateCodec(_sig, OAL::GetEncodingForConsole(), true, true)); } _blockingFlag = true; return true; }
ECRGTOCSubDataset(int nXSize, int nYSize) : VRTDataset(nXSize, nYSize) { /* Don't try to write a VRT file */ SetWritable(FALSE); /* The driver is set to VRT in VRTDataset constructor. */ /* We have to set it to the expected value ! */ poDriver = (GDALDriver *) GDALGetDriverByName( "ECRGTOC" ); papszFileList = NULL; }