"Listing 9.1" shows how an application can get description for the Person type defined in Chapter 3.2.
First, the user program has to include the is/infodocument.h which declares the ISInfoDocument class. Then the program creates an instance of the IPCPartition class. This instance represents the partition in which the Information Service will be used. The ISInfoDocument class constructor takes this partition object as first argument. The second argument is the class for the valid IS information type, which is the Person class in this example.Then, lines 19-27 show how to get the Person type description using the methods of the ISInfoDocument class.
2 July 1998 - WebMaster | Copyright © CERN 1998 |