<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<section xmlns="http://docbook.org/ns/docbook" version="5.0" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="_rw_x_p_l_o_r_8cpp">
<title>/Users/bernard/b20/bsoft/src/rwimg/rwXPLOR.cpp File Reference</title>
<indexterm><primary>/Users/bernard/b20/bsoft/src/rwimg/rwXPLOR.cpp</primary></indexterm>
<para>

<para>Routines to read and write XPLOR reflection files. </para>
 
</para>
<programlisting>#include &quot;rwXPLOR.h&quot;
#include &quot;linked_list.h&quot;
#include &quot;Complex.h&quot;
#include &quot;utilities.h&quot;
#include &lt;fstream&gt;
</programlisting><simplesect>
    <title>Functions    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_rw_x_p_l_o_r_8cpp_1a5a70ad6f5f0f78040fa56d8a7609298d">readXPLORmap</link> (<link linkend="_class_bimage">Bimage</link> *p, int readdata)</para>
</listitem>
            <listitem><para>int <link linkend="_rw_x_p_l_o_r_8cpp_1a61e0bc4729ce84c096515389c916d48a">readXPLORsf</link> (<link linkend="_class_bimage">Bimage</link> *p, int readdata)</para>
</listitem>
            <listitem><para>int <link linkend="_rw_x_p_l_o_r_8cpp_1aa77b522e24f3bbc5e90c1016158dbb90">writeXPLORmap</link> (<link linkend="_class_bimage">Bimage</link> *p)</para>
</listitem>
            <listitem><para>int <link linkend="_rw_x_p_l_o_r_8cpp_1a11fb2a67e6cd33e6092d4217d2f97d1c">writeXPLORsf</link> (<link linkend="_class_bimage">Bimage</link> *p)</para>
</listitem>
            <listitem><para>int <link linkend="_rw_x_p_l_o_r_8cpp_1a7482bde9c16924abb86863a731afa8dc">readXPLOR</link> (<link linkend="_class_bimage">Bimage</link> *p, int readdata)</para>

<para>Reading a XPLOR map or structure factor file format. A minimal implementation. </para>
</listitem>
            <listitem><para>int <link linkend="_rw_x_p_l_o_r_8cpp_1a5ae7023cb18c24b26bf6d6edbee87152">writeXPLOR</link> (<link linkend="_class_bimage">Bimage</link> *p)</para>

<para>Writing a XPLOR map or structure factor file format. A text format used in X-ray crystallography. </para>
</listitem>
        </itemizedlist>
</simplesect>
<simplesect>
    <title>Variables    </title>
        <itemizedlist>
            <listitem><para>int <link linkend="_rw_x_p_l_o_r_8cpp_1a0b2caeb4b6f130be43e5a2f0267dd453">verbose</link></para>
</listitem>
        </itemizedlist>
</simplesect>
<section>
<title>Detailed Description</title>

<para>Routines to read and write XPLOR reflection files. </para>

<para><formalpara><title>Author: </title>

<para>Bernard Heymann </para>
</formalpara>
<formalpara><title>Date: </title>

<para>Created: 19981229 </para>

<para>Modified: 20130429 </para>
</formalpara>
</para>
</section>
<section>
<title>Function Documentation</title>
<anchor xml:id="_rw_x_p_l_o_r_8cpp_1a7482bde9c16924abb86863a731afa8dc"/>    <section>
    <title>readXPLOR()</title>
<indexterm><primary>readXPLOR</primary><secondary>rwXPLOR.cpp</secondary></indexterm>
<indexterm><primary>rwXPLOR.cpp</primary><secondary>readXPLOR</secondary></indexterm>
<para><computeroutput>int readXPLOR (<link linkend="_class_bimage">Bimage</link> * p, int readdata)</computeroutput></para><para>

<para>Reading a XPLOR map or structure factor file format. A minimal implementation. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>*p</entry>
                                <entry>
<para>the image structure. </para>
</entry>
                            </row>
                            <row>
                                <entry>readdata</entry>
                                <entry>
<para>flag to activate reading of image data. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int error code (&lt;0 means failure). </para>
</formalpara>
</para>
<para>
Definition at line 32 of file rwXPLOR.cpp.</para>
    </section><anchor xml:id="_rw_x_p_l_o_r_8cpp_1a5a70ad6f5f0f78040fa56d8a7609298d"/>    <section>
    <title>readXPLORmap()</title>
<indexterm><primary>readXPLORmap</primary><secondary>rwXPLOR.cpp</secondary></indexterm>
<indexterm><primary>rwXPLOR.cpp</primary><secondary>readXPLORmap</secondary></indexterm>
<para><computeroutput>int readXPLORmap (<link linkend="_class_bimage">Bimage</link> * p, int readdata)</computeroutput></para><para>
Definition at line 51 of file rwXPLOR.cpp.</para>
    </section><anchor xml:id="_rw_x_p_l_o_r_8cpp_1a61e0bc4729ce84c096515389c916d48a"/>    <section>
    <title>readXPLORsf()</title>
<indexterm><primary>readXPLORsf</primary><secondary>rwXPLOR.cpp</secondary></indexterm>
<indexterm><primary>rwXPLOR.cpp</primary><secondary>readXPLORsf</secondary></indexterm>
<para><computeroutput>int readXPLORsf (<link linkend="_class_bimage">Bimage</link> * p, int readdata)</computeroutput></para><para>
Definition at line 136 of file rwXPLOR.cpp.</para>
    </section><anchor xml:id="_rw_x_p_l_o_r_8cpp_1a5ae7023cb18c24b26bf6d6edbee87152"/>    <section>
    <title>writeXPLOR()</title>
<indexterm><primary>writeXPLOR</primary><secondary>rwXPLOR.cpp</secondary></indexterm>
<indexterm><primary>rwXPLOR.cpp</primary><secondary>writeXPLOR</secondary></indexterm>
<para><computeroutput>int writeXPLOR (<link linkend="_class_bimage">Bimage</link> * p)</computeroutput></para><para>

<para>Writing a XPLOR map or structure factor file format. A text format used in X-ray crystallography. </para>
</para>

<para>
                <formalpara>
                    <title>
Parameters                    </title>
                    <para>
                    <table frame="all">
                        <tgroup cols="2" align="left" colsep="1" rowsep="1">
                        <colspec colwidth="1*"/>
                        <colspec colwidth="4*"/>
                        <tbody>
                            <row>
                                <entry>*p</entry>
                                <entry>
<para>the image structure. </para>
</entry>
                            </row>
                        </tbody>
                        </tgroup>
                    </table>
                    </para>
                </formalpara>
                <formalpara><title>Returns: </title>

<para>int error code (&lt;0 means failure). </para>
</formalpara>
</para>
<para>
Definition at line 221 of file rwXPLOR.cpp.</para>
    </section><anchor xml:id="_rw_x_p_l_o_r_8cpp_1aa77b522e24f3bbc5e90c1016158dbb90"/>    <section>
    <title>writeXPLORmap()</title>
<indexterm><primary>writeXPLORmap</primary><secondary>rwXPLOR.cpp</secondary></indexterm>
<indexterm><primary>rwXPLOR.cpp</primary><secondary>writeXPLORmap</secondary></indexterm>
<para><computeroutput>int writeXPLORmap (<link linkend="_class_bimage">Bimage</link> * p)</computeroutput></para><para>
Definition at line 238 of file rwXPLOR.cpp.</para>
    </section><anchor xml:id="_rw_x_p_l_o_r_8cpp_1a11fb2a67e6cd33e6092d4217d2f97d1c"/>    <section>
    <title>writeXPLORsf()</title>
<indexterm><primary>writeXPLORsf</primary><secondary>rwXPLOR.cpp</secondary></indexterm>
<indexterm><primary>rwXPLOR.cpp</primary><secondary>writeXPLORsf</secondary></indexterm>
<para><computeroutput>int writeXPLORsf (<link linkend="_class_bimage">Bimage</link> * p)</computeroutput></para><para>
Definition at line 304 of file rwXPLOR.cpp.</para>
</section>
</section>
<section>
<title>Variable Documentation</title>
<anchor xml:id="_rw_x_p_l_o_r_8cpp_1a0b2caeb4b6f130be43e5a2f0267dd453"/>    <section>
    <title>verbose</title>
<indexterm><primary>verbose</primary><secondary>rwXPLOR.cpp</secondary></indexterm>
<indexterm><primary>rwXPLOR.cpp</primary><secondary>verbose</secondary></indexterm>
<para><computeroutput>int verbose</computeroutput></para></section>
</section>
</section>
