/usr/share/mozart/doc/system/node2.html is in mozart-doc 1.4.0-8ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>1.1 The Application Module</TITLE><LINK href="ozdoc.css" rel="stylesheet" type="text/css"></HEAD><BODY><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node1.html">- Up -</A></TD><TD><A href="node3.html#section.application.parsingconventions">Next >></A></TD></TR></TABLE><DIV id="section.application.module"><H2><A name="section.application.module">1.1 The <CODE>Application</CODE> Module</A></H2><P> The <CODE>Application</CODE> module provides procedures for accessing the application's arguments, and for terminating applications. </P><DL><DT><CODE>getCgiArgs</CODE> <A name="label3"></A> </DT><DD><BLOCKQUOTE class="synopsis"><P><CODE>{Application<SPAN class="keyword">.</SPAN>getCgiArgs </CODE><CODE>+<I>Spec</I></CODE><CODE> </CODE><CODE>?<I>R</I></CODE><CODE>}</CODE> </P></BLOCKQUOTE></DD><DD><P>acquires the arguments (both <CODE>GET</CODE> and <CODE>POST</CODE> methods supported) and parses them according to <CODE><I>Spec</I></CODE> as described in <A href="node4.html#section.application.specifications">Section 1.3</A>. Returns the options in <CODE><I>R</I></CODE>. </P></DD><DT><CODE>getCmdArgs</CODE> <A name="label5"></A> </DT><DD><BLOCKQUOTE class="synopsis"><P><CODE>{Application<SPAN class="keyword">.</SPAN>getCmdArgs </CODE><CODE>+<I>Spec</I></CODE><CODE> </CODE><CODE>?<I>R</I></CODE><CODE>}</CODE> </P></BLOCKQUOTE></DD><DD><P>acquires the arguments from the system property <CODE><SPAN class="string">'application.args'</SPAN></CODE> and parses them according to <CODE><I>Spec</I></CODE> as described in <A href="node4.html#section.application.specifications">Section 1.3</A>. Returns the options in <CODE><I>R</I></CODE>. </P></DD><DT><CODE>getGuiArgs</CODE> <A name="label7"></A> </DT><DD><BLOCKQUOTE class="synopsis"><P><CODE>{Application<SPAN class="keyword">.</SPAN>getGuiArgs </CODE><CODE>+<I>Spec</I></CODE><CODE> </CODE><CODE>?<I>R</I></CODE><CODE>}</CODE> </P></BLOCKQUOTE></DD><DD><P>pops up a graphical interface with which the user can interactively and comfortably edit the possible options described by <CODE><I>Spec</I></CODE> as described in <A href="node4.html#section.application.specifications">Section 1.3</A>. Returns the options in <CODE><I>R</I></CODE>. </P></DD><DT><CODE>getArgs</CODE> <A name="label9"></A> </DT><DD><BLOCKQUOTE class="synopsis"><P><CODE>{Application<SPAN class="keyword">.</SPAN>getArgs </CODE><CODE>+<I>Spec</I></CODE><CODE> </CODE><CODE>?<I>R</I></CODE><CODE>}</CODE> </P></BLOCKQUOTE></DD><DD><P>This is the recommended way of acquiring an application's arguments. It invokes either <CODE>Application<SPAN class="keyword">.</SPAN>getCmdArgs</CODE> or <CODE>Application<SPAN class="keyword">.</SPAN>getGuiArgs</CODE> depending on the value of boolean property <CODE><SPAN class="string">'application.gui'</SPAN></CODE>. The latter is set to <CODE><SPAN class="keyword">true</SPAN></CODE> when the <CODE>ozengine</CODE> is invoked with option <CODE>--gui</CODE>. </P></DD><DT><CODE>processArgv</CODE> <A name="label11"></A> </DT><DD><BLOCKQUOTE class="synopsis"><P><CODE>{Application<SPAN class="keyword">.</SPAN>processArgv </CODE><CODE>+<I>Spec</I></CODE><CODE> </CODE><CODE>?<I>Ss</I></CODE><CODE>}</CODE> </P></BLOCKQUOTE></DD><DD><P>performs argument parsing on the explicitly given list of strings <CODE><I>Ss</I></CODE> according to specification <CODE><I>Spec</I></CODE>. </P></DD><DT><CODE>processCgiString</CODE> <A name="label13"></A> </DT><DD><BLOCKQUOTE class="synopsis"><P><CODE>{Application<SPAN class="keyword">.</SPAN>processCgiString </CODE><CODE>+<I>Spec</I></CODE><CODE> </CODE><CODE>?<I>S</I></CODE><CODE>}</CODE> </P></BLOCKQUOTE></DD><DD><P>performs argument parsing on the explicitly given CGI query string <CODE><I>S</I></CODE> according to specification <CODE><I>Spec</I></CODE>. </P></DD></DL><P> </P><DIV class="apropos"><P class="margin">Error Handling</P><P> If an error is encountered in the input, an error exception of the form <CODE>ap(usage </CODE><CODE><I>VS</I></CODE><CODE>)</CODE> is raised. <CODE><I>VS</I></CODE> describes the error in textual form. </P></DIV><P> </P><DL><DT><CODE>exit</CODE> <A name="label15"></A> </DT><DD><BLOCKQUOTE class="synopsis"><P><CODE>{Application<SPAN class="keyword">.</SPAN>exit </CODE><CODE>+<I>I</I></CODE><CODE>}</CODE> </P></BLOCKQUOTE></DD><DD><P>terminates the application with return status <CODE><I>I</I></CODE>, <CODE>0</CODE> indicating success and non-<CODE>0</CODE> indicating failure of some kind. </P></DD></DL><P> </P></DIV><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node1.html">- Up -</A></TD><TD><A href="node3.html#section.application.parsingconventions">Next >></A></TD></TR></TABLE><HR><ADDRESS><A href="http://www.ps.uni-sb.de/~duchier/">Denys Duchier</A>, <A href="http://www.ps.uni-sb.de/~kornstae/">Leif Kornstaedt</A>, <A href="http://www.ps.uni-sb.de/~homik/">Martin Homik</A>, <A href="http://www.ps.uni-sb.de/~tmueller/">Tobias Müller</A>, <A href="http://www.ps.uni-sb.de/~schulte/">Christian Schulte</A> and <A href="http://www.info.ucl.ac.be/~pvr">Peter Van Roy</A><BR><SPAN class="version">Version 1.4.0 (20110908185330)</SPAN></ADDRESS></BODY></HTML>
|