The ksegops library (libksegops.a) contains general data segment operators. These functions do not enforce the relationships defined by the polymorphic data model. Operations include moving, copying, inserting and deleting segments, data conversion, ASCII and raw data import, and data object comparison. The ksegops operators are implemented using the data management services, which is a part of the Khoros 2.0 kdms library.
The function calls in ksegops should have no side effects on the source objects passed into them, and should only affect those segments and attributes of the destination object that the operation needs to modify. For example, if a destination object is passed in that already has value, mask, and geometry data, and a multiplication operation is performed on the source value data, the destination mask and geometry data will not be modified, and will remain intact.
Each function call frees all memory that has been allocated within the call, and closes all temporary objects that were opened within the call. The function call will not free memory or close objects that were passed into it.
ALL programs that utilize these function calls MUST include the statement:
#include <datamanip.h>
DISCLAIMER \(em WARNING The ksegops library is in its first prototype stage, therefore, the behavior and API of these functions may change in the future.
$DATAMANIP/objects/library/ksegops/src
$DATAMANIP/include/ksegops/ksegops.h
#include <datamanip.h>