DbLoad.sgm 4.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <!-- $XConsortium: DbLoad.sgm /main/8 1996/09/08 20:02:35 rws $ -->
  2. <!-- (c) Copyright 1995 Digital Equipment Corporation. -->
  3. <!-- (c) Copyright 1995 Hewlett-Packard Company. -->
  4. <!-- (c) Copyright 1995 International Business Machines Corp. -->
  5. <!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
  6. <!-- (c) Copyright 1995 Novell, Inc. -->
  7. <!-- (c) Copyright 1995 FUJITSU LIMITED. -->
  8. <!-- (c) Copyright 1995 Hitachi. -->
  9. <![ %CDE.C.CDE; [<RefEntry Id="CDEMX.XCDI.MAN22.rsml.1">]]>
  10. <![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN22.rsml.1">]]>
  11. <RefMeta>
  12. <RefEntryTitle>DtDbLoad</RefEntryTitle>
  13. <ManVolNum>library call</ManVolNum>
  14. </RefMeta>
  15. <RefNameDiv>
  16. <RefName><Function>DtDbLoad</Function></RefName>
  17. <RefPurpose>load actions and data types database
  18. </RefPurpose>
  19. </RefNameDiv>
  20. <!-- CDE Common Source Format, Version 1.0.0-->
  21. <!-- *************************************************************************-->
  22. <!-- ** (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
  23. <!-- ** (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
  24. <!-- ** (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
  25. <!-- ** (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
  26. <!-- *************************************************************************-->
  27. <RefSynopsisDiv>
  28. <FuncSynopsis>
  29. <FuncSynopsisInfo>#include &lt;Dt/Action.h>
  30. </FuncSynopsisInfo>
  31. <FuncDef>void <Function>DtDbLoad</Function></FuncDef>
  32. <void>
  33. </FuncSynopsis>
  34. </RefSynopsisDiv>
  35. <RefSect1>
  36. <Title>DESCRIPTION</Title>
  37. <Para>The
  38. <Function>DtDbLoad</Function> function loads the actions and data types database
  39. into the application.
  40. When the function returns, the database has been loaded.
  41. <![ %CDE.C.XO; [See
  42. <XRef Linkend="XCDI.M4DTS.anch.1" Role="3">for the general syntax and location of the actions
  43. and data types database.)
  44. ]]></Para>
  45. <Para><![ %CDE.C.CDE; [An environment variable determines the set of directories to be searched.
  46. The
  47. <Function>DtDbLoad</Function> function loads all actions and data types
  48. defined in files with a
  49. <Filename>.dt</Filename> suffix located in these directories.
  50. </Para>
  51. <Para>The directory search path is based on the value of the
  52. <SystemItem Class="EnvironVar">DTDATABASESEARCHPATH</SystemItem> environment variable and internal defaults.
  53. <SystemItem Class="EnvironVar">DTDATABASESEARCHPATH</SystemItem> contains a comma-separated list of directories
  54. in <Literal>[</Literal><Symbol Role="Variable">host</Symbol><Literal>:]/</Literal><Emphasis>path</Emphasis> format.
  55. The application must call
  56. <Function>DtDbLoad</Function> before calling
  57. any of the routines that query either the action or data type databases.
  58. If called multiple times, the old databases are freed before the new
  59. ones are created.
  60. ]]></Para>
  61. </RefSect1>
  62. <RefSect1>
  63. <Title>RETURN VALUE</Title>
  64. <Para>The
  65. <Function>DtDbLoad</Function> function returns no value.
  66. </Para>
  67. </RefSect1>
  68. <RefSect1>
  69. <Title>APPLICATION USAGE</Title>
  70. <Para>If this function is used in a long-lived application, the application
  71. must dynamically reload the databases when they are modified.
  72. To do this, the client must register to receive notification whenever the
  73. actions and data types database needs to be modified.
  74. It is up to the application to recall
  75. <Function>DtDbLoad</Function> after receiving notification.
  76. This is done with a call to
  77. &cdeman.DtDbReloadNotify;.</Para>
  78. <Para>If errors are encountered when reading the database files, error messages are
  79. written to the user's errorlog file (<Filename>$HOME/.dt/errorlog</Filename>).
  80. Records containing errors are not incorporated into the internal database.
  81. <!--There are no error returns available to the application
  82. because, while errors may occur loading some of those
  83. files, this does not necessarily mean that the application should fail.
  84. Errors typically affect only a single record in the database.
  85. The application can continue processing and
  86. error messages will be emitted when the data in the database is
  87. actually used.
  88. .br
  89. --></Para>
  90. </RefSect1>
  91. <RefSect1>
  92. <Title>SEE ALSO</Title>
  93. <Para>&cdeman.Dt.Action.h;, &cdeman.DtDbReloadNotify;, <![ %CDE.C.CDE; [&cdeman.dtdtfile;. ]]><![ %CDE.C.XO; [<XRef Linkend="XCDI.M4DTS.anch.1" Role="3">. ]]></Para>
  94. </RefSect1>
  95. </RefEntry>
  96. <!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->