GetLogicalFileAttribute.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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, numparts, owner, description, ECL,
  29. partmask, numparts, name, modified, format, or protected. The value
  30. is case-sensitive.</entry>
  31. </row>
  32. <row>
  33. <entry>Return:<emphasis> </emphasis></entry>
  34. <entry>GetLogicalFileAttribute returns returns a VARSTRING
  35. (null-terminated) value.</entry>
  36. </row>
  37. </tbody>
  38. </tgroup>
  39. </informaltable>
  40. <para>The <emphasis role="bold">GetLogicalFileAttribute </emphasis>function
  41. returns the value of the <emphasis>attrname</emphasis> for the specified
  42. <emphasis>logicalfilename</emphasis>.</para>
  43. <para>Example:</para>
  44. <programlisting format="linespecific">IMPORT STD;
  45. file := '~class::bmf::join::halfkeyed';
  46. OUTPUT(STD.File.GetLogicalFileAttribute(file,'recordSize'));
  47. OUTPUT(STD.File.GetLogicalFileAttribute(file,'recordCount'));
  48. OUTPUT(STD.File.GetLogicalFileAttribute(file,'size'));
  49. OUTPUT(STD.File.GetLogicalFileAttribute(file,'clusterName'));
  50. OUTPUT(STD.File.GetLogicalFileAttribute(file,'directory'));
  51. OUTPUT(STD.File.GetLogicalFileAttribute(file,'numparts'));
  52. OUTPUT(STD.File.GetLogicalFileAttribute(file,'owner'));
  53. OUTPUT(STD.File.GetLogicalFileAttribute(file,'description'));
  54. OUTPUT(STD.File.GetLogicalFileAttribute(file,'ECL'));
  55. OUTPUT(STD.File.GetLogicalFileAttribute(file,'partmask'));
  56. OUTPUT(STD.File.GetLogicalFileAttribute(file,'numparts'));
  57. OUTPUT(STD.File.GetLogicalFileAttribute(file,'name'));
  58. OUTPUT(STD.File.GetLogicalFileAttribute(file,'modified'));
  59. OUTPUT(STD.File.GetLogicalFileAttribute(file,'protected'));
  60. OUTPUT(STD.File.GetLogicalFileAttribute(file,'format'));
  61. </programlisting>
  62. </sect1>