public EpsgDataResourceReaderUsage(EpsgDataResource parent, BinaryReader reader) { Contract.Requires(parent != null); Contract.Requires(reader != null); _parent = parent; _reader = reader; _coreStream = reader.BaseStream; }
public EpsgDataResourceReaderParameterValues(ushort operationMethodCode) { _operationMethodCode = operationMethodCode; _dataFile = new EpsgDataResource("param" + _operationMethodCode.ToString(CultureInfo.InvariantCulture) + ".dat"); _textReader = new EpsgDataResourceReaderText("params.txt"); // TODO: reuse one instance _numberReader = EpsgDataResourceReaderNumbers.Default; _usagesCache = null; }
protected EpsgDataResourceReaderBasic(string dataFileName, EpsgDataResourceReaderText textReader, int recordDataSize) { DataFile = new EpsgDataResource(dataFileName); FileHeaderSize = sizeof(ushort); RecordKeySize = sizeof(ushort); RecordDataSize = recordDataSize; RecordTotalSize = RecordKeySize + RecordDataSize; TextReader = textReader; }
public EpsgDataResourceReaderText(string wordPointerFile) { Contract.Requires(wordPointerFile != null); _wordPointerResource = new EpsgDataResource(wordPointerFile); }
public EpsgMultiCodeMappingInt32(string fileName) : base(fileName, null, sizeof(ushort) + sizeof(int)) { _secondaryDataFile = new EpsgDataResource(DataFile.ResourceName); }
public EpsgDataResourceReaderConcatenatedCoordinateOperationInfo(EpsgDataResourceReaderText textReader) : base("opcat.dat", textReader, (sizeof(ushort) * 5) + (sizeof(byte) * 2)) { _pathDataFile = new EpsgDataResource("oppath.dat"); }