public void TestInt16ValueAsObject() { var value = new Int16ColumnValue(); for (short i = short.MinValue; i < short.MaxValue; ++i) { TestValueAsObjectForStruct(value, i); } }
public void TestInt16Length() { var value = new Int16ColumnValue(); for (short i = short.MinValue; i < short.MaxValue; ++i) { TestLengthForStruct(value, i, 2); } }
private void InitColumns() { _colIdInstanceLabel = Api.GetTableColumnid(Sesid, Table, colNameInstanceLabel); _colIdIfcTypeId = Api.GetTableColumnid(Sesid, Table, colNameIfcTypeId); _colIdIfcProductLabel = Api.GetTableColumnid(Sesid, Table, colNameIfcProductLabel); _colIdStyleLabel = Api.GetTableColumnid(Sesid, Table, colNameStyleLabel); _colIdShapeLabel = Api.GetTableColumnid(Sesid, Table, colNameShapeLabel); _colIdRepresentationContext = Api.GetTableColumnid(Sesid, Table, colNameRepresentationContext); _colIdRepType = Api.GetTableColumnid(Sesid, Table, colNameRepType); _colIdTransformation = Api.GetTableColumnid(Sesid, Table, colNameTransformation); _colIdBoundingBox = Api.GetTableColumnid(Sesid, Table, colNameBoundingBox); _colValInstanceLabel = new Int32ColumnValue { Columnid = _colIdInstanceLabel }; _colValIfcTypeId = new Int16ColumnValue { Columnid = _colIdIfcTypeId }; _colValIfcProductLabel = new Int32ColumnValue { Columnid = _colIdIfcProductLabel }; _colValStyleLabel = new Int32ColumnValue { Columnid = _colIdStyleLabel }; _colValShapeLabel = new Int32ColumnValue { Columnid = _colIdShapeLabel }; _colValRepresentationContext = new Int32ColumnValue { Columnid = _colIdRepresentationContext }; _colValRepType = new ByteColumnValue { Columnid = _colIdRepType }; _colValTransformation = new BytesColumnValue { Columnid = _colIdTransformation }; _colValBoundingBox = new BytesColumnValue { Columnid = _colIdBoundingBox }; _colValues = new ColumnValue[] { _colValIfcTypeId, _colValIfcProductLabel, _colValStyleLabel, _colValShapeLabel, _colValRepresentationContext, _colValRepType, _colValTransformation, _colValBoundingBox, }; }
private void InitColumns() { _colIdGeometryLabel = Api.GetTableColumnid(Sesid, Table, ColNameGeometryLabel); _colIdGeomType = Api.GetTableColumnid(Sesid, Table, ColNameGeomType); _colIdProductIfcTypeId = Api.GetTableColumnid(Sesid, Table, ColNameProductIfcTypeId); _colIdProductLabel = Api.GetTableColumnid(Sesid, Table, ColNameProductLabel); _colIdSubPart = Api.GetTableColumnid(Sesid, Table, ColNameSubPart); _colIdTransformMatrix = Api.GetTableColumnid(Sesid, Table, ColNameTransformMatrix); _colIdShapeData = Api.GetTableColumnid(Sesid, Table, ColNameShapeData); _colIdGeometryHash = Api.GetTableColumnid(Sesid, Table, ColNameGeometryHash); _colIdStyleLabel = Api.GetTableColumnid(Sesid, Table, ColNameStyleLabel); _colValGeometryLabel = new Int32ColumnValue { Columnid = _colIdGeometryLabel }; _colValGeomType = new ByteColumnValue { Columnid = _colIdGeomType }; _colValProductIfcTypeId = new Int16ColumnValue { Columnid = _colIdProductIfcTypeId }; _colValProductLabel = new Int32ColumnValue { Columnid = _colIdProductLabel }; _colValSubPart = new Int16ColumnValue { Columnid = _colIdSubPart }; _colValTransformMatrix = new BytesColumnValue { Columnid = _colIdTransformMatrix }; _colValShapeData = new BytesColumnValue { Columnid = _colIdShapeData }; _colValGeometryHash = new Int32ColumnValue { Columnid = _colIdGeometryHash }; _colValStyleLabel = new Int32ColumnValue { Columnid = _colIdStyleLabel }; _colValues = new ColumnValue[] { _colValGeomType, _colValProductLabel, _colValProductIfcTypeId, _colValSubPart, _colValTransformMatrix, _colValShapeData, _colValGeometryHash, _colValStyleLabel }; }
private void InitColumns() { // The main entity Table _colIdEntityLabel = Api.GetTableColumnid(Sesid, Table, colNameEntityLabel); _colIdIfcType = Api.GetTableColumnid(Sesid, Table, colNameIfcType); _colIdEntityData = Api.GetTableColumnid(Sesid, Table, colNameEntityData); _colIdIsIndexedClass = Api.GetTableColumnid(Sesid, Table, colNameIsIndexedClass); _colValEntityLabel = new Int32ColumnValue { Columnid = _colIdEntityLabel }; _colValTypeId = new Int16ColumnValue { Columnid = _colIdIfcType }; _colValData = new BytesColumnValue { Columnid = _colIdEntityData }; _colValIsIndexedClass = new BoolColumnValue { Columnid = _colIdIsIndexedClass }; _colValues = new ColumnValue[] { _colValEntityLabel, _colValTypeId, _colValData, _colValIsIndexedClass }; //The index table _colIdIdxIfcType = Api.GetTableColumnid(Sesid, _indexTable, colNameIfcType); _colValIdxIfcType = new Int16ColumnValue { Columnid = _colIdIdxIfcType }; _colIdIdxKey = Api.GetTableColumnid(Sesid, _indexTable, colNameSecondaryKey); _colValIdxKey = new Int32ColumnValue { Columnid = _colIdIdxKey }; _colIdIdxEntityLabel = Api.GetTableColumnid(Sesid, _indexTable, colNameEntityLabel); _colValIdxEntityLabel = new Int32ColumnValue { Columnid = _colIdIdxEntityLabel }; _colIdxValues = new ColumnValue[] { _colValIdxIfcType, _colValIdxKey, _colValIdxEntityLabel }; }
private void InitColumns() { _colIdInstanceLabel = Api.GetTableColumnid(sesid, table, colNameInstanceLabel); _colIdIfcTypeId = Api.GetTableColumnid(sesid, table, colNameIfcTypeId); _colIdIfcProductLabel = Api.GetTableColumnid(sesid, table, colNameIfcProductLabel); _colIdStyleLabel = Api.GetTableColumnid(sesid, table, colNameStyleLabel); _colIdShapeLabel = Api.GetTableColumnid(sesid, table, colNameShapeLabel); _colIdRepresentationContext = Api.GetTableColumnid(sesid, table, colNameRepresentationContext); _colIdRepType = Api.GetTableColumnid(sesid, table, colNameRepType); _colIdTransformation = Api.GetTableColumnid(sesid, table, colNameTransformation); _colIdBoundingBox = Api.GetTableColumnid(sesid, table, colNameBoundingBox); _colValInstanceLabel = new Int32ColumnValue { Columnid = _colIdInstanceLabel }; _colValIfcTypeId = new Int16ColumnValue { Columnid = _colIdIfcTypeId }; _colValIfcProductLabel = new Int32ColumnValue { Columnid = _colIdIfcProductLabel }; _colValStyleLabel = new Int32ColumnValue { Columnid = _colIdStyleLabel }; _colValShapeLabel = new Int32ColumnValue { Columnid = _colIdShapeLabel }; _colValRepresentationContext = new Int32ColumnValue { Columnid = _colIdRepresentationContext }; _colValRepType = new ByteColumnValue { Columnid = _colIdRepType }; _colValTransformation = new BytesColumnValue { Columnid = _colIdTransformation }; _colValBoundingBox = new BytesColumnValue { Columnid = _colIdBoundingBox }; _colValues = new ColumnValue[] { _colValIfcTypeId, _colValIfcProductLabel, _colValStyleLabel, _colValShapeLabel, _colValRepresentationContext, _colValRepType, _colValTransformation,_colValBoundingBox, }; }
private void InitColumns() { _colIdGeometryLabel = Api.GetTableColumnid(sesid, table, colNameGeometryLabel); _colIdGeomType = Api.GetTableColumnid(sesid, table, colNameGeomType); _colIdProductIfcTypeId = Api.GetTableColumnid(sesid, table, colNameProductIfcTypeId); _colIdProductLabel = Api.GetTableColumnid(sesid, table, colNameProductLabel); _colIdSubPart = Api.GetTableColumnid(sesid, table, colNameSubPart); _colIdTransformMatrix = Api.GetTableColumnid(sesid, table, colNameTransformMatrix); _colIdShapeData = Api.GetTableColumnid(sesid, table, colNameShapeData); _colIdGeometryHash = Api.GetTableColumnid(sesid, table, colNameGeometryHash); _colIdStyleLabel = Api.GetTableColumnid(sesid, table, colNameStyleLabel); _colValGeometryLabel = new Int32ColumnValue { Columnid = _colIdGeometryLabel }; _colValGeomType = new ByteColumnValue { Columnid = _colIdGeomType }; _colValProductIfcTypeId = new Int16ColumnValue { Columnid = _colIdProductIfcTypeId }; _colValProductLabel = new Int32ColumnValue { Columnid = _colIdProductLabel }; _colValSubPart = new Int16ColumnValue { Columnid = _colIdSubPart }; _colValTransformMatrix = new BytesColumnValue { Columnid = _colIdTransformMatrix }; _colValShapeData = new BytesColumnValue { Columnid = _colIdShapeData }; _colValGeometryHash = new Int32ColumnValue { Columnid = _colIdGeometryHash }; _colValStyleLabel = new Int32ColumnValue { Columnid = _colIdStyleLabel }; _colValues = new ColumnValue[] { _colValGeomType, _colValProductLabel, _colValProductIfcTypeId, _colValSubPart, _colValTransformMatrix, _colValShapeData, _colValGeometryHash , _colValStyleLabel}; }