44 #if defined __cplusplus
129 pwr_ePopEditorEnum PopEditor;
179 #define gdh_ClassNameToNumber gdh_ClassNameToId
189 char* nameBuffer,
unsigned int sizeOfNameBuffer,
pwr_tBitMask nameType);
194 void* buffer_ptr,
int buff_size,
int attr_size);
197 void* value_ptr,
char* str,
int size,
int* len,
char* format);
200 pwr_sAttrRef* attributeReference,
char* nameBuffer,
int sizeOfNameBuffer);
203 const char* attributeName,
pwr_sAttrRef* attributeReference);
216 pwr_sAttrRef* addressOfAttributeReference,
void** objectData,
235 pwr_tTypeId* attributeType,
unsigned int* attributeSize,
236 unsigned int* attributeOffset,
unsigned int* attributeDimension);
296 pwr_sAttrRef* attributeReference,
void* buffer,
unsigned int sizeOfBuffer);
353 pwr_tSubid* subid,
unsigned int sizeOfObjectData);
366 const char* attributeName,
void* buffer,
unsigned int sizeOfBuffer);
369 pwr_sAttrRef* attributeReference,
void* buffer,
unsigned int sizeOfBuffer);
372 pwr_tSubid subid,
void** buffer,
unsigned int sizeOfBuffer);
375 pwr_tSubid subid,
void* buffer,
unsigned int sizeOfBuffer);
438 void gdh_ExclusiveModeOn(
void);
440 void gdh_ExclusiveModeOff(
void);
453 pwr_tTypeId* attributeType,
unsigned int* attributeSize,
454 unsigned int* attributeOffset,
unsigned int* attributeDimension);
459 void gdh_RegisterLogFunction(
void (*func)(
char*,
void*,
unsigned int));
478 #if defined __cplusplus
pwr_tStatus gdh_SubAssociateBuffer(pwr_tSubid subid, void **buffer, unsigned int sizeOfBuffer)
Associate a buffer with the subscription.
pwr_tStatus gdh_GetNextSibling(pwr_tObjid object, pwr_tObjid *nextSibling)
Get the object identity of the next sibling (i.e. the next object with the same parent).
pwr_tStatus gdh_SubRefObjectInfoList(unsigned int entryCount, void *object[], pwr_tBoolean isAttrref[], pwr_tSubid subid[])
Sets up a list of subscriptions to an object/attribute.
pwr_tStatus gdh_GetObjectDLCount(pwr_tObjid object, pwr_tUInt32 *count)
Gets the direct link count of an object.
pwr_tStatus gdh_SetObjectInfoStr(const char *name, const char *str, int size)
Store a string value in an attribute. Sets the string lock to ensure that the string is not modified ...
pwr_tStatus gdh_MountObjidToPointer(pwr_tObjid object, void **objectData)
Get a pointer to a mount object.
pwr_tStatus gdh_GetClassList(pwr_tClassId classid, pwr_tObjid *object)
Get the object identity of the first object in the list of objects of a specified class.
pwr_tBoolean gdh_IsInitialized()
Check if gdh is initialized. Returns TRUE if gdh is initialized, else FALSE.
pwr_tStatus gdh_NameToAttrref(pwr_tObjid parent, const char *attributeName, pwr_sAttrRef *attributeReference)
Converts from name string to attribute reference.
pwr_tStatus gdh_ClassAttrToAttrref(pwr_tClassId classid, const char *attributeName, pwr_sAttrRef *attributeReference)
Converts a class and attribute string to attrref format.
pwr_tStatus gdh_GetEnumValueDef(pwr_tTid tid, gdh_sValueDef **vd, int *rows)
Get definition information for an enumeration type.
pwr_tStatus gdh_ArefANameToAref(pwr_sAttrRef *arp, const char *aname, pwr_sAttrRef *oarp)
Get the attribute reference for an attribute in an object attribute reference, where the attribute is...
pwr_tStatus gdh_GetObjectInfoAttrref(pwr_sAttrRef *attributeReference, void *buffer, unsigned int sizeOfBuffer)
Fetch the data of an attribute or a whole object body.
pwr_tStatus gdh_GetObjectInfoStr(const char *name, char *str, int size)
Fetch a string value from an attribute. Sets the string lock to ensure that the string is not modifie...
pwr_tStatus gdh_NethandlerRunning(void)
Check if the Nethandler has started.
pwr_tStatus gdh_DeleteObjectTree(pwr_tObjid objectId)
Remove a local object tree.
pwr_tStatus gdh_GetMaskBitDef(pwr_tTid tid, gdh_sBitDef **bd, int *rows)
Get definition information for a mask type.
pwr_tStatus gdh_GetParent(pwr_tObjid object, pwr_tObjid *parent)
Get the object identity of the parent of an object.
pwr_tStatus gdh_FReadObject(char *filename, pwr_tAttrRef *arp)
Read a textfile into an object.
pwr_tStatus gdh_GetClassListAttrRef(pwr_tClassId cid, pwr_sAttrRef *arp)
Get the attribute reference of the first object in the list of objects of a specified class....
void gdh_SetDeltaTimeDL(pwr_tDeltaTime *dtp, pwr_tDeltaTime *time)
Thread save function to store a direct linked delta time value. Sets the time lock to ensure that the...
pwr_tStatus gdh_GetNextObject(pwr_tObjid object, pwr_tObjid *nextObject)
Get the object identity of the next object in the list of objects of a certain class.
pwr_tStatus gdh_ArefDisabled(pwr_sAttrRef *arp, pwr_tDisableAttr *disabled)
Check if an attribute is disabled.
pwr_tStatus gdh_MoveObject(pwr_tObjid objectId, pwr_tObjid newParentId)
Move a local object.
pwr_tStatus gdh_GetClassInfo(pwr_tCid cid, gdh_sClassInfo *info)
Get class info. Returns information from $ClassDef object.
void gdh_DLUnrefObjectInfoAll(void)
Removes all direct links set up by this process.
pwr_tStatus gdh_GetObjectInfo(const char *name, pwr_tAddress bufp, pwr_tUInt32 bufsize)
Fetch data from an object or an attribute.
void gdh_GetTimeDL(pwr_tTime *atp, pwr_tTime *time)
Thread save function to fetch a direct linked absolute time value. Sets the time lock to ensure that ...
pwr_tStatus gdh_SetAlarmLevel(pwr_tObjid object, pwr_tUInt32 alarmLevel)
This routine sets the alarm level for a certain object.
void gdh_SetTimeDL(pwr_tTime *atp, pwr_tTime *time)
Thread save function to store a direct linked absolute time value. Sets the time lock to ensure that ...
pwr_tStatus gdh_ClassAttrrefToAttr(pwr_tClassId classid, pwr_sAttrRef *attributeReference, char *nameBuffer, int sizeOfNameBuffer)
Get the attribute name from a class and attrref.
pwr_tStatus gdh_SetAlarmBlockLevel(pwr_tObjid object, pwr_tUInt32 alarmBlockLevel)
Sets the alarm block level for a certain object.
pwr_tStatus gdh_GetChild(pwr_tObjid object, pwr_tObjid *firstChild)
Get the object identity of the first child of an object.
pwr_tStatus gdh_GetObjectClass(pwr_tObjid object, pwr_tClassId *classid)
Get the class identifier of an object.
pwr_tStatus gdh_SetObjectInfoDeltaTime(const char *name, pwr_tDeltaTime *time)
Store a delta time value in an attribute. Sets the time lock to ensure that the time is not modified ...
pwr_tStatus gdh_ObjidToPointer(pwr_tObjid object, void **objectData)
Gets the address of the data of an object, given its object identity.
pwr_tStatus gdh_ObjidToName(pwr_tObjid oid, char *namebuf, pwr_tUInt32 size, pwr_tBitMask nametype)
Get the name of an object identified by its object identity.
pwr_tStatus gdh_SubData(pwr_tSubid subid, void *buffer, unsigned int sizeOfBuffer)
Fetch the data associated with a subscription.
void gdh_SetStrDL(char *sp, const char *str, int size)
Thread save function to store a direct linked string value. Sets the string lock to ensure that the s...
pwr_tStatus gdh_ClassNameToId(const char *className, pwr_tClassId *classid)
Get the class identity corresponding to a class specified by name.
pwr_tStatus gdh_GetVolumeInfo(pwr_tVid vid, gdh_sVolumeInfo *info)
Get info for a volume.
pwr_tStatus gdh_GetSecurityInfo(pwr_sSecurity *security)
Get security information.
pwr_tStatus gdh_UnrefObjectInfoAll(void)
Terminates all subscriptions set up by this process.
pwr_tStatus gdh_GetNextObjectAttrRef(pwr_tClassId cid, pwr_sAttrRef *arp, pwr_sAttrRef *new_arp)
Get the attrref of the next attribute object of a specified class in a specified object.
pwr_tStatus gdh_Init(const char *name)
Initialize the process to the Proview runtime environment.
pwr_tStatus gdh_GetNodeObject(pwr_tNodeId nodeIndex, pwr_tObjid *object)
Return the objid of the node object for a node identified by a node identifier (of type pwr_tNodeId).
pwr_tStatus gdh_SubRefObjectInfoAttrref(pwr_sAttrRef *attributeReference, pwr_tSubid *subid)
This routine returns a subid to the information that is denoted by 'aref'. The name can be either an ...
pwr_tStatus gdh_AttrStringToValue(int type_id, char *value_str, void *buffer_ptr, int buff_size, int attr_size)
Convert an attribute string to value.
pwr_tStatus gdh_AttrrefToName(pwr_sAttrRef *attributeReference, char *nameBuffer, unsigned int sizeOfNameBuffer, pwr_tBitMask nameType)
Translate an attribute referece to a name.
pwr_tStatus gdh_GetAlarmInfo(pwr_tObjid object, pwr_tUInt32 *alarmLevel, pwr_tUInt32 *maxAlarmLevel, pwr_tUInt32 *alarmBlockLevel, pwr_tUInt32 *maxAlarmBlockLevel, pwr_tUInt32 *alarmVisibility)
Get the alarm status for a certain object.
pwr_tStatus gdh_GetObjectInfoDeltaTime(const char *name, pwr_tDeltaTime *time)
Fetch an delta time value from an attribute. Sets the time lock to ensure that the time is not modifi...
pwr_tStatus gdh_UnrefObjectInfo(pwr_tSubid subid)
Terminates the subscription defined by the subscription identity.
pwr_tStatus gdh_RefObjectInfo(char *attributeName, void **objectData, pwr_tSubid *subid, unsigned int sizeOfObjectData)
The routine returns an address to the data that is denoted by Name. The name can be either an object ...
pwr_tStatus gdh_SetObjectInfo(const char *attributeName, void *buffer, unsigned int sizeOfBuffer)
Change the value of an attribute or the whole body of an object.
pwr_tStatus gdh_GetPreviousSibling(pwr_tObjid object, pwr_tObjid *previousSibling)
Get the object identity of the previous sibling (i.e. the previous object with the same parent).
pwr_tStatus gdh_DeleteObject(pwr_tObjid objectId)
Remove a local object.
pwr_tStatus gdh_NameToObjid(const char *objectName, pwr_tObjid *objid)
Get the object identity of an object with name 'name'.
pwr_tStatus gdh_DLUnrefObjectInfo(pwr_tDlid directLinkId)
Terminate direct linking of an object or an object attribute.
pwr_tStatus gdh_SubSize(pwr_tSubid subid, unsigned int *size)
Fetch the data size associated with a subscription.
pwr_tStatus gdh_GetNodeInfo(pwr_tNodeId nodidx, gdh_sNodeInfo *ip)
Return info for a node identified by a node identifier (of type pwr_tNodeId).
pwr_tStatus gdh_SubUnrefObjectInfoList(unsigned int nEntry, pwr_tSubid *subid)
Terminates a list of subscriptions.
pwr_tStatus gdh_SubUnrefObjectInfo(pwr_tSubid subid)
Terminates subscription of an object or an attribute.
pwr_tStatus gdh_GetObjectSize(pwr_tObjid oid, pwr_tUInt32 *size)
Get the size of the body of an object.
void gdh_StoreRtdbPointer(unsigned long *rtdbReference, void *virtualAddress)
Convert pointer to rtdb relative pointer.
pwr_tStatus gdh_AttrArefToObjectAref(pwr_sAttrRef *arp, pwr_sAttrRef *oarp)
Get the attribute reference to an object or attribute object, from the attribute reference to an attr...
void gdh_SubUnrefObjectInfoAll(void)
Terminates all subscriptions set up by this user (job/process).
pwr_tStatus gdh_SetSubscriptionDefaults(pwr_tInt32 defaultUpdateTime, pwr_tInt32 defaultTimeOut)
Sets default subscription timers for future subscription requests.
pwr_tStatus gdh_GetSubscriptionOldness(pwr_tSubid subid, pwr_tBoolean *isOld, pwr_tTime *lastUpdate, pwr_tStatus *lastStatus)
Checks the oldness of a certain subscription.
pwr_tStatus gdh_GetVolumeList(pwr_tVid *vid)
Get the first volume.
pwr_tStatus gdh_SetObjectInfoAttrref(pwr_sAttrRef *attributeReference, void *buffer, unsigned int sizeOfBuffer)
Change the data of an object or an attribute.
pwr_tStatus gdh_AttrValueToString(pwr_eType type_id, pwr_tTid tid, void *value_ptr, char *str, int size, int *len, char *format)
Convert a string to attribute value.
pwr_tStatus gdh_GetObjectLocation(pwr_tObjid object, pwr_tBoolean *isLocal)
Return the location of an object.
pwr_tStatus gdh_NameToPointer(const char *objectName, void **objectData)
Get the address of the data of an object, given its name.
pwr_tStatus gdh_GetAttributeFlags(pwr_sAttrRef *arp, unsigned int *flags)
Get the flags of an attribute.
pwr_tStatus gdh_GetAttrRefTid(pwr_sAttrRef *arp, pwr_tTid *tid)
Get the type or class identifier of an attribute reference.
pwr_tStatus gdh_GetRootList(pwr_tObjid *object)
Get the first root object in the object tree.
pwr_tStatus gdh_DLRefObjectInfoAttrref(pwr_sAttrRef *addressOfAttributeReference, void **objectData, pwr_tDlid *directLinkId)
Request a direct link to the data denoted by an attribute reference.
pwr_tStatus gdh_VolumeIdToName(pwr_tVid vid, char *name, int size)
Get the name for a volume denoted by volume identity.
void * gdh_TranslateRtdbPointer(unsigned long rtdbReference)
Convert rtdb relative pointer to absolute pointer.
void gdh_GetStrDL(char *sp, char *str, int size)
Thread save function to fetch a direct linked string value. Sets the string lock to ensure that the s...
pwr_tStatus gdh_AttrRefToPointer(pwr_sAttrRef *arp, void **p)
Gets the address of the data of an attribute reference.
pwr_tStatus gdh_GetObjectClassList(pwr_tCid cid, pwr_tOid oid, pwr_sAttrRef *arp)
Get the attribute reference of the first attribute object of a specified class in the specified objec...
pwr_tStatus gdh_GetNextAttrRef(pwr_tClassId cid, pwr_sAttrRef *arp, pwr_sAttrRef *new_arp)
Get the attrref of the next object in the list of objects of a certain class. The object can be a sol...
void gdh_GetDeltaTimeDL(pwr_tDeltaTime *dtp, pwr_tDeltaTime *time)
Thread save function to fetch a direct linked delta time value. Sets the time lock to ensure that the...
pwr_tStatus gdh_GetObjectInfoTime(const char *name, pwr_tTime *time)
Fetch an absolute time value from an attribute. Sets the time lock to ensure that the time is not mod...
pwr_tStatus gdh_GetPreviousObject(pwr_tObjid object, pwr_tObjid *previousObject)
Get the object identity of the previous object in the list of objects of a certain class.
pwr_tStatus gdh_SubRefObjectInfoName(char *attributeName, pwr_tSubid *subid)
Get the address of the data that is denoted by 'name'.
pwr_tStatus gdh_GetAttributeCharacteristics(char *name, pwr_tTypeId *tid, pwr_tUInt32 *size, pwr_tUInt32 *offs, pwr_tUInt32 *elem)
Get the characteristics of an attribute, given its name and the class it belongs to.
pwr_tStatus gdh_GetNextVolume(pwr_tVid pvid, pwr_tVid *vid)
Get the next volume in the volume list.
pwr_tStatus gdh_RenameObject(pwr_tObjid objectId, char *newObjectName)
Rename a local object.
pwr_tStatus gdh_GetLocalParent(pwr_tObjid object, pwr_tObjid *parent)
Get the object identity of the local parent of an object.
pwr_tStatus gdh_GetAttributeCharAttrref(pwr_sAttrRef *attributeReference, pwr_tTypeId *attributeType, unsigned int *attributeSize, unsigned int *attributeOffset, unsigned int *attributeDimension)
Get the characteristics of an attribute.
pwr_tStatus gdh_GetNodeIndex(pwr_tNodeId *nodeIndex)
Get the node identity of the local node.
pwr_tStatus gdh_GetRootVolume(pwr_tVid *vid)
Get info for a volume.
pwr_tStatus gdh_CreateObject(char *objectName, pwr_tClassId classid, unsigned int sizeOfObjectData, pwr_tObjid *objectId, pwr_tObjid internal1, pwr_tBitMask internal2, pwr_tObjid internal3)
Create an object in a dynamic volume.
pwr_tStatus gdh_RefObjectInfoList(unsigned int nEntry, gdh_sObjRef *objectReference, pwr_tSubid *subid)
This routine returns addresses to the information that is denoted by "objref[].fullname".
pwr_tStatus gdh_SetObjectInfoTime(const char *name, pwr_tTime *time)
Store an absolute time value in an attribute. Sets the time lock to ensure that the time is not modif...
pwr_tStatus gdh_GetDynamicAttrSize(pwr_tObjid oid, char *name, pwr_tUInt32 *size)
Get the size of a dynamic attribute.
pwr_tStatus gdh_FWriteObject(char *filename, pwr_tAttrRef *arp)
Write the content of an object to textfile.
pwr_tStatus gdh_GetSuperClass(pwr_tCid cid, pwr_tCid *supercid, pwr_tObjid oid)
Get the superclass for a class.
pwr_tStatus gdh_GetObjectNodeIndex(pwr_tObjid object, pwr_tNodeId *nodeIndex)
Get the node identity of the owner node of an object.
unsigned int pwr_tUInt32
32-bit unsigned integer type.
char pwr_tAName[399+1]
Full Aref Name type.
pwr_tNid pwr_tNodeId
Node identity type.
unsigned int pwr_tVid
Volume identity type.
unsigned int pwr_tBitMask
Bitmask type.
pwr_tTid pwr_tTypeId
Type identity type.
unsigned int pwr_tBoolean
Boolean type.
pwr_tCid pwr_tClassId
Class identity type.
pwr_tRid pwr_tSubid
Subscription identity type.
unsigned int pwr_tCid
Class identity type.
char pwr_tString40[40]
40 byte string type.
int pwr_tInt32
32-bit integer type.
int pwr_tStatus
Status type.
void * pwr_tAddress
Generic pointer type.
pwr_tRid pwr_tDlid
Direct link identity type.
unsigned int pwr_tTid
Type identity type.
unsigned int pwr_tDisableAttr
DisableAttr type.
pwr_tVolumeId pwr_tNid
Node identity type.
char pwr_tObjName[31+1]
Object name type.
Include file for Errh System log messages.