GetLogicalFileAttribute.xml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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="0" frame="none" rowsep="0">
  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.</entry>
  28. </row>
  29. <row>
  30. <entry>Return:<emphasis> </emphasis></entry>
  31. <entry>GetLogicalFileAttribute returns returns a VARSTRING
  32. (null-terminated) value.</entry>
  33. </row>
  34. </tbody>
  35. </tgroup>
  36. </informaltable>
  37. <para>The <emphasis role="bold">GetLogicalFileAttribute </emphasis>function
  38. returns the value of the <emphasis>attrname</emphasis> for the specified
  39. <emphasis>logicalfilename</emphasis>.</para>
  40. <para>Example:</para>
  41. <programlisting format="linespecific">IMPORT STD;
  42. file := '~class::bmf::join::halfkeyed';
  43. OUTPUT(STD.File.GetLogicalFileAttribute(file,'recordSize'));
  44. OUTPUT(STD.File.GetLogicalFileAttribute(file,'recordCount'));
  45. OUTPUT(STD.File.GetLogicalFileAttribute(file,'size'));
  46. OUTPUT(STD.File.GetLogicalFileAttribute(file,'clusterName'));
  47. OUTPUT(STD.File.GetLogicalFileAttribute(file,'directory'));
  48. OUTPUT(STD.File.GetLogicalFileAttribute(file,'numparts'));
  49. </programlisting>
  50. </sect1>