T his chapter explains how to compile and build IS example applications and also how to setup the IS repository in order to run these examples.
There are two IS example applications installed as a part of the Online software release. The first one, written in C++, publishes information to the IS and another one, implemented in Java, reads this information. They are using the information classes defined with the OKS schema editor and stored in the is_examples.xml file, that is also included to the release. They will be explained in more detail in this chapter.
Information Provider example contains one C++ file create_info.cc which shows how to use the ISInfoDictionary class for publishing information.
IS reader example shows how to get information from the IS and also how to get the IS type description for a specific IS type. This example is implemented in Java and contains one file ReadInfo.java.
The makefile is tuned by default to the Linux RedHat 7.3 operating system and GCC version 2.95 compiler. If you want to build examples for another operating system you have to modify the following makefile variables:
2 July 1998 - WebMaster | Copyright © CERN 1998 |