// ReloadProperties re-read dataset's properties
ReloadProperties re-read dataset's properties
// ReloadProperties re - read dataset ' s properties
func (d *Dataset) ReloadProperties() (err error) {
	if d.list == nil {
		err = errors.New(msgDatasetIsNil)
		return
	}
	d.Properties = make(map[Prop]Property)
	Global.Mtx.Lock()
	defer Global.Mtx.Unlock()
	for prop := DatasetPropType; prop < DatasetNumProps; prop++ {
		plist := C.read_dataset_property(d.list, C.int(prop))
		if plist == nil {
			continue
		}
		d.Properties[prop] = Property{Value: C.GoString(&(*plist).value[0]),
			Source: C.GoString(&(*plist).source[0])}
		C.free_properties(plist)
	}
	return
}
func ( d * Dataset ) ReloadProperties ( ) ( err error ) { if d . list == nil { err = errors . New ( msgDatasetIsNil ) return } d . Properties = make ( map [ Prop ] Property ) Global . Mtx . Lock ( ) defer Global . Mtx . Unlock ( ) for prop := DatasetPropType ; prop < DatasetNumProps ; prop ++ { plist := C . read_dataset_property ( d . list , C . int ( prop ) ) if plist == nil { continue } d . Properties [ prop ] = Property { Value : C . GoString ( & ( * plist ) . value [ 0 ] ) , Source : C . GoString ( & ( * plist ) . source [ 0 ] ) } C . free_properties ( plist ) } return }
ReloadProperties re-read dataset's properties
ReloadProperties re - read dataset ' s properties