DATASERV (kappserv) functions
LIBRARY ROUTINE
kpds_copy_object_attr - copy all presentation attributes from one data object to another.
LIBRARY CALL
int
kpds_copy_object_attr(
kobject source,
kobject destination)
INPUT
- source - the object that serves as the
source for the attributes.
OUTPUT
- destination - the object that serves as
the destination for the
operation.
RETURN VALUE
TRUE on success, FALSE otherwise
DESCRIPTION
This function copies all
presentation attributes from the source_object
to the destination_object. This means that all
the attributes of the object will be copied (not
just parts of the polymorphic data model) as well.
For example, the source object may contain
attributes that one of the other services (geometry,
numerical, etc.) uses. These will also be copied.
Segments present in the source object will be created
in the destination object if they are not already present.
There are three attributes for each data component
(i.e. Value, Mask, etc.) that are affected by this
function call in a special way: KPDS_*_SIZE,
KPDS_*_DATA_TYPE, and KPDS_*_INDEX_ORDER. These
attributes are used to define how the data is stored.
When this function is called, these attributes will
appear to change to the user, but the storage of the
data will only be affected if the KPDS_COUPLING
attribute is set to KCOUPLED.
For more information on the behavior of attributes,
please refer to kpds_sync_object, kpds_get_attribute
and kpds_set_attribute.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
none
FILES
$DATASERV/objects/library/kappserv/src/polymorph.c
SEE ALSO
kappserv(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.