udbEntityNameShort

Description

Return the short name of the specified entity.

The short name does not include the compilation unit (Ada), member’s class names (C++) or the full file path of filenames. For Java, the short name includes one class name level (for example, a.b).

Use udbEntityNameLong() to obtain the longname (also known as fullname) of an entity.

Syntax

#include “udb/udb.h” 
char  *udbEntityNameShort(UdbEntity entity) 

Arguments

Argument
Description
UdbEntity entity
Specify the entity

Return Values

Return Values
Description
char *
The short name of the entity. This is permanent, non-allocated.

Example Usage

printf (“Fullname: %s, Shortname: %s\n”,
             udbEntityNameLong(entity),
             udbEntityNameShort(entity) ); 

See Also

udbEntityId

udbEntityNameLong

udbEntityNameSimple


Scientific Toolworks, Inc.
http://www.scitools.com