GetLogicalFileAttribute.xml 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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="GetLogicalFileAttribute">
  5. <title>GetLogicalFileAttribute</title>
  6. <para><emphasis role="bold">STD.File.GetLogicalFileAttribute<indexterm>
  7. <primary>STD.File.GetLogicalFileAttribute</primary>
  8. </indexterm><indexterm>
  9. <primary>File.GetLogicalFileAttribute</primary>
  10. </indexterm><indexterm>
  11. <primary>GetLogicalFileAttribute</primary>
  12. </indexterm>(</emphasis> <emphasis> logicalfilename, attrname </emphasis>
  13. <emphasis role="bold">)</emphasis></para>
  14. <informaltable colsep="1" frame="all" rowsep="1">
  15. <tgroup cols="2">
  16. <colspec colwidth="80.50pt" />
  17. <colspec />
  18. <tbody>
  19. <row>
  20. <entry><emphasis>logicalfilename</emphasis></entry>
  21. <entry>A null-terminated string containing the name of the logical
  22. file as it is known by the DFU.</entry>
  23. </row>
  24. <row>
  25. <entry><emphasis>attrname</emphasis></entry>
  26. <entry>A null-terminated string containing the name of the file
  27. attribute to return. Possible values are recordSize, recordCount,
  28. size, clusterName, directory, owner, description, ECL, partmask,
  29. numparts, name, modified, format, job, checkSum, kind, csvSeparate,
  30. csvTerminate, headerLength, footerLength, rowTag, workunit,
  31. accessed, maxRecordSize, csvQuote, blockCompressed, compressedSize,
  32. fileCrc, formatCrc, or protected. The value is
  33. case-sensitive.</entry>
  34. </row>
  35. <row>
  36. <entry>Return:<emphasis> </emphasis></entry>
  37. <entry>GetLogicalFileAttribute returns returns a VARSTRING
  38. (null-terminated) value.</entry>
  39. </row>
  40. </tbody>
  41. </tgroup>
  42. </informaltable>
  43. <para>The <emphasis role="bold">GetLogicalFileAttribute </emphasis>function
  44. returns the value of the <emphasis>attrname</emphasis> for the specified
  45. <emphasis>logicalfilename</emphasis>.</para>
  46. <para>Example:</para>
  47. <programlisting format="linespecific">IMPORT STD;
  48. file := '~class::bmf::join::halfkeyed';
  49. OUTPUT(STD.File.GetLogicalFileAttribute(file,'recordSize'));
  50. OUTPUT(STD.File.GetLogicalFileAttribute(file,'recordCount'));
  51. OUTPUT(STD.File.GetLogicalFileAttribute(file,'size'));
  52. OUTPUT(STD.File.GetLogicalFileAttribute(file,'clusterName'));
  53. OUTPUT(STD.File.GetLogicalFileAttribute(file,'directory'));
  54. OUTPUT(STD.File.GetLogicalFileAttribute(file,'numparts'));
  55. OUTPUT(STD.File.GetLogicalFileAttribute(file,'owner'));
  56. OUTPUT(STD.File.GetLogicalFileAttribute(file,'description'));
  57. OUTPUT(STD.File.GetLogicalFileAttribute(file,'ECL'));
  58. OUTPUT(STD.File.GetLogicalFileAttribute(file,'partmask'));
  59. OUTPUT(STD.File.GetLogicalFileAttribute(file,'numparts'));
  60. OUTPUT(STD.File.GetLogicalFileAttribute(file,'name'));
  61. OUTPUT(STD.File.GetLogicalFileAttribute(file,'modified'));
  62. OUTPUT(STD.File.GetLogicalFileAttribute(file,'protected'));
  63. OUTPUT(STD.File.GetLogicalFileAttribute(file,'format'));
  64. OUTPUT(STD.File.GetLogicalFileAttribute(file,'job'));
  65. OUTPUT(STD.File.GetLogicalFileAttribute(file,'checkSum'));
  66. OUTPUT(STD.File.GetLogicalFileAttribute(file,'kind'));
  67. OUTPUT(STD.File.GetLogicalFileAttribute(file,'csvSeparate'));
  68. OUTPUT(STD.File.GetLogicalFileAttribute(file,'csvTerminate'));
  69. OUTPUT(STD.File.GetLogicalFileAttribute(file,'headerLength'));
  70. OUTPUT(STD.File.GetLogicalFileAttribute(file,'footerLength'));
  71. OUTPUT(STD.File.GetLogicalFileAttribute(file,'rowtag'));
  72. OUTPUT(STD.File.GetLogicalFileAttribute(file,'workunit'));
  73. OUTPUT(STD.File.GetLogicalFileAttribute(file,'accessed'));
  74. OUTPUT(STD.File.GetLogicalFileAttribute(file,'maxRecordSize'));
  75. OUTPUT(STD.File.GetLogicalFileAttribute(file,'csvQuote'));
  76. OUTPUT(STD.File.GetLogicalFileAttribute(file,'blockCompressed '));
  77. OUTPUT(STD.File.GetLogicalFileAttribute(file,'compressedSize'));
  78. OUTPUT(STD.File.GetLogicalFileAttribute(file,'fileCrc'));
  79. OUTPUT(STD.File.GetLogicalFileAttribute(file,'formatCrc'));
  80. </programlisting>
  81. </sect1>