You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Kooky/doxygen/xml/cimportinterface_8cpp.xml

111 lines
8.9 KiB
XML

<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.11">
<compounddef id="cimportinterface_8cpp" kind="file" language="C++">
<compoundname>cimportinterface.cpp</compoundname>
<includes refid="cimportinterface_8h" local="yes">cimportinterface.h</includes>
<incdepgraph>
<node id="814">
<label>QMap</label>
</node>
<node id="804">
<label>Kooky/cimportinterface.cpp</label>
<link refid="cimportinterface.cpp"/>
<childnode refid="805" relation="include">
</childnode>
</node>
<node id="805">
<label>cimportinterface.h</label>
<link refid="cimportinterface_8h"/>
<childnode refid="806" relation="include">
</childnode>
<childnode refid="811" relation="include">
</childnode>
<childnode refid="812" relation="include">
</childnode>
<childnode refid="808" relation="include">
</childnode>
<childnode refid="813" relation="include">
</childnode>
<childnode refid="814" relation="include">
</childnode>
</node>
<node id="812">
<label>QtPlugin</label>
</node>
<node id="806">
<label>cingredient.h</label>
<link refid="cingredient_8h"/>
<childnode refid="807" relation="include">
</childnode>
<childnode refid="808" relation="include">
</childnode>
<childnode refid="809" relation="include">
</childnode>
<childnode refid="810" relation="include">
</childnode>
</node>
<node id="810">
<label>QDomDocument</label>
</node>
<node id="807">
<label>QDate</label>
</node>
<node id="811">
<label>cInterface.h</label>
<link refid="c_interface_8h"/>
<childnode refid="808" relation="include">
</childnode>
</node>
<node id="808">
<label>QString</label>
</node>
<node id="809">
<label>QFile</label>
</node>
<node id="813">
<label>QStringList</label>
</node>
</incdepgraph>
<briefdescription>
</briefdescription>
<detaileddescription>
</detaileddescription>
<programlisting>
<codeline lineno="1"><highlight class="preprocessor">#include<sp/>&quot;<ref refid="cimportinterface_8h" kindref="compound">cimportinterface.h</ref>&quot;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="2"><highlight class="normal"></highlight></codeline>
<codeline lineno="3"><highlight class="normal"></highlight></codeline>
<codeline lineno="4" refid="classc_import_interface_1a1d31c90d6ef27a2b9edfb99e655120ea" refkind="member"><highlight class="normal">QString<sp/><ref refid="classc_import_interface_1a1d31c90d6ef27a2b9edfb99e655120ea" kindref="member">cImportInterface::group</ref>(<ref refid="classc_ingredient_1acf023723841ec66cd6368a25e3174a28" kindref="member">cIngredient::iIngredient</ref><sp/>i)</highlight></codeline>
<codeline lineno="5"><highlight class="normal">{</highlight></codeline>
<codeline lineno="6"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(<ref refid="classc_ingredient_1aa0da12658feecfd205c20e3a0335e9b0" kindref="member">cIngredient::group</ref>(i));</highlight></codeline>
<codeline lineno="7"><highlight class="normal">}</highlight></codeline>
<codeline lineno="8"><highlight class="normal"></highlight></codeline>
<codeline lineno="9" refid="classc_import_interface_1a685fafcac4d7194045e6c9e2d84d7981" refkind="member"><highlight class="normal">QString<sp/><ref refid="classc_import_interface_1a685fafcac4d7194045e6c9e2d84d7981" kindref="member">cImportInterface::name</ref>(<ref refid="classc_ingredient_1acf023723841ec66cd6368a25e3174a28" kindref="member">cIngredient::iIngredient</ref><sp/>i)</highlight></codeline>
<codeline lineno="10"><highlight class="normal">{</highlight></codeline>
<codeline lineno="11"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(<ref refid="classc_ingredient_1a64d6e9c85a6b1527de28ed1f1185be29" kindref="member">cIngredient::name</ref>(i));</highlight></codeline>
<codeline lineno="12"><highlight class="normal">}</highlight></codeline>
<codeline lineno="13"><highlight class="normal"></highlight></codeline>
<codeline lineno="14" refid="classc_import_interface_1a272c43d684b605f36d36cb20e4039d94" refkind="member"><highlight class="normal">QString<sp/><ref refid="classc_import_interface_1a272c43d684b605f36d36cb20e4039d94" kindref="member">cImportInterface::valueStr</ref>(<ref refid="classc_ingredient_1acf023723841ec66cd6368a25e3174a28" kindref="member">cIngredient::iIngredient</ref><sp/>i)</highlight></codeline>
<codeline lineno="15"><highlight class="normal">{</highlight></codeline>
<codeline lineno="16"><highlight class="normal"><sp/><sp/><sp/><sp/>qreal<sp/><sp/><sp/>dValue<sp/><sp/>=<sp/><ref refid="classc_import_interface_1a7a8dbe6a164549272d748d2f77aebc42" kindref="member">value</ref>(i);</highlight></codeline>
<codeline lineno="17"><highlight class="normal"><sp/><sp/><sp/><sp/>QString<sp/>strValue;</highlight></codeline>
<codeline lineno="18"><highlight class="normal"></highlight></codeline>
<codeline lineno="19"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal">(i<sp/>==<sp/><ref refid="classc_ingredient_1acf023723841ec66cd6368a25e3174a28a910139fbdcbe825cbd17ab1f8d98bda1" kindref="member">cIngredient::iIngredientCalories</ref>)</highlight></codeline>
<codeline lineno="20"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>strValue<sp/><sp/><sp/><sp/>=<sp/>QString(</highlight><highlight class="stringliteral">&quot;%1<sp/>kcal&quot;</highlight><highlight class="normal">).arg(dValue);</highlight></codeline>
<codeline lineno="21"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal">(i<sp/>==<sp/><ref refid="classc_ingredient_1acf023723841ec66cd6368a25e3174a28a48d0fa4c3d86c962711ea0ded41e7a93" kindref="member">cIngredient::iIngredientJoule</ref>)</highlight></codeline>
<codeline lineno="22"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>strValue<sp/><sp/><sp/><sp/>=<sp/>QString(</highlight><highlight class="stringliteral">&quot;%1<sp/>kJ&quot;</highlight><highlight class="normal">).arg(dValue);</highlight></codeline>
<codeline lineno="23"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/>{</highlight></codeline>
<codeline lineno="25"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal">(dValue<sp/>&lt;<sp/>0.001)</highlight></codeline>
<codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>strValue<sp/><sp/><sp/><sp/>=<sp/>QString(</highlight><highlight class="stringliteral">&quot;%1<sp/>µg&quot;</highlight><highlight class="normal">).arg(dValue*1000000);</highlight></codeline>
<codeline lineno="27"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal">(dValue<sp/>&lt;<sp/>1.0)</highlight></codeline>
<codeline lineno="28"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>strValue<sp/><sp/><sp/><sp/>=<sp/>QString(</highlight><highlight class="stringliteral">&quot;%1<sp/>mg&quot;</highlight><highlight class="normal">).arg(dValue*1000);</highlight></codeline>
<codeline lineno="29"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="30"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>strValue<sp/><sp/><sp/><sp/>=<sp/>QString(</highlight><highlight class="stringliteral">&quot;%1<sp/>g&quot;</highlight><highlight class="normal">).arg(dValue);</highlight></codeline>
<codeline lineno="31"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
<codeline lineno="32"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(strValue);</highlight></codeline>
<codeline lineno="33"><highlight class="normal">}</highlight></codeline>
</programlisting>
<location file="Kooky/cimportinterface.cpp"/>
</compounddef>
</doxygen>