// GetProperty reload and return single specified property. This also reloads requested
// property in Properties map.
GetProperty reload and return single specified property. This also reloads requested
property in Properties map.
// GetProperty reload and return single specified property . This also reloads requested // property in Properties map .
func (d *Dataset) GetProperty(p Prop) (prop Property, err error) {
	if d.list == nil {
		err = errors.New(msgDatasetIsNil)
		return
	}
	plist := C.read_dataset_property(d.list, C.int(p))
	if plist == nil {
		err = LastError()
		return
	}
	defer C.free_properties(plist)
	prop = Property{Value: C.GoString(&(*plist).value[0]),
		Source: C.GoString(&(*plist).source[0])}
	d.Properties[p] = prop
	return
}
func ( d * Dataset ) GetProperty ( p Prop ) ( prop Property , err error ) { if d . list == nil { err = errors . New ( msgDatasetIsNil ) return } plist := C . read_dataset_property ( d . list , C . int ( p ) ) if plist == nil { err = LastError ( ) return } defer C . free_properties ( plist ) prop = Property { Value : C . GoString ( & ( * plist ) . value [ 0 ] ) , Source : C . GoString ( & ( * plist ) . source [ 0 ] ) } d . Properties [ p ] = prop return }
GetProperty reload and return single specified property.
GetProperty reload and return single specified property .