OSDN Git Service

Fixed some more level #4 warnings in Debug build.
[mutilities/MUtilities.git] / README.html
1 <!DOCTYPE html>
2 <html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
3 <head>
4   <meta charset="utf-8" />
5   <meta name="generator" content="pandoc" />
6   <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
7   <meta name="author" content="Created by LoRd_MuldeR &lt;mulder2@gmx&gt; – check http://muldersoft.com/ for news and updates!" />
8   <title>MUtilities – README</title>
9   <style>
10     code{white-space: pre-wrap;}
11     span.smallcaps{font-variant: small-caps;}
12     span.underline{text-decoration: underline;}
13     div.column{display: inline-block; vertical-align: top; width: 50%;}
14     div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
15     ul.task-list{list-style: none;}
16   </style>
17   <!--[if lt IE 9]>
18     <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
19   <![endif]-->
20   <style type="text/css">
21   <!--
22     body { font-family: "Times New Roman", Times, serif; color: #000000; background-color: #FFFFFF; }
23     p { text-align: justify; }
24     tt, pre, code { font-family: Courier New, Courier, mono; background-color: #EDF3F7; padding: 1px; }
25     h1:not(.title) { margin-top: 2.25em; }
26     h2:not(.author) { margin-top: 2.0em; }
27     h3, h4 { margin-top: 1.75em; }
28     a { color: #0000BB; text-decoration: none; }
29     a:visited { color: #0000BB; text-decoration: none; }
30     a:active { color: #0000FF; text-decoration: none; }
31     a:hover { color: #0000FF; text-decoration: underline; }
32     img { margin-bottom: 0.75em; }
33     ul, ol  { margin-bottom: 2.0em; }
34     li>ul, li>ol  { margin-bottom: 0em; }
35   -->
36   </style>
37 </head>
38 <body>
39 <header id="title-block-header">
40 <h1 class="title">MUtilities – README</h1>
41 <p class="author">Created by LoRd_MuldeR &lt;<a href="mailto:mulder2@gmx" class="email">mulder2@gmx</a>&gt; – check <a href="http://muldersoft.com/" class="uri">http://muldersoft.com/</a> for news and updates!</p>
42 </header>
43 <nav id="TOC" role="doc-toc">
44 <ul>
45 <li><a href="#introduction"><span class="toc-section-number">1</span> Introduction</a></li>
46 <li><a href="#project-structure"><span class="toc-section-number">2</span> Project Structure</a></li>
47 <li><a href="#example"><span class="toc-section-number">3</span> Example</a>
48 <ul>
49 <li><a href="#build-notes"><span class="toc-section-number">3.1</span> Build Notes</a></li>
50 </ul></li>
51 <li><a href="#api-documentation"><span class="toc-section-number">4</span> API Documentation</a></li>
52 <li><a href="#license"><span class="toc-section-number">5</span> License</a></li>
53 <li><a href="#acknowledgement"><span class="toc-section-number">6</span> Acknowledgement</a></li>
54 </ul>
55 </nav>
56 <h1 data-number="1" id="introduction"><span class="header-section-number">1</span> Introduction</h1>
57 <p>The <strong>MUtilities</strong> library is a collection of routines and classes to extend the <a href="http://qt-project.org/"><em>Qt cross-platform framework</em></a>. It contains various convenience and utility functions as well as wrappers for OS-specific functionalities. The library was originally created as a "side product" of the <a href="http://lamexp.sourceforge.net/"><strong>LameXP</strong></a> application: Over the years, a lot of code, <strong>not</strong> really specific to <em>LameXP</em>, had accumulated in the <em>LameXP</em> code base. Some of that code even had been used in other projects too, in a "copy &amp; paste" fashion – which had lead to redundancy and much complicated maintenance. In order to clean-up the LameXP code base, to eliminate the ugly redundancy and to simplify maintenance, the code in question has finally been refactored into the <strong>MUtilities</strong> (aka "MuldeR's Utilities for Qt") library. This library now forms the foundation of <em>LameXP</em> and <a href="https://github.com/lordmulder"><em>other OpenSource projects</em></a>.</p>
58 <h1 data-number="2" id="project-structure"><span class="header-section-number">2</span> Project Structure</h1>
59 <p>The <em>MUtilities</em> project directory is organized as follows:</p>
60 <ul>
61 <li><code>bin/</code> – compiled library files (static or shared), link those files in projects that use the MUtilities library</li>
62 <li><code>docs/</code> – programming interface documentation, generated with Doxygen tool</li>
63 <li><code>etc/</code> – miscellaneous files, everything that doesn't fit in anywhere else</li>
64 <li><code>include/</code> – public header files, include this directory in projects that use the MUtilities library</li>
65 <li><code>obj/</code> – object code files, intermediate files generated during the build process</li>
66 <li><code>res/</code> – resource files, required for building the MUtilities library</li>
67 <li><code>src/</code> – source code files, required for building the MUtilities library (third-party code in <code>src/3rd_party/</code>)</li>
68 <li><code>test/</code> – unit tests, based on Google Test framework</li>
69 <li><code>tmp/</code> – temporary files, automatically generated during the build process</li>
70 </ul>
71 <h1 data-number="3" id="example"><span class="header-section-number">3</span> Example</h1>
72 <p>Here is a minimal example on how to use the <em>MUtilities</em> library in your project:</p>
73 <pre><code>//MUtils
74 #include &lt;MUtils/Global.h&gt;
75
76 int main(int argc, char **argv)
77 {
78     qDebug(&quot;Random number: %u\n&quot;, MUtils::next_rand_u32());
79 }</code></pre>
80 <h2 data-number="3.1" id="build-notes"><span class="header-section-number">3.1</span> Build Notes</h2>
81 <ul>
82 <li>In order to use the <em>MUtilities</em> library in your project, your build environment must have already been set up for building Qt-based projects. Setting up Qt is <em>not</em> covered by this document.</li>
83 <li>Additionally, make sure that <em>MUtilities'</em> <code>include/</code> directory is contained in your "Additional Include Directories" and that the <em>MUtilities'</em> <code>bin/</code> directory is contained in your "Additional Library Directories".</li>
84 <li>Finally, make sure that your project links against the <code>MUtils32-1.lib</code> library file. For each build configuration, pick the proper <strong>.lib</strong> file from the corresponding <code>bin/&lt;platform&gt;/&lt;config&gt;/</code> directory!</li>
85 <li>If your projects intends to use the <em>MUtilities</em> library as a <strong>static</strong> library, then the macro <code>MUTILS_STATIC_LIB</code> <em>must</em> be added to your project's "Preprocessor Definitions".</li>
86 </ul>
87 <h1 data-number="4" id="api-documentation"><span class="header-section-number">4</span> API Documentation</h1>
88 <p>A fully-fledged documentation of the <em>MUtilities</em> programming interface (API) is available thanks to <a href="http://www.stack.nl/~dimitri/doxygen/"><em>Doxygen</em></a>. Please see <a href="docs/index.html"><strong><code>docs/index.html</code></strong></a> for details!</p>
89 <h1 data-number="5" id="license"><span class="header-section-number">5</span> License</h1>
90 <p>This library is free software. It is released under the terms of the <a href="https://www.gnu.org/licenses/lgpl-2.1.html"><em>GNU Lesser General Public License (LGPL), Version 2.1</em></a>.</p>
91 <pre><code>MUtilities - MuldeR&#39;s Utilities for Qt
92 Copyright (C) 2004-2021 LoRd_MuldeR &lt;MuldeR2@GMX.de&gt;. Some rights reserved.
93
94 This library is free software; you can redistribute it and/or
95 modify it under the terms of the GNU Lesser General Public
96 License as published by the Free Software Foundation; either
97 version 2.1 of the License, or (at your option) any later version.
98
99 This library is distributed in the hope that it will be useful,
100 but WITHOUT ANY WARRANTY; without even the implied warranty of
101 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
102 Lesser General Public License for more details.
103
104 You should have received a copy of the GNU Lesser General Public
105 License along with this library; if not, write to the Free Software
106 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA.</code></pre>
107 <h1 data-number="6" id="acknowledgement"><span class="header-section-number">6</span> Acknowledgement</h1>
108 <p>The following people have contributed in the development of the MUtilities library:</p>
109 <ul>
110 <li><strong>John Buonagurio &lt;<a href="mailto:jbuonagurio@exponent.com" class="email">jbuonagurio@exponent.com</a>&gt;</strong><br />
111 Support for Qt5</li>
112 </ul>
113 <p>The following third-party code is used in the MUtilities library:</p>
114 <ul>
115 <li><p><strong>Keccak/SHA-3 Reference Implementation</strong><br />
116 Implementation by the Keccak, Keyak and Ketje Teams, namely, Guido Bertoni, Joan Daemen, Michaël Peeters, Gilles Van Assche and Ronny Van Keer<br />
117 No Copyright / Dedicated to the Public Domain</p></li>
118 <li><p><strong>Natural Order String Comparison</strong><br />
119 Copyright (C) 2000, 2004 by Martin Pool &lt;<a href="mailto:mbp@sourcefrog.net" class="email">mbp@sourcefrog.net</a>&gt;<br />
120 Released under the zlib License</p></li>
121 <li><p><strong>Adler-32 Checksum Algorithm (from zlib)</strong><br />
122 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler<br />
123 Released under the zlib License</p></li>
124 </ul>
125 <p> </p>
126 <p><strong>e.o.f.</strong></p>
127 </body>
128 </html>