PromoteSuperFileList.xml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <sect1 id="PromoteSuperFileList">
  5. <title>PromoteSuperFileList</title>
  6. <para><emphasis role="bold">STD.File.PromoteSuperFileList<indexterm>
  7. <primary>STD.File.PromoteSuperFileList</primary>
  8. </indexterm><indexterm>
  9. <primary>File.PromoteSuperFileList</primary>
  10. </indexterm><indexterm>
  11. <primary>PromoteSuperFileList</primary>
  12. </indexterm>(</emphasis> <emphasis> superfiles </emphasis> <emphasis
  13. role="bold">[</emphasis> <emphasis>, addhead </emphasis> <emphasis
  14. role="bold">]</emphasis> <emphasis> </emphasis> <emphasis
  15. role="bold">[</emphasis> <emphasis>, deltail </emphasis> <emphasis
  16. role="bold">]</emphasis> <emphasis> </emphasis> <emphasis role="bold">
  17. [</emphasis> <emphasis>, createjustone </emphasis> <emphasis
  18. role="bold">]</emphasis> <emphasis> </emphasis> <emphasis
  19. role="bold">[</emphasis> <emphasis>, reverse </emphasis> <emphasis
  20. role="bold">]</emphasis> <emphasis> </emphasis> <emphasis
  21. role="bold">)</emphasis></para>
  22. <para><emphasis>oldlist</emphasis> <emphasis role="bold"> :=
  23. STD.File.fPromoteSuperFileList<indexterm>
  24. <primary>STD.File.fPromoteSuperFileList</primary>
  25. </indexterm><indexterm>
  26. <primary>File.fPromoteSuperFileList</primary>
  27. </indexterm><indexterm>
  28. <primary>fPromoteSuperFileList</primary>
  29. </indexterm>(</emphasis> <emphasis> superfiles </emphasis> <emphasis
  30. role="bold">[</emphasis> <emphasis>, addhead </emphasis> <emphasis
  31. role="bold">]</emphasis> <emphasis> </emphasis> <emphasis role="bold">
  32. [</emphasis> <emphasis>, deltail </emphasis> <emphasis
  33. role="bold">]</emphasis> <emphasis> </emphasis> <emphasis
  34. role="bold">[</emphasis> <emphasis>, createjustone </emphasis> <emphasis
  35. role="bold">]</emphasis> <emphasis> </emphasis> <emphasis
  36. role="bold">[</emphasis> <emphasis>, reverse </emphasis> <emphasis
  37. role="bold">]</emphasis> <emphasis> </emphasis> <emphasis
  38. role="bold">);</emphasis></para>
  39. <informaltable colsep="0" frame="none" rowsep="0">
  40. <tgroup cols="2">
  41. <colspec colwidth="80.50pt" />
  42. <colspec />
  43. <tbody>
  44. <row>
  45. <entry><emphasis>superfiles</emphasis></entry>
  46. <entry>A set of null-terminated strings containing the logical names
  47. of the superfiles to act on. Any that don’t exist will be created.
  48. The contents of each superfile will be moved to the next in the list
  49. (NB -- each superfile must contain different sub-files).</entry>
  50. </row>
  51. <row>
  52. <entry><emphasis>addhead</emphasis></entry>
  53. <entry>Optional. A null-terminated string containing a
  54. comma-delimited list of logical file names to add to the first
  55. <emphasis>superfile</emphasis> after the promotion process is
  56. complete.</entry>
  57. </row>
  58. <row>
  59. <entry><emphasis>deltail</emphasis></entry>
  60. <entry>Optional. A boolean value specifying whether to physically
  61. delete the contents moved out of the last superfile. If omitted, the
  62. default is FALSE.</entry>
  63. </row>
  64. <row>
  65. <entry><emphasis>createjustone</emphasis></entry>
  66. <entry>Optional. A boolean value specifying whether to only create a
  67. single superfile (truncate the list at the first non-existent
  68. superfile). If omitted, the default is FALSE.</entry>
  69. </row>
  70. <row>
  71. <entry><emphasis>reverse</emphasis></entry>
  72. <entry>Optional. A boolean value specifying whether to reverse the
  73. order of procesing the <emphasis>superfiles</emphasis> list,
  74. effectively “demoting” instead of “promoting” the sub-files. If
  75. omitted, the default is FALSE.</entry>
  76. </row>
  77. <row>
  78. <entry><emphasis>oldlist</emphasis></entry>
  79. <entry>The name of the attribute that receives the returned string
  80. containing the list of the previous subfile contents of the emptied
  81. superfile.</entry>
  82. </row>
  83. <row>
  84. <entry>Return:<emphasis> </emphasis></entry>
  85. <entry>PromoteSupeFileList returns Null; fPromoteSupeFileList
  86. returns a string.</entry>
  87. </row>
  88. </tbody>
  89. </tgroup>
  90. </informaltable>
  91. <para>The <emphasis role="bold">PromoteSuperFileList </emphasis>function
  92. moves the subfiles from the first entry in the list of
  93. <emphasis>superfiles</emphasis> to the next in the list, subsequently
  94. repeating the process through the list of
  95. <emphasis>superfiles</emphasis>.</para>
  96. <para>This function does not use superfile transactions, it is an atomic
  97. operation.</para>
  98. <para>Example:</para>
  99. <programlisting format="linespecific">STD.File.PromoteSuperFileList(['Super1','Super2','Super3'],
  100. 'NewSub1');
  101. //Moves what was in Super1 to Super2,
  102. // what was in Super2 to Super3, replacing what was in Super3,
  103. // and putting NewSub1 in Super1</programlisting>
  104. </sect1>