home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1999 March B / SCO_CASTOR4RRT.iso / BASEman / root.14 / usr / lib / scohelp / en_US.ISO8859-1 / man / html.X3xlib / XrmPutResource.X3xlib.html < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-19  |  5.2 KB  |  146 lines

  1. <HTML>
  2. <HEAD>
  3. <META HTTP-EQUIV="Content-Type" CONTENT="text/html;charset=iso-8859-1">
  4. <TITLE>XrmPutResource(X3xlib) X Version 11 (Release 6.1) </TITLE>
  5. <SCRIPT LANGUAGE=JavaScript>
  6. <!-- comment for old browsers
  7. var Contents = "/man/html.X3xlib/CONTENTS.html"
  8. var PrintSequence = "/man/html.X3xlib/CONTENTS.html"
  9. if ( parent.RightHistory != null ) parent.RightHistory(document.URL)
  10. // end of comment -->
  11. </SCRIPT>
  12. </HEAD>
  13. <BODY>
  14. <H1>XrmPutResource(X3xlib) X Version 11 (Release 6.1)</H1> 
  15. <HR> 
  16. <B>XrmPutResource -- 
  17. <!--Meta NM "XrmPutResource"--> 
  18. store database resources 
  19. </B> 
  20. <!--Meta DN "store database resources"--> 
  21. <P> 
  22. <H2>Synopsis</H2> 
  23. <PRE>   void XrmPutResource(database, specifier, type, value) 
  24.         XrmDatabase *database; 
  25.         char *specifier; 
  26.         char *type; 
  27.         XrmValue *value; 
  28.    <P> 
  29.    void XrmQPutResource(database, bindings, quarks, type, value) 
  30.         XrmDatabase *database; 
  31.         XrmBindingList bindings; 
  32.         XrmQuarkList quarks; 
  33.         XrmRepresentation type; 
  34.         XrmValue *value; 
  35.    <P> 
  36.    void XrmPutStringResource(database, specifier, value) 
  37.         XrmDatabase *database; 
  38.         char *specifier; 
  39.         char *value; 
  40.    <P> 
  41.    void XrmQPutStringResource(database, bindings, quarks, value) 
  42.         XrmDatabase *database; 
  43.         XrmBindingList bindings; 
  44.         XrmQuarkList quarks; 
  45.         char *value; 
  46.    <P> 
  47.    void XrmPutLineResource(database, line) 
  48.         XrmDatabase *database; 
  49.         char *line; 
  50. </PRE> 
  51. <H3>Arguments</H3> 
  52. <DL COMPACT> 
  53. <P><DT><B><I>bindings</I></B><DD> 
  54. Specifies a list of bindings. 
  55. <P><DT><B><I>database</I></B><DD> 
  56. Specifies the resource database. 
  57. <P><DT><B><I>line</I></B><DD> 
  58. Specifies the resource name and value pair as a single string. 
  59. <P><DT><B><I>quarks</I></B><DD> 
  60. Specifies the complete or partial name or the class list of the resource. 
  61. <P><DT><B><I>specifier</I></B><DD> 
  62. Specifies a complete or partial specification of the resource. 
  63. <BR> 
  64. <P><DT><B><I>type</I></B><DD> 
  65. Specifies the type of the resource. 
  66. <P><DT><B><I>value</I></B><DD> 
  67. Specifies the value of the resource, which is specified as a string. 
  68. </DL> 
  69. <H2>Description</H2> 
  70. If database contains <B>NULL</B>, <B>XrmPutResource</B> 
  71. creates a new database and returns a pointer to it. 
  72. <B>XrmPutResource</B> is a convenience function that calls 
  73. <B>XrmStringToBindingQuarkList</B> followed by: 
  74. <PRE>   XrmQPutResource(database, bindings, quarks, XrmStringToQuark(type), value) 
  75. </PRE> 
  76. If the specifier and type are not in the Host Portable Character, 
  77. Encoding the result is implementation-dependent. 
  78. The value is stored in the database without modification. 
  79. <P> 
  80. If database contains <B>NULL</B>, <B>XrmQPutResource</B> 
  81. creates a new database and returns a pointer to it. 
  82. If a resource entry with the identical bindings and quarks already 
  83. exists in the database, the previous type and value are replaced by the new 
  84. specified type and value. 
  85. The value is stored in the database without modification. 
  86. <P> 
  87. If database contains <B>NULL</B>, 
  88. <B>XrmPutStringResource</B> 
  89. creates a new database and returns a pointer to it. 
  90. <B>XrmPutStringResource</B> 
  91. adds a resource with the specified value to the specified database. 
  92. <B>XrmPutStringResource</B> 
  93. is a convenience function that first calls 
  94. <B>XrmStringToBindingQuarkList</B> 
  95. on the specifier and then calls <B>XrmQPutResource</B>, 
  96. using a ``String'' representation type. 
  97. If the specifier is not in the Host Portable Character Encoding, 
  98. the result is implementation-dependent. 
  99. The value is stored in the database without modification. 
  100. <P> 
  101. If database contains <B>NULL</B>, 
  102. <B>XrmQPutStringResource</B> 
  103. creates a new database and returns a pointer to it. 
  104. <B>XrmQPutStringResource</B> 
  105. is a convenience routine that constructs an <B>XrmValue</B> 
  106. for the value string (by calling <B>strlen</B> 
  107. to compute the size) and then calls <B>XrmQPutResource</B>, 
  108. using a ``String'' representation type. 
  109. The value is stored in the database without modification. 
  110. <P> 
  111. If database contains <B>NULL</B>, 
  112. <B>XrmPutLineResource</B> 
  113. creates a new database and returns a pointer to it. 
  114. <B>XrmPutLineResource</B> 
  115. adds a single resource entry to the specified database. 
  116. The line should be in valid ResourceLine format 
  117. (see section 15.1 of <I>Xlib - C Language X Interface</I>) 
  118. terminated by a newline or null character; the database that results from 
  119. using a string with incorrect syntax is implementation-dependent. 
  120. The string is parsed in the locale of the database. 
  121. If the <B>ResourceName</B> 
  122. is not in the Host Portable Character Encoding, 
  123. the result is implementation-dependent. 
  124. Note that comment lines are not stored. 
  125. <H2>References</H2> 
  126. <A HREF=/cgi-bin/man/man?XrmGetResource+X3xlib><B>XrmGetResource</B>(X3xlib)</A>, 
  127. <A HREF=/cgi-bin/man/man?XrmInitialize+X3xlib><B>XrmInitialize</B>(X3xlib)</A>, 
  128. <A HREF=/cgi-bin/man/man?XrmMergeDatabases+X3xlib><B>XrmMergeDatabases</B>(X3xlib)</A>, 
  129. <A HREF=/cgi-bin/man/man?XrmUniqueQuark+X3xlib><B>XrmUniqueQuark</B>(X3xlib)</A> 
  130. <BR> 
  131. <BR> 
  132. <I>Xlib - C Language X Interface</I> 
  133. <P> 
  134. <!-- NAVBEGIN --> 
  135. <HR> 
  136. <I> 
  137. <SMALL> 
  138. 30 January 1998 
  139. <BR> 
  140. <A HREF=/man/html.X3xlib/COPYRIGHT.html>© 1998 The Santa Cruz Operation, Inc.  All rights reserved.</A> 
  141. <BR> 
  142. </SMALL> 
  143. </I> 
  144. <!-- NAVEND --> 
  145. </BODY></HTML>
  146.