|
| 1 | +<?xml version='1.0' encoding='UTF-8' standalone='no'?> |
| 2 | +<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="_ARGXAddError_8h" xml:lang="en-US"> |
| 3 | +<title>inc/ARGXAddError.h File Reference</title> |
| 4 | +<indexterm><primary>inc/ARGXAddError.h</primary></indexterm> |
| 5 | +<programlisting linenumbering="unnumbered">#include "types.h"<?linebreak?></programlisting><simplesect> |
| 6 | + <title>Data Structures </title> |
| 7 | + <itemizedlist> |
| 8 | + <listitem><para>struct <link linkend="_structArgxcErrorPair">ArgxcErrorPair</link></para> |
| 9 | +</listitem> |
| 10 | + </itemizedlist> |
| 11 | +</simplesect> |
| 12 | +<simplesect> |
| 13 | + <title>Functions </title> |
| 14 | + <itemizedlist> |
| 15 | + <listitem><para><link linkend="_structArgxcError">ArgxcError</link> <link linkend="_ARGXAddError_8h_1a8c4ee33ae3d4a6208322ad503dceca9e">argxcCreateErrorSimple</link> (const char *msg, const char *help)</para> |
| 16 | +</listitem> |
| 17 | + <listitem><para>int <link linkend="_ARGXAddError_8h_1a038539b9defbaf62f7a175d75388866d">argxcGetErrorCode</link> (const <link linkend="_structArgxcError">ArgxcError</link> *error)</para> |
| 18 | +</listitem> |
| 19 | + <listitem><para>const char * <link linkend="_ARGXAddError_8h_1a82d77328ff61877b8ab10d054bc5ced4">argxcGetErrorHelp</link> (const <link linkend="_structArgxcError">ArgxcError</link> *error)</para> |
| 20 | +</listitem> |
| 21 | + <listitem><para>const char * <link linkend="_ARGXAddError_8h_1a9e0ec52023e67e806606050d12a934a8">argxcGetErrorMessage</link> (const <link linkend="_structArgxcError">ArgxcError</link> *error)</para> |
| 22 | +</listitem> |
| 23 | + <listitem><para><link linkend="_structArgxcErrorPair">ArgxcErrorPair</link> <link linkend="_ARGXAddError_8h_1ae080742df3abdaba51a357b9c68775dd">argxcGetErrorPair</link> (const <link linkend="_structArgxcError">ArgxcError</link> *error)</para> |
| 24 | +</listitem> |
| 25 | + </itemizedlist> |
| 26 | +</simplesect> |
| 27 | +<section> |
| 28 | +<title>Function Documentation</title> |
| 29 | +<anchor xml:id="_ARGXAddError_8h_1a8c4ee33ae3d4a6208322ad503dceca9e"/><section> |
| 30 | + <title>argxcCreateErrorSimple()</title> |
| 31 | +<indexterm><primary>argxcCreateErrorSimple</primary><secondary>ARGXAddError.h</secondary></indexterm> |
| 32 | +<indexterm><primary>ARGXAddError.h</primary><secondary>argxcCreateErrorSimple</secondary></indexterm> |
| 33 | +<para><computeroutput><link linkend="_structArgxcError">ArgxcError</link> argxcCreateErrorSimple (const char * msg, const char * help)</computeroutput></para><para> |
| 34 | +Definition at line <link linkend="_ARGXAddError_8c_source_1l00019">19</link> of file <link linkend="_ARGXAddError_8c_source">ARGXAddError.c</link>.</para> |
| 35 | +<programlisting linenumbering="unnumbered">00020 { |
| 36 | +00021     <link linkend="_structArgxcError">ArgxcError</link> error = {0}; |
| 37 | +00022 |
| 38 | +00023     error.<link linkend="_structArgxcError_1ab4531054aa9750f66f0cae13f67365ad">type</link> = <link linkend="_ARGXAddError_8c_1a814b3298d81b070e52a987654d18d8a2">stringDuplicate</link>(<emphasis role="stringliteral">"error"</emphasis>); |
| 39 | +00024     error.<link linkend="_structArgxcError_1a88d100236636b2eb326025d527ad26f3">error</link> = <link linkend="_ARGXAddError_8c_1a814b3298d81b070e52a987654d18d8a2">stringDuplicate</link>(msg); |
| 40 | +00025     error.<link linkend="_structArgxcError_1a9e83392469b228017a3b6492392f68ad">help</link> = <link linkend="_ARGXAddError_8c_1a814b3298d81b070e52a987654d18d8a2">stringDuplicate</link>(help); |
| 41 | +00026     error.<link linkend="_structArgxcError_1a617299f808dff4b2656bf04384e64bf9">code</link> = 1; <emphasis role="comment">// Default error code</emphasis> |
| 42 | +00027 |
| 43 | +00028     <emphasis role="keywordflow">return</emphasis> error; |
| 44 | +00029 } |
| 45 | +</programlisting><para> |
| 46 | +References <link linkend="_types_8h_source_1l00019">ArgxcError::code</link>, <link linkend="_types_8h_source_1l00017">ArgxcError::error</link>, <link linkend="_types_8h_source_1l00018">ArgxcError::help</link>, <link linkend="_ARGXAddError_8c_source_1l00007">stringDuplicate()</link>, and <link linkend="_types_8h_source_1l00016">ArgxcError::type</link>.</para> |
| 47 | +</section> |
| 48 | +<anchor xml:id="_ARGXAddError_8h_1a038539b9defbaf62f7a175d75388866d"/><section> |
| 49 | + <title>argxcGetErrorCode()</title> |
| 50 | +<indexterm><primary>argxcGetErrorCode</primary><secondary>ARGXAddError.h</secondary></indexterm> |
| 51 | +<indexterm><primary>ARGXAddError.h</primary><secondary>argxcGetErrorCode</secondary></indexterm> |
| 52 | +<para><computeroutput>int argxcGetErrorCode (const <link linkend="_structArgxcError">ArgxcError</link> * error)</computeroutput></para><para> |
| 53 | +Definition at line <link linkend="_ARGXAddError_8c_source_1l00041">41</link> of file <link linkend="_ARGXAddError_8c_source">ARGXAddError.c</link>.</para> |
| 54 | +<programlisting linenumbering="unnumbered">00042 { |
| 55 | +00043     <emphasis role="keywordflow">return</emphasis> error ? error-><link linkend="_structArgxcError_1a617299f808dff4b2656bf04384e64bf9">code</link> : 0; |
| 56 | +00044 } |
| 57 | +</programlisting><para> |
| 58 | +References <link linkend="_types_8h_source_1l00019">ArgxcError::code</link>.</para> |
| 59 | +</section> |
| 60 | +<anchor xml:id="_ARGXAddError_8h_1a82d77328ff61877b8ab10d054bc5ced4"/><section> |
| 61 | + <title>argxcGetErrorHelp()</title> |
| 62 | +<indexterm><primary>argxcGetErrorHelp</primary><secondary>ARGXAddError.h</secondary></indexterm> |
| 63 | +<indexterm><primary>ARGXAddError.h</primary><secondary>argxcGetErrorHelp</secondary></indexterm> |
| 64 | +<para><computeroutput>const char * argxcGetErrorHelp (const <link linkend="_structArgxcError">ArgxcError</link> * error)</computeroutput></para><para> |
| 65 | +Definition at line <link linkend="_ARGXAddError_8c_source_1l00036">36</link> of file <link linkend="_ARGXAddError_8c_source">ARGXAddError.c</link>.</para> |
| 66 | +<programlisting linenumbering="unnumbered">00037 { |
| 67 | +00038     <emphasis role="keywordflow">return</emphasis> error ? error-><link linkend="_structArgxcError_1a9e83392469b228017a3b6492392f68ad">help</link> : NULL; |
| 68 | +00039 } |
| 69 | +</programlisting><para> |
| 70 | +References <link linkend="_types_8h_source_1l00018">ArgxcError::help</link>.</para> |
| 71 | +</section> |
| 72 | +<anchor xml:id="_ARGXAddError_8h_1a9e0ec52023e67e806606050d12a934a8"/><section> |
| 73 | + <title>argxcGetErrorMessage()</title> |
| 74 | +<indexterm><primary>argxcGetErrorMessage</primary><secondary>ARGXAddError.h</secondary></indexterm> |
| 75 | +<indexterm><primary>ARGXAddError.h</primary><secondary>argxcGetErrorMessage</secondary></indexterm> |
| 76 | +<para><computeroutput>const char * argxcGetErrorMessage (const <link linkend="_structArgxcError">ArgxcError</link> * error)</computeroutput></para><para> |
| 77 | +Definition at line <link linkend="_ARGXAddError_8c_source_1l00031">31</link> of file <link linkend="_ARGXAddError_8c_source">ARGXAddError.c</link>.</para> |
| 78 | +<programlisting linenumbering="unnumbered">00032 { |
| 79 | +00033     <emphasis role="keywordflow">return</emphasis> error ? error-><link linkend="_structArgxcError_1a88d100236636b2eb326025d527ad26f3">error</link> : NULL; |
| 80 | +00034 } |
| 81 | +</programlisting><para> |
| 82 | +References <link linkend="_types_8h_source_1l00017">ArgxcError::error</link>.</para> |
| 83 | +</section> |
| 84 | +<anchor xml:id="_ARGXAddError_8h_1ae080742df3abdaba51a357b9c68775dd"/><section> |
| 85 | + <title>argxcGetErrorPair()</title> |
| 86 | +<indexterm><primary>argxcGetErrorPair</primary><secondary>ARGXAddError.h</secondary></indexterm> |
| 87 | +<indexterm><primary>ARGXAddError.h</primary><secondary>argxcGetErrorPair</secondary></indexterm> |
| 88 | +<para><computeroutput><link linkend="_structArgxcErrorPair">ArgxcErrorPair</link> argxcGetErrorPair (const <link linkend="_structArgxcError">ArgxcError</link> * error)</computeroutput></para><para> |
| 89 | +Definition at line <link linkend="_ARGXAddError_8c_source_1l00046">46</link> of file <link linkend="_ARGXAddError_8c_source">ARGXAddError.c</link>.</para> |
| 90 | +<programlisting linenumbering="unnumbered">00047 { |
| 91 | +00048     <link linkend="_structArgxcErrorPair">ArgxcErrorPair</link> pair = {NULL, NULL}; |
| 92 | +00049 |
| 93 | +00050     <emphasis role="keywordflow">if</emphasis> (error) |
| 94 | +00051     { |
| 95 | +00052         pair.<link linkend="_structArgxcErrorPair_1a548e70442f749cb33bf853987bbb2707">error</link> = error-><link linkend="_structArgxcError_1a88d100236636b2eb326025d527ad26f3">error</link>; |
| 96 | +00053         pair.<link linkend="_structArgxcErrorPair_1ab7a2046f22e6b8a74ca323b985cee6ce">help</link> = error-><link linkend="_structArgxcError_1a9e83392469b228017a3b6492392f68ad">help</link>; |
| 97 | +00054     } |
| 98 | +00055 |
| 99 | +00056     <emphasis role="keywordflow">return</emphasis> pair; |
| 100 | +00057 } |
| 101 | +</programlisting><para> |
| 102 | +References <link linkend="_types_8h_source_1l00017">ArgxcError::error</link>, <link linkend="_ARGXAddError_8h_source_1l00016">ArgxcErrorPair::error</link>, <link linkend="_types_8h_source_1l00018">ArgxcError::help</link>, and <link linkend="_ARGXAddError_8h_source_1l00017">ArgxcErrorPair::help</link>.</para> |
| 103 | +</section> |
| 104 | +</section> |
| 105 | +</section> |
0 commit comments