home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / nvlist.idl < prev    next >
Encoding:
Text File  |  1996-02-21  |  1.6 KB  |  74 lines

  1. //
  2. //   COMPONENT_NAME: somd
  3. //
  4. //   ORIGINS: 27
  5. //
  6. //
  7. //   10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
  8. //   All Rights Reserved
  9. //   Licensed Materials - Property of IBM
  10. //   US Government Users Restricted Rights - Use, duplication or
  11. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  12. //
  13.  
  14. //  This class implements the NVList object.
  15.  
  16.  
  17. #ifndef nvlist_idl
  18. #define nvlist_idl
  19.  
  20. #include <somobj.idl>
  21. #include <somdtype.idl>
  22.  
  23. interface NVList : SOMObject
  24. {
  25.  
  26.   ORBStatus add_item(in Identifier item_name, in TypeCode item_type, 
  27.              in void *value, in long value_len, in Flags item_flags);
  28.  
  29.  
  30.   ORBStatus free();
  31.  
  32.   ORBStatus free_memory();
  33.  
  34.   ORBStatus get_count(out long count);
  35.  
  36.   //
  37.   // These are the accessor functions which allow indexing
  38.   // into the NVList
  39.   //
  40.  
  41.   ORBStatus set_item(in long item_number, 
  42.            in Identifier item_name, in TypeCode item_type, 
  43.                in void *value, in long value_len, in Flags item_flags);
  44.  
  45.   // Items are numbered 0 ... N
  46.  
  47.   ORBStatus get_item(in long item_number, 
  48.            out Identifier item_name, out TypeCode item_type, 
  49.                out void *value, out long value_len, out Flags item_flags);
  50.  
  51.   // Items are numbered 0 ... N
  52.  
  53. #ifdef __SOMIDL__
  54.  
  55.   implementation 
  56.   {
  57.     releaseorder: add_item, remove_item, free, free_memory, get_count, 
  58.           set_item, get_item, get_item_by_name;
  59.  
  60.     callstyle = idl;
  61.     dllname = "somd.dll";
  62.     majorversion = 2;
  63.     minorversion = 1;
  64.  
  65.     somInit: override;
  66.  
  67.   };
  68.  
  69. #endif /* __SOMIDL__ */
  70.  
  71. };
  72.  
  73. #endif  /* nvlist_idl */
  74.