20.01.2014 Views

SIS - Application Programmatic Interface, Reference Manual - ICS ...

SIS - Application Programmatic Interface, Reference Manual - ICS ...

SIS - Application Programmatic Interface, Reference Manual - ICS ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>SIS</strong>-<strong>Application</strong> <strong>Programmatic</strong> <strong>Interface</strong>, <strong>Reference</strong> <strong>Manual</strong><br />

int get_loginam(int sessionID, int sysid, l_name lname)<br />

Given the system identifier sysid of an object, the function returns the logical<br />

name lname of this object.<br />

6.3.2 Simple queries<br />

The following group of queries applies either on the current node or on each object in<br />

a temporary set and store the answer in a temporary set. These queries calculate the<br />

answer set with information that exists in the object they apply on or in objects that<br />

are connected with immediate links with the applying object except some queries that<br />

have to calculate the isA closure of an object.<br />

These functions return APIFail(-1) on error or the set identifier of the temporary<br />

set where the answer is stored.<br />

int get_classes(int sessionID, int set_id)<br />

If set_id is 0, get classes of which the current node is instance of. The return<br />

value is the descriptor of the answer set that contains the objects (system<br />

identifiers) of the classes of the current node.<br />

If set_id is a positive integer, apply get_classes() on each object in temporary<br />

set set_id.<br />

int get_all_classes(int sessionID, int set_id)<br />

If set_id is 0, get classes of the ISA transitive closure of the classes of which<br />

the current node is instance of. The answer set contains the system identifiers<br />

of these classes.<br />

If set_id is a positive integer, apply get_all_classes() on each object in<br />

temporary set set_id.<br />

int get_Sysclass(int sessionID, int set_id)<br />

If set_id is 0, get system class the current node is instance of. The answer set<br />

contains the system identifiers of these objects.<br />

If set_id is a positive integer, apply get_Sysclass() on each object in<br />

temporary set set_id.<br />

int get_all_Sysclasses(int sessionID, int set_id)<br />

If set_id is 0, get all system classes of which the current node is instance of.<br />

The answer set contains the system identifiers of these objects.<br />

If set_id is a positive integer, apply get_all_Sysclass() on each object in<br />

temporary set set_id.<br />

int get_instances(int sessionID, int set_id)<br />

If set_id is 0, get the instances of the current node. The answer set contains the<br />

system identifiers of these objects.<br />

If set_id is a positive integer, apply get_instances() on each object in<br />

temporary set set_id.<br />

August 2002/v2.2.2 -13- <strong>ICS</strong>-FORTH

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!