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 />

/**********************************************************************<br />

*<br />

* Semantic Index System<br />

*<br />

* COPYRIGHT (c) 1992 by Institute of Computer Science,<br />

* Foundation of Research and Technology - Hellas<br />

* POBox 1385, Heraklio Crete, GR-711 10 GREECE<br />

*<br />

*<br />

* ALL RIGHTS RESERVED<br />

*<br />

* This software is furnished under license and may be used only in<br />

* accordance with the terms of that license and with the inclusion<br />

* of the above copright notice. This software may not be provided<br />

* or otherwise made available to, or used by, any other person. No<br />

* title to or ownership of the software is hereby transferred.<br />

*<br />

*<br />

* Module :<br />

* Version :<br />

*<br />

* Purpose :<br />

*<br />

* Author :<br />

* Creation Date : Date of last update :<br />

*<br />

* Remarks :<br />

*<br />

*<br />

*********************************************************************/<br />

#include "stdlib.h"<br />

#include "stdio.h"<br />

#ifdef <strong>SIS</strong>_WIN32<br />

#include "conio.h"<br />

#endif<br />

#include "sis_kernel/time.h"<br />

#include "cpp_api/cs_defs.h"<br />

#include "cpp_api/identifier.h"<br />

#include "cpp_api/sis_classes.h"<br />

#include "cpp_api/c_session_wrapper.h"<br />

void print_value(cm_value *val);<br />

main(int argc, char** argv)<br />

{<br />

l_name cls,<br />

label;<br />

categories_set categs;<br />

int ret_set1,<br />

ret_set2;<br />

cm_value cmv;<br />

int sessionID;<br />

if (argc != 3) {<br />

fprintf(stderr, "Error invoking demo\n");<br />

fprintf(stderr, "Usage : %s where server resides\n",<br />

argv[0]);<br />

exit(-1);<br />

}<br />

#ifdef CLIENT_SERVER<br />

create_<strong>SIS</strong>_CS_Session(&sessionID, argv[1], atoi(argv[2]), "", "" );<br />

#else<br />

int *start_t = NULL;<br />

char *db_dir;<br />

get_db_dir(&db_dir); /* exits if DB_DIR is not defined ... */<br />

start_t = init_start_telos(db_dir);<br />

create_<strong>SIS</strong>_SA_Session(&sessionID, start_t, argv[1], atoi(argv[2]), "", "");<br />

#endif<br />

open_connection(sessionID);<br />

begin_query(sessionID);<br />

reset_name_scope(sessionID);<br />

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

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

Saved successfully!

Ooh no, something went wrong!