first commit

This commit is contained in:
bing
2026-04-03 11:32:07 +08:00
commit 003be19522
1142 changed files with 185854 additions and 0 deletions

493
doc/qxorm_fr/customer.html Normal file
View File

@@ -0,0 +1,493 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>QxOrm : C++ Qt ORM Object Relational Mapping database library - QxEntityEditor : C++ Qt entities graphic
editor (data model designer and source code generator)</title>
<link rel='stylesheet' type='text/css' href='./resource/qxorm_style.css'>
<script type="text/javascript" src="./resource/jquery.min.js"></script>
<script type="text/javascript" src="./resource/qxorm_script.js"></script>
</head>
<body>
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td><a href="./home.html"><img alt="QxOrm" src="./resource/logo_qxorm_and_qxee.png" align="left"
border="0"></a></td>
<td align="right" style="vertical-align:bottom">
<div id="qx_search">
<gcse:search></gcse:search>
</div>
</td>
<td width="15"></td>
<td align="right" style="vertical-align:bottom">
<img alt="Windows" src="./resource/logo_windows.gif" width="35" height="35">
<img alt="Linux" src="./resource/logo_linux.gif" width="35" height="35">
<img alt="Macintosh" src="./resource/logo_mac.gif" width="35" height="35">
</td>
<td width="70"><img alt="C++" src="./resource/logo_cpp.gif" width="50" height="50" align="right"></td>
</tr>
</tbody>
</table>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td align="center"><a href="./home.html" class="btn_nav">Accueil</a></td>
<td align="center"><a href="./download.html" class="btn_nav">T<EFBFBD>l<EFBFBD>chargement</a></td>
<td align="center"><a href="./quick_sample.html" class="btn_nav">Exemple rapide</a></td>
<td align="center" onmouseover="showHideElementById('menu_tuto', true);"
onmouseout="showHideElementById('menu_tuto', false);">
<a href="./tutorial.html" class="btn_nav">Tutoriel (4)</a>
<table class="table_menu_tuto">
<tbody>
<tr>
<td>
<div id="menu_tuto" class="div_menu_tuto">
<a href="./tutorial_3.html" class="btn_sub_menu">install QxOrm</a><br />
<a href="./tutorial.html" class="btn_sub_menu">qxBlog</a><br />
<a href="./tutorial_2.html" class="btn_sub_menu">qxClientServer</a><br />
<a href="./tutorial_4.html" class="btn_sub_menu">QxEntityEditor videos</a>
</div>
</td>
</tr>
</tbody>
</table>
</td>
<td align="center" onmouseover="showHideElementById('menu_manual', true);"
onmouseout="showHideElementById('menu_manual', false);">
<a href="./manual.html" class="btn_nav">Manuel (2)</a>
<table class="table_menu_manual">
<tbody>
<tr>
<td>
<div id="menu_manual" class="div_menu_manual">
<a href="./manual.html" class="btn_sub_menu">Manuel QxOrm</a><br />
<a href="./manual_qxee.html" class="btn_sub_menu">Manuel QxEntityEditor</a><br />
</div>
</td>
</tr>
</tbody>
</table>
</td>
<td align="center"><a href="./link.html" class="btn_nav">Forum</a></td>
<td align="center"><a href="./customer.html" class="btn_nav">Nos clients</a></td>
</tr>
</tbody>
</table>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxOrm &gt;&gt; Nos clients</font>
</td>
<td align="right" valign="top">
<table cellspacing="0" cellpadding="1">
<col>
<col>
<tbody>
<tr>
<td align="right" valign="top">
<font size="2" class="txt_with_shadow">Version courante :&nbsp;</font>
</td>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxOrm 1.5.0 - <a href="../doxygen/index.html"
target="_blank">documentation en ligne de la biblioth<74>que QxOrm</a> - <a
href="https://github.com/QxOrm/QxOrm" target="_blank">GitHub</a></font>
</td>
</tr>
<tr>
<td align="right" valign="top">
<font size="2" class="txt_with_shadow"></font>
</td>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxEntityEditor 1.2.8</font>
</td>
</tr>
</tbody>
</table>
</td>
<td width="10px"></td>
<td width="40px" height="30px"><a href="../qxorm_fr/customer.html"><img alt="Version fran<61>aise du site"
src="./resource/FR.png" width="40" height="30" border="0"></a></td>
<td width="40px" height="30px"><a href="../qxorm_en/customer.html"><img alt="Web site english version"
src="./resource/GB.png" width="40" height="30" border="0"></a></td>
<td width="40px" height="30px"><a href="http://sites.google.com/site/qxormpostgres/" target="_blank"><img
alt="" src="./resource/ES.png" width="40" height="30" border="0"></a></td>
</tr>
</tbody>
</table>
<table border="1" frame="vsides" rules="cols" style="width: 80%" align="center" cellpadding="6" bgcolor="#F2F2F4">
<col>
<tbody>
<tr>
<td align="justify">
<br />
<b>Remarque :</b> la biblioth<74>que QxOrm est un produit open-source t<>l<EFBFBD>charg<72> chaque jour : il est donc
impossible de donner une liste de tous les utilisateurs et de toutes les applications bas<61>es sur la
biblioth<74>que QxOrm.<br />
Voici une liste d'entreprises utilisant la biblioth<74>que QxOrm et l'application QxEntityEditor dans leurs
produits commerciaux :<br />
<br />
<table>
<tbody>
<!--
<tr>
<td width="400px" align="center">
<a href="http://www.nasa.gov/centers/glenn/home/index.html" target="_blank"><img class="logo_customer" src="http://www.nasa.gov/sites/all/themes/custom/nasatwo/images/nasa-logo.svg" alt="NASA Glenn Research Center" /></a>
</td>
<td>
<b><a href="http://www.nasa.gov/centers/glenn/home/index.html" target="_blank">NASA Glenn Research Center</a> :</b><br/>
NASA Glenn Research Center is one of ten major NASA field centers, whose primary mission is to develop science and technology for use in aeronautics and space.
As of May 2012, it employed about 1,650 civil servants and 1,850 support contractors located on or near its site.
<br/><a href="https://en.wikipedia.org/wiki/Glenn_Research_Center" target="_blank"><font size="2"><i>[Description based on Wikipedia webpage]</i></font></a>
<br/><br/>
</td>
</tr>
-->
<!--
<tr>
<td width="400px" align="center">
<a href="http://www.williamsf1.com/" target="_blank"><img class="logo_customer" src="http://az732437.vo.msecnd.net/-/media/images/logo/wae-logo-dark.ashx" alt="Williams F1" /></a>
</td>
<td>
<b><a href="http://www.williamsf1.com/" target="_blank">Williams F1</a> :</b><br/>
Williams is one of the world's leading Formula 1 teams. It exists purely to race in the top echelon of motor racing, where it has been winning grands prix for more than three decades.
Williams Advanced Engineering is the technology and engineering services business of the Williams Group. They provide world class technical innovation, engineering, testing, and manufacturing services to deliver energy efficient performance to the Automotive, Motorsport, Civil Aerospace, Defence, Sports Science and Energy Sectors. They specialise in Lightweight Materials, Hybrid Power Systems and Electronics, Advanced Aerodynamics, Vehicle Dynamics and Holistic Integration Capabilities.
<br/><a href="https://en.wikipedia.org/wiki/Williams_Grand_Prix_Engineering" target="_blank"><font size="2"><i>[Wikipedia webpage]</i></font></a>
<br/><br/>
</td>
</tr>
-->
<!--
<tr>
<td width="400px" align="center">
<a href="http://www.irobot.com/" target="_blank"><img class="logo_customer" src="http://www.irobot.com/~/media/EU%20Sites/logo.png" alt="iRobot Corporation" /></a>
</td>
<td>
<b><a href="http://www.irobot.com/" target="_blank">iRobot Corporation</a> :</b><br/>
iRobot Corporation is an American advanced technology company founded in 1990 and incorporated in Delaware in 2000. It designs robots such as an autonomous home vacuum cleaner (Roomba), the Scooba that scrubs and cleans hard floors, and military and police robots, such as the PackBot.<br/>
iRobot is a public corporation, based in Bedford, Massachusetts.
<br/><a href="http://en.wikipedia.org/wiki/IRobot" target="_blank"><font size="2"><i>[Description based on Wikipedia webpage]</i></font></a>
<br/><br/>
</td>
</tr>
-->
<tr>
<td width="400px" align="center">
<a href="http://www.agcocorp.com/" target="_blank"><img class="logo_customer"
src="https://www.agcocorp.com/content/agcocorp/en_US/_jcr_content/headermainparsys/header/logoimage.img.png/1719948434940.png"
alt="AGCO" /></a>
</td>
<td>
<b><a href="http://www.agcocorp.com/" target="_blank">AGCO</a> :</b><br />
AGCO Corporation is an American agricultural equipment manufacturer based in Duluth, Georgia,
United States. As a leading global manufacturer of agricultural equipment, AGCO offers a full
line of tractors, combines, hay tools, sprayers, forage and tillage equipment, which are
distributed through more than 3,100 independent dealers and distributors in more than 140
countries worldwide.
<br /><a href="http://en.wikipedia.org/wiki/AGCO" target="_blank">
<font size="2"><i>[Description based on Wikipedia webpage]</i></font>
</a>
<br /><br />
</td>
</tr>
<tr>
<td width="400px" align="center">
<a href="http://www.ensco.com/" target="_blank"><img class="logo_customer"
src="http://www.ensco.com/IMAGES/ENSCO/v3/ENSCOLogo.gif" alt="ENSCO" /></a>
</td>
<td>
<b><a href="http://www.ensco.com/" target="_blank">ENSCO</a> :</b><br />
ENSCO, Inc. is a provider of engineering services, products, and advanced technologies for
national security, transportation safety and asset management, information sciences, data
management including information management systems for weather monitoring, aerospace and
avionics, and R and D for private corporations and local, state, and federal agencies and
governments, including the United States Department of Defense.
<br /><a href="http://en.wikipedia.org/wiki/ENSCO,_Inc." target="_blank">
<font size="2"><i>[Description based on Wikipedia webpage]</i></font>
</a>
<br /><br />
</td>
</tr>
<tr>
<td width="400px" align="center">
<a href="http://www.smithsdetection.com/" target="_blank"><img class="logo_customer"
src="https://upload.wikimedia.org/wikipedia/en/thumb/e/ed/Smiths_Group.svg/210px-Smiths_Group.svg.png"
alt="Smiths Detection" /></a>
</td>
<td>
<b><a href="http://www.smithsdetection.com/" target="_blank">Smiths Detection</a> :</b><br />
Smiths Group plc is a British multinational diversified engineering company headquartered in
London, United Kingdom. It has operations in over 50 countries and employs around 23,550
staff.<br />
Smiths Group has five divisions : Smiths Detection is the world's largest manufacturer of
sensors for the detection of explosives, weapons, chemical agents, biohazards, narcotics and
contraband.
<br /><a href="http://en.wikipedia.org/wiki/Smiths_Group" target="_blank">
<font size="2"><i>[Description based on Wikipedia webpage]</i></font>
</a>
<br /><br />
</td>
</tr>
<tr>
<td width="400px" align="center">
<a href="http://www.veranmedical.com/" target="_blank"><img class="logo_customer"
src="http://www.veranmedical.com/images/logo-veran-medical-technologies.png"
alt="Veran Medical" /></a>
</td>
<td>
<b><a href="http://www.veranmedical.com/" target="_blank">Veran Medical</a> :</b><br />
Veran Medical Technologies is focused on comprehensive oncology program.
Veran's technology is defining the new standard in early definitive diagnosis of cancer,
providing your hospital with a comprehensive navigation solution.
Established in 2005, Veran Medical Technologies is a privately held soft tissue navigation
company focused on the early diagnosis of cancer.
<br />
Veran's mission is to extend life through earlier diagnosis and the delivery of minimally
invasive therapies for interventional oncology procedures with unique navigation
technologies.
<br />
Veran is dedicated to increasing patient survival while providing cost effective healthcare
solutions that defined the next standard of care.
<br /><br />
</td>
</tr>
<tr>
<td width="400px" align="center">
<a href="http://www.altran-ais.com.br" target="_blank"><img class="logo_customer"
src="https://upload.wikimedia.org/wikipedia/en/thumb/b/b6/Logo_of_Capgemini_Engineering_2021.svg/220px-Logo_of_Capgemini_Engineering_2021.svg.png"
alt="Altran AIS" /></a>
</td>
<td>
<b><a href="http://www.altran-ais.com.br" target="_blank">Altran AIS</a> :</b><br />
Altran Technologies, SA is a global consulting firm founded in 1982 in France. Altran
operates primarily in high technology and innovation consultancy, which account for nearly
75% of its turnover. Administrative and information consultancy accounts for 20% of its
turnover with strategy and management consulting making up the rest.
<br /><a href="http://en.wikipedia.org/wiki/Altran" target="_blank">
<font size="2"><i>[Description based on Wikipedia webpage]</i></font>
</a>
<br /><br />
</td>
</tr>
<tr>
<td width="400px" align="center">
<a href="http://intermountainhealthcare.org" target="_blank"><img class="logo_customer"
src="https://upload.wikimedia.org/wikipedia/en/thumb/e/e9/Intermountain_Healthcare_2005_logo.svg/1280px-Intermountain_Healthcare_2005_logo.svg.png"
alt="Intermountain Healthcare" /></a>
</td>
<td>
<b><a href="http://intermountainhealthcare.org" target="_blank">Intermountain Healthcare</a>
:</b><br />
Intermountain Health Care, Inc., officially doing business as Intermountain Healthcare, is a
non-profit healthcare system and is the largest healthcare provider in the Intermountain
West. Until 2005 it was known as Intermountain Health Care or more commonly IHC; it is now
often referred to as simply Intermountain for short. Intermountain Healthcare provides
hospital and other medical services in Utah and Idaho and also offers integrated managed care
under the insurance brand SelectHealth. Intermountain Healthcare is headquartered in Salt
Lake City, Utah, and (as of 2014) employed over 33,000 people.
<br /><a href="http://en.wikipedia.org/wiki/Intermountain_Healthcare" target="_blank">
<font size="2"><i>[Description based on Wikipedia webpage]</i></font>
</a>
<br /><br />
</td>
</tr>
<tr>
<td width="400px" align="center">
<a href="http://www.gsi-electronics.com/" target="_blank"><img class="logo_customer"
src="http://www.gsi-electronics.com/images/GSI Electronics.png"
alt="GSI Electronics Inc." /></a>
</td>
<td>
<b><a href="http://www.gsi-electronics.com/" target="_blank">GSI Electronics Inc.</a>
:</b><br />
GSI Electronics Inc. develops, manufactures and distributes innovative technological products
for the agricultural industry. GSI Electronics Inc. unique expertise allows them to offer
accurate, simple and diverse electronic, data processing and mechanical solutions for
improving agricultural production.
<br /><br />
</td>
</tr>
<tr>
<td width="400px" align="center">
<a href="http://www.sagemcom.com/" target="_blank"><img class="logo_customer"
src="http://www.sagemcom.com/fileadmin/private/custom-theme/images/sagemcom-logo.png"
alt="Sagemcom" /></a>
</td>
<td>
<b><a href="http://www.sagemcom.com/" target="_blank">Sagemcom</a> :</b><br />
A French high-tech group of international dimensions, Sagemcom operates on the broadband
(digital home, set-top boxes, Internet routers, telephony and multimedia terminals), telecoms
and energy (smartgrid and energy management) and retail.
<br /><br />
</td>
</tr>
<!--
<tr>
<td width="400px" align="center">
<a href="http://www.bytechplanet.com/" target="_blank"><img class="logo_customer" src="http://www.bytechplanet.com/images-web/by-logo-home@2x.png" alt="By Techdesign S.L." style="width:100px;" /></a>
</td>
<td>
<b><a href="http://www.bytechplanet.com/" target="_blank">By Techdesign S.L.</a> :</b><br/>
By Techdesign S.L. is a company with 100% Spanish capital specialized in researching, designing and manufacturing high-end products for Security and Access Control.
By Techdesign S.L. experience is credited with more than 30 years doing this work in order to achieve excellence in innovation.
<br/>
The innovation of By solutions is the result of the talent and experience of the professionals that make up the team.
By believes in the value of people, in the creativity of the young and the experience of the elderly, all of them provide the added value needed to turn By a leading company in the development of innovative high-tech solutions for security, being one of the largest ICT firms in the country.
<br/><br/>
</td>
</tr>
-->
<tr>
<td width="400px" align="center">
<a href="http://www.motius.de/" target="_blank"><img class="logo_customer"
src="https://cdn.prod.website-files.com/64be79d12f4be686f39bcdee/64be8b55ac057951047d60fe_motius-logo.svg"
alt="Motius" style="width:100px;" /></a>
</td>
<td>
<b><a href="http://www.motius.de/" target="_blank">Motius</a> :</b><br />
Motius is a unique German R&D company. It solves technical problems and develops products for
international customers through a pool of elite senior students, academic researchers and
young engineers.
<br /><br />
</td>
</tr>
<tr>
<td width="400px" align="center">
<a href="http://www.gsvitec.com/" target="_blank"><img class="logo_customer"
src="http://gsvitec.com/media/logo.png" alt="GSVitec"
style="background-color:grey;" /></a>
</td>
<td>
<b><a href="http://www.gsvitec.com/" target="_blank">GSVitec</a> :</b><br />
Production of high-speed video and measurement data acquisition devices and software.<br />
Production of High Power LED light solutions especially for high speed video. Production and
design of High Power custom LED solutions (crash test, military, r&d).<br />
Software solutions for synchronous high speed data and video acquisition and recording.<br />
<br /><br />
</td>
</tr>
<tr>
<td width="400px" align="center">
<a href="http://promenadesoftware.com/" target="_blank"><img class="logo_customer"
src="https://cdn.prod.website-files.com/600752b78f114410e7b51e59/60eb7c03092c8718b3708549_PromenadeSoftware_Logo%20(1)-p-500.png"
alt="Promenade Software" /></a>
</td>
<td>
<b><a href="http://promenadesoftware.com/" target="_blank">Promenade Software</a> :</b><br />
Promenade Software is a company comprised of highly skilled, experienced software engineers.
Whether it is for a medical device, avionics test system, or other sensitive system,
Promenade Software knows that their work is critical.
Critical to your company, your customer, and everyone involved. Promenade Software has the
skills and ready-made tools to deliver your product reliably and efficiently.
<br />
Unlike other software service providers, Promenade Software took the time to create the
ready-made libraries and test tools that increase your system's quality, while saving you
money and development time.
<br /><br />
</td>
</tr>
<tr>
<td width="400px" align="center">
<a href="http://www.ivembh.de/index.php/home-en" target="_blank"><img class="logo_customer"
src="https://ivembh.de/wp-content/uploads/2023/06/logo-ive.svg" alt="IVE mbH"
style="width:150px;" /></a>
</td>
<td>
<b><a href="http://www.ivembh.de/index.php/home-en" target="_blank">IVE mbH</a> :</b><br />
Since founding IVE mbH, Consulting Company for Traffic and Railway Engineering Ltd., in 1998
IVE proficiently supports clients from the development of first ideas to the final
realisation and the practical use of projects.
Based on transport and railway expertise, IVE mbH derives concepts and future-oriented
sustainable solutions responding to the problems of clients, strengthening their position and
preparing them for the global competition.
<br /><br />
</td>
</tr>
<tr>
<td width="400px" align="center">
<a href="http://www.nauchpribor.ru/" target="_blank"><img class="logo_customer"
src="http://www.nauchpribor.ru/images/top_02.jpg" alt="NauchPribor"
style="width:100px;" /></a>
</td>
<td>
<b><a href="http://www.nauchpribor.ru/" target="_blank">NauchPribor</a> :</b><br />
NauchPribor is a high-tech company aimed on developing and producing low dose x-ray devices
for medical and security fields.<br />
Founded more than 40 years ago, now this company is one of the most advanced in
business.<br />
It has customers from all over the world. Headquartered resides in Orel, Russia.<br />
<br /><br />
</td>
</tr>
<tr>
<td width="400px" align="center">
<a href="http://www.tang.nu/" target="_blank"><img class="logo_customer"
src="http://www.vetnet.nu/wp-content/uploads/2015/04/tanglogo.png" alt="Tang" /></a>
</td>
<td>
<b><a href="http://www.tang.nu/" target="_blank">Tang</a> :</b><br />
Tang A/S develops a PMS system for the veterinary business.<br />
Their products are selling in Denmark, Norway and Sweden.<br />
<br /><br />
</td>
</tr>
</tbody>
</table>
<br />
All organization names, logos and trademarks used in this web page are for identification purposes only.
All trademarks and logos are the property of their respective owners.
</td>
</tr>
</tbody>
</table>
<br>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<tbody>
<tr>
<td align="left" valign="middle">
<img alt="QxOrm" src="./resource/logo_qxorm_small.png" width="168" height="40">
</td>
<td align="center" valign="middle">
<font size="2"><EFBFBD> 2011-202XDL Teamty - <a href="mailto:ic-east.com">ic-east.com</a></font>
</td>
<td align="right" valign="middle">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="2K4Z58ZYAYJ6S">
<input type="image" src="./resource/paypal_support_qxorm_library.gif" border="0" name="submit"
alt="Support QxOrm library - PayPal">
<img alt="" border="0" src="https://www.paypalobjects.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
</form>
</td>
</tr>
</tbody>
</table>
</body>
</html>

1271
doc/qxorm_fr/download.html Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,165 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>QxOrm : C++ Qt ORM Object Relational Mapping database library - QxEntityEditor : C++ Qt entities graphic editor (data model designer and source code generator)</title>
<link rel='stylesheet' type='text/css' href='./resource/qxorm_style.css'>
<script type="text/javascript" src="./resource/jquery.min.js"></script>
<script type="text/javascript" src="./resource/qxorm_script.js"></script>
</head>
<body>
<table border="0" style="width: 80%" align="center">
<col><col><col><col><col>
<tbody>
<tr>
<td><a href="./home.html"><img alt="QxOrm" src="./resource/logo_qxorm_and_qxee.png"align="left" border="0"></a></td>
<td align="right" style="vertical-align:bottom"><div id="qx_search"><gcse:search></gcse:search></div></td>
<td width="15"></td>
<td align="right" style="vertical-align:bottom">
<img alt="Windows" src="./resource/logo_windows.gif" width="35" height="35">
<img alt="Linux" src="./resource/logo_linux.gif" width="35" height="35">
<img alt="Macintosh" src="./resource/logo_mac.gif" width="35" height="35">
</td>
<td width="70"><img alt="C++" src="./resource/logo_cpp.gif" width="50" height="50" align="right"></td>
</tr>
</tbody>
</table>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col><col><col><col><col><col>
<tbody>
<tr>
<td align="center"><a href="./home.html" class="btn_nav">Accueil</a></td>
<td align="center"><a href="./download.html" class="btn_nav">T<EFBFBD>l<EFBFBD>chargement</a></td>
<td align="center"><a href="./quick_sample.html" class="btn_nav">Exemple rapide</a></td>
<td align="center" onmouseover="showHideElementById('menu_tuto', true);" onmouseout="showHideElementById('menu_tuto', false);">
<a href="./tutorial.html" class="btn_nav">Tutoriel (4)</a>
<table class="table_menu_tuto"><tbody><tr><td>
<div id="menu_tuto" class="div_menu_tuto">
<a href="./tutorial_3.html" class="btn_sub_menu">install QxOrm</a><br/>
<a href="./tutorial.html" class="btn_sub_menu">qxBlog</a><br/>
<a href="./tutorial_2.html" class="btn_sub_menu">qxClientServer</a><br/>
<a href="./tutorial_4.html" class="btn_sub_menu">QxEntityEditor videos</a>
</div>
</td></tr></tbody></table>
</td>
<td align="center" onmouseover="showHideElementById('menu_manual', true);" onmouseout="showHideElementById('menu_manual', false);">
<a href="./manual.html" class="btn_nav">Manuel (2)</a>
<table class="table_menu_manual"><tbody><tr><td>
<div id="menu_manual" class="div_menu_manual">
<a href="./manual.html" class="btn_sub_menu">Manuel QxOrm</a><br/>
<a href="./manual_qxee.html" class="btn_sub_menu">Manuel QxEntityEditor</a><br/>
</div>
</td></tr></tbody></table>
</td>
<td align="center"><a href="./link.html" class="btn_nav">Forum</a></td>
<td align="center"><a href="./customer.html" class="btn_nav">Nos clients</a></td>
</tr>
</tbody>
</table>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col><col><col><col><col><col>
<tbody><tr>
<td align="left" valign="top"><font size="2" class="txt_with_shadow">QxOrm &gt;&gt; Informations sur le t<EFBFBD>l<EFBFBD>chargement</font></td>
<td align="right" valign="top">
<table cellspacing="0" cellpadding="1"><col><col><tbody>
<tr>
<td align="right" valign="top"><font size="2" class="txt_with_shadow">Version courante :&nbsp;</font></td>
<td align="left" valign="top"><font size="2" class="txt_with_shadow">QxOrm 1.5.0 - <a href="../doxygen/index.html" target="_blank">documentation en ligne de la biblioth<EFBFBD>que QxOrm</a> - <a href="https://github.com/QxOrm/QxOrm" target="_blank">GitHub</a></font></td>
</tr>
<tr>
<td align="right" valign="top"><font size="2" class="txt_with_shadow"></font></td>
<td align="left" valign="top"><font size="2" class="txt_with_shadow">QxEntityEditor 1.2.8</font></td>
</tr>
</tbody></table>
</td>
<td width="10px"></td>
<td width="40px" height="30px"><a href="../qxorm_fr/download_details.php"><img alt="Version fran<61>aise du site" src="./resource/FR.png" width="40" height="30" border="0"></a></td>
<td width="40px" height="30px"><a href="../qxorm_en/download_details.php"><img alt="Web site english version" src="./resource/GB.png" width="40" height="30" border="0"></a></td>
<td width="40px" height="30px"><a href="http://sites.google.com/site/qxormpostgres/" target="_blank"><img alt="" src="./resource/ES.png" width="40" height="30" border="0"></a></td>
</tr></tbody>
</table>
<table border="1" frame="vsides" rules="cols" style="width: 80%" align="center" cellpadding="6" bgcolor="#F2F2F4">
<col>
<tbody>
<tr>
<td align="justify">
<table border="0" style="width: 100%" align="center">
<col><col>
<tbody>
<tr>
<td>La biblioth<EFBFBD>que QxOrm est disponible avec son code source et peut <EFBFBD>tre utilis<EFBFBD>e gratuitement en respectant les termes de la licence <a href="./resource/license.gpl3.txt" target="_blank">GNU General Public License (GPL) version 3</a>.
<br><br>
En associant (<i>link</i>) une application avec la biblioth<EFBFBD>que QxOrm (directement ou indirectement, statiquement ou dynamiquement, <EFBFBD> la compilation ou <EFBFBD> l'ex<65>cution), votre application est soumise aux termes de la licence <b>GPLv3</b>
qui demande <20> ce que vous publiez le code source de votre application si et quand vous la distribuez. Distribuer une application signifie la donner ou vendre <20> des clients,
des soci<63>t<EFBFBD>s, filiales, ou tous autres entit<69>s l<>gales diff<66>rentes de la votre. D'un autre c<EFBFBD>t<EFBFBD>, lorsque vous utilisez votre application dans votre organistation uniquement,
alors vous n'avez pas besoin de rendre votre code source public.
<br><br>
Si vous ne souhaitez pas <20>tre limit<69> par les termes de la licence GPLv3, vous pouvez acqu<71>rir la licence <b>QxOrm Proprietary License</b> (<b>QXPL</b>).<br>
Les avantages de la licence <b>QxOrm Proprietary License</b> sont :
<ul>
<li>Le code source de votre application reste priv<69> ;</li>
<li>Compatible avec toutes les autres licences commerciales et open-source ;</li>
<li>Possibilit<69> d'utiliser QxOrm sans livrer le code source de la biblioth<EFBFBD>que aux utilisateurs ;</li>
<li>Possibilit<EFBFBD> de conserver vos propres modifications <EFBFBD> la biblioth<EFBFBD>que QxOrm sans les d<EFBFBD>voiler ;</li>
<li>Possibilit<EFBFBD> de cr<EFBFBD>er des produits sans mentionner QxOrm aux utilisateurs ;</li>
<li>Protection contre le <i>reverse engineering</i> du produit.</li>
</ul>
</td>
<td width="200" align="center" valign="top"><a href="./resource/qt_ambassador_logo.png" target="_blank"><img alt="qt_ambassador" src="./resource/qt_ambassador_logo_150x150.png" width="150" height="150" border="0"></a><br>
<b><font size="2">QxOrm library has been accepted into the <a href="http://forum.qt.io/category/24/qt-ambassador-program" target="_blank">Qt Ambassador Program</a></font></b>
</td>
</tr>
</tbody>
</table>
La licence QXPL de la biblioth<EFBFBD>que QxOrm est une licence par projet (ou par application), peu importe le nombre de d<EFBFBD>veloppeurs travaillant sur le projet, et peu importe le nombre d'instances d<>ploy<6F>es de votre logiciel (royalty-free).
Par exemple, si vous d<>veloppez 3 applications diff<66>rentes bas<61>es sur la biblioth<74>que QxOrm, alors vous devez acqu<71>rir 3 licences QXPL (une par projet).<br/>
<br/>
Prix d'une licence <b>QxOrm Proprietary License</b> : <i>400&euro;</i>.<br/>
<br/>
Pour toutes questions ou pr<EFBFBD>cisions sur les licences, ou bien pour acqu<EFBFBD>rir la licence <b>QXPL</b>, vous pouvez nous contacter <EFBFBD> l'adresse suivante : <a href="mailto:ic-east.com">ic-east.com</a>.<br/>
<br/>
<a href="../php/add_download.php5?file_path=QxOrm_1.5.0.zip&file_desc=QxOrm_1.5.0" class="btn_tuto" target="_blank">T<EFBFBD>l<EFBFBD>charger QxOrm 1.5.0</a>
<br/>
<!--
<script type="text/javascript">
function checkForm(f) { f.submit(); return true; }
</script>
<form action="../php/add_download.php" method="POST" onSubmit="return checkForm(this);">
Votre nom ou le nom de votre soci<EFBFBD>t<EFBFBD> (optionnel) :<br/>
<input type="text" id="created_by" name="created_by" size="50" maxlength="200" /><br/>
Aidez nous <EFBFBD> am<EFBFBD>liorer la biblioth<EFBFBD>que QxOrm en ajoutant vos remarques et suggestions (optionnel) :<br/>
<textarea id="message_text" name="message_text" rows="3" cols="50"></textarea><br/>
<input type="submit" value=" T<>l<EFBFBD>charger QxOrm 1.5.0 " />
</form>
-->
<br>
</td>
</tr>
</tbody>
</table>
<br><hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col><col><col>
<tbody>
<tr>
<td align="left" valign="middle">
<img alt="QxOrm" src="./resource/logo_qxorm_small.png" width="168" height="40">
</td>
<td align="center" valign="middle">
<font size="2"><EFBFBD> 2011-202XDL Teamty - <a href="mailto:ic-east.com">ic-east.com</a></font>
</td>
<td align="right" valign="middle">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="2K4Z58ZYAYJ6S">
<input type="image" src="./resource/paypal_support_qxorm_library.gif" border="0" name="submit" alt="Support QxOrm library - PayPal">
<img alt="" border="0" src="https://www.paypalobjects.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
</form>
</td>
</tr>
</tbody>
</table>
</body>
</html>

3768
doc/qxorm_fr/faq.html Normal file

File diff suppressed because it is too large Load Diff

491
doc/qxorm_fr/home.html Normal file
View File

@@ -0,0 +1,491 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>QxOrm : C++ Qt ORM Object Relational Mapping database library - QxEntityEditor : C++ Qt entities graphic editor
(data model designer and source code generator)</title>
<link rel='stylesheet' type='text/css' href='./resource/qxorm_style.css'>
<script type="text/javascript" src="./resource/jquery.min.js"></script>
<script type="text/javascript" src="./resource/qxorm_script.js"></script>
</head>
<body>
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td><a href="./home.html"><img alt="QxOrm" src="./resource/logo_qxorm_and_qxee.png" align="left" border="0"></a>
</td>
<td align="right" style="vertical-align:bottom">
<div id="qx_search">
<gcse:search></gcse:search>
</div>
</td>
<td width="15"></td>
<td align="right" style="vertical-align:bottom">
<img alt="Windows" src="./resource/logo_windows.gif" width="35" height="35">
<img alt="Linux" src="./resource/logo_linux.gif" width="35" height="35">
<img alt="Macintosh" src="./resource/logo_mac.gif" width="35" height="35">
</td>
<td width="70"><img alt="C++" src="./resource/logo_cpp.gif" width="50" height="50" align="right"></td>
</tr>
</tbody>
</table>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td align="center"><a href="./home.html" class="btn_nav">Accueil</a></td>
<td align="center"><a href="./download.html" class="btn_nav">T<EFBFBD>l<EFBFBD>chargement</a></td>
<td align="center"><a href="./quick_sample.html" class="btn_nav">Exemple rapide</a></td>
<td align="center" onmouseover="showHideElementById('menu_tuto', true);"
onmouseout="showHideElementById('menu_tuto', false);">
<a href="./tutorial.html" class="btn_nav">Tutoriel (4)</a>
<table class="table_menu_tuto">
<tbody>
<tr>
<td>
<div id="menu_tuto" class="div_menu_tuto">
<a href="./tutorial_3.html" class="btn_sub_menu">install QxOrm</a><br />
<a href="./tutorial.html" class="btn_sub_menu">qxBlog</a><br />
<a href="./tutorial_2.html" class="btn_sub_menu">qxClientServer</a><br />
<a href="./tutorial_4.html" class="btn_sub_menu">QxEntityEditor videos</a>
</div>
</td>
</tr>
</tbody>
</table>
</td>
<td align="center" onmouseover="showHideElementById('menu_manual', true);"
onmouseout="showHideElementById('menu_manual', false);">
<a href="./manual.html" class="btn_nav">Manuel (2)</a>
<table class="table_menu_manual">
<tbody>
<tr>
<td>
<div id="menu_manual" class="div_menu_manual">
<a href="./manual.html" class="btn_sub_menu">Manuel QxOrm</a><br />
<a href="./manual_qxee.html" class="btn_sub_menu">Manuel QxEntityEditor</a><br />
</div>
</td>
</tr>
</tbody>
</table>
</td>
<td align="center"><a href="./link.html" class="btn_nav">Forum</a></td>
<td align="center"><a href="./customer.html" class="btn_nav">Nos clients</a></td>
</tr>
</tbody>
</table>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxOrm &gt;&gt; Accueil</font>
</td>
<td align="right" valign="top">
<table cellspacing="0" cellpadding="1">
<col>
<col>
<tbody>
<tr>
<td align="right" valign="top">
<font size="2" class="txt_with_shadow">Version courante :&nbsp;</font>
</td>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxOrm 1.5.0 - <a href="../doxygen/index.html"
target="_blank">documentation en ligne de la biblioth<74>que QxOrm</a> - <a
href="https://github.com/QxOrm/QxOrm" target="_blank">GitHub</a></font>
</td>
</tr>
<tr>
<td align="right" valign="top">
<font size="2" class="txt_with_shadow"></font>
</td>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxEntityEditor 1.2.8</font>
</td>
</tr>
</tbody>
</table>
</td>
<td width="10px"></td>
<td width="40px" height="30px"><a href="../qxorm_fr/home.html"><img alt="Version fran<61>aise du site"
src="./resource/FR.png" width="40" height="30" border="0"></a></td>
<td width="40px" height="30px"><a href="../qxorm_en/home.html"><img alt="Web site english version"
src="./resource/GB.png" width="40" height="30" border="0"></a></td>
<td width="40px" height="30px"><a href="http://sites.google.com/site/qxormpostgres/" target="_blank"><img alt=""
src="./resource/ES.png" width="40" height="30" border="0"></a></td>
</tr>
</tbody>
</table>
<table border="1" frame="vsides" rules="cols" style="width: 80%" align="center" cellpadding="6" bgcolor="#F2F2F4">
<col>
<tbody>
<tr>
<td align="justify">
<table border="0" style="width: 100%" align="center">
<col>
<col>
<tbody>
<tr>
<td>
<h1 class="txt_slogan">QxOrm (le moteur) + QxEntityEditor (l'<27>diteur graphique) = la meilleure
solution pour g<>rer sa couche de donn<6E>es persistante en C++/Qt !</h1>
<br />
<hr style="width: 90%" align="center" size="1" color="#100D5A">
<br /><b>QxOrm est une biblioth<74>que C++ de gestion de donn<6E>es.</b>
A partir d'une simple <b>fonction de param<61>trage</b> (que l'on peut
comparer avec un fichier de mapping <a href="http://hibernate.org/"
target="_blank"><i>Hibernate</i></a> en Java), vous
aurez acc<63>s aux fonctionnalit<69>s suivantes :<br>
<ul>
<li><b>
<font style="background-color:yellow"><a href="./manual.html#manual_30">Persistance</a></font>
</b> : support des bases de donn<6E>es SQLite, MySQL, PostgreSQL, Oracle, MS SQL Server, <a
href="./manual.html#manual_95">MongoDB</a> (gestion des relations <i>1-1</i>, <i>1-n</i>,
<i>n-1</i> et <i>n-n</i>) ;
</li>
<li><b>
<font style="background-color:yellow"><a href="./manual.html#manual_60">S<EFBFBD>rialisation</a></font>
</b> des donn<6E>es (flux JSON, binaire et XML) ;</li>
<li><b>
<font style="background-color:yellow"><a href="./manual.html#manual_70">R<EFBFBD>flexion</a></font>
</b> (ou <b>
<font style="background-color:yellow"><a href="./manual.html#manual_70">introspection</a></font>
</b>) pour acc<63>der dynamiquement aux classes, attributs et invoquer des m<>thodes ;</li>
<li><b>
<font style="background-color:yellow"><a href="./manual.html#manual_96">Serveur web HTTP</a>
</font>
</b> : serveur web compatible HTTP 1.1 autonome, performant, multi-plateforme et simple
d'utilisation ;</li>
<li><b>
<font style="background-color:yellow"><a href="./manual.html#manual_97">API JSON</a></font>
</b> : interop<6F>rabilit<69> avec d'autres technologies que C++/Qt (web services REST, applications
QML, langages de script).</li>
</ul>
<hr style="width: 90%" align="center" size="1" color="#100D5A">
</td>
<td width="200" align="center" valign="top"><a href="./resource/qt_ambassador_logo.png"
target="_blank"><img alt="qt_ambassador" src="./resource/qt_ambassador_logo_150x150.png" width="150"
height="150" border="0"></a><br>
<b>
<font size="2">QxOrm library has been accepted into the <a
href="http://forum.qt.io/category/24/qt-ambassador-program" target="_blank">Qt Ambassador
Program</a></font>
</b>
</td>
</tr>
</tbody>
</table>
<br />
<b>QxEntityEditor</b> est un <20>diteur graphique pour la biblioth<74>que <b>QxOrm</b> : <b>QxEntityEditor</b>
permet de g<>rer graphiquement le mod<6F>le d'entit<69>s.<br>
<b>QxEntityEditor</b> est multi-plateforme (disponible pour Windows, Linux et Mac OS X) et g<>n<EFBFBD>re du code
natif pour tous les environnements : bureau (Windows, Linux, Mac OS X), embarqu<71> et mobile (Android, iOS,
Windows Phone, Raspberry Pi, etc.).<br>
<a href="./manual_qxee.html">Un manuel utilisateur (documentation) d<>di<64> <20> l'application <b>QxEntityEditor</b>
est disponible</a>.<br>
<br>
<b>QxEntityEditor</b> est bas<61> sur un syst<73>me de plugins et propose diverses fonctionnalit<69>s pour
importer/exporter le mod<6F>le de donn<6E>es :
<ul>
<li><a href="./manual_qxee.html#cpp_export_settings">g<EFBFBD>n<EFBFBD>ration automatique du code C++</a> (classes
persistantes enregistr<74>es dans le contexte QxOrm) ;</li>
<li><a href="./manual_qxee.html#ddl_export_settings">g<EFBFBD>n<EFBFBD>ration automatique des scripts SQL DDL</a> (sch<63>ma
de base de donn<6E>es) pour les bases SQLite, MySQL, PostgreSQL, Oracle et MS SQL Server ;</li>
<li>supporte l'<27>volution du sch<63>ma de base de donn<6E>es pour chaque version d'un projet (<i>ALTER TABLE</i>,
<i>ADD COLUMN</i>, <i>DROP INDEX</i>, etc.) ;
</li>
<li><a href="./manual_qxee.html#cpp_services_export_settings">g<EFBFBD>n<EFBFBD>ration automatique des classes C++ de
services</a> pour transf<73>rer le mod<6F>le de donn<6E>es sur le r<>seau, en utilisant le module <a
href="../doxygen/html/group___qx_service.html" target="_blank">QxService</a>, pour cr<63>er rapidement des
applications client/serveur ;</li>
<li><a href="./manual_qxee.html#wnd_mysql_import">importation automatique des structures de bases de
donn<6E>es</a> existantes (par connexion ODBC ou pilote natif) pour les bases SQLite, MySQL, PostgreSQL,
Oracle et MS SQL Server ;</li>
<li>parce que chaque projet est diff<66>rent, QxEntityEditor propose plusieurs outils pour personnaliser les
fichiers g<>n<EFBFBD>r<EFBFBD>s (notamment <a href="./manual_qxee.html#js_engine">un moteur javascript et un d<>bogueur
int<6E>gr<67></a>).</li>
</ul>
<a href="../qxentityeditor/resource/qxee_sample.png" target="_blank"><img alt="QxEntityEditor"
src="../qxentityeditor/resource/qxee_sample_small.png" border="0" class="img_with_shadow"></a>
<br><br>
<hr style="width: 90%" align="center" size="1" color="#100D5A">
<br>
La biblioth<74>que <b>QxOrm</b> a pour objectif de simplifier le code C++ tout en offrant un maximum de
fonctionnalit<69>s.<br>
Voici les principaux avantages de QxOrm :
<ul>
<li><b>non intrusif</b> : la <i>fonction de param<61>trage</i> se trouve <20>
l'ext<78>rieur des classes. La signature des classes n'est donc pas
modifi<66>e. QxOrm peut donc <20>tre utilis<69> dans des projets
existants ;
</li>
<li><b>aucune n<>cessit<69> d'appartenir <20> une hi<68>rarchie de
classes</b> : les classes n'ont pas besoin de d<>river d'un 'super
objet' ;
</li>
<li><b>pas de mapping XML</b> ;
</li>
<li>1 seul fichier <i>&lt;QxOrm.h&gt;</i> <20> inclure dans l'en-t<>te
pr<70>compil<69> (<b>precompiled-header</b> recommand<6E> pour optimiser les temps
de compilation) ;
</li>
<li>aucune n<>cessit<69> d'utiliser le pr<70>-compilateur 'moc' fourni
par Qt ;
</li>
<li>v<EFBFBD>rification des types <20> la compilation (utilisation intensive
de <b>m<EFBFBD>ta-programmation</b>) ;
</li>
<li>compatible avec <b>Visual C++</b> sous Windows,
<b>GCC</b> sous Linux, <b>Clang</b> sous Mac OS X, et <b>MinGW</b> sous Windows (d'autres environnements
et
plateformes seront test<73>s prochainement : mobiles, etc...) ;
</li>
<li>compatible avec le d<>veloppement de biblioth<74>ques partag<61>es
(shared library, <i>*.dll</i> pour Windows, <i>*.so</i> pour Linux,
etc...).
</li>
</ul>
<br>
<p align="justify"><b>QxOrm</b> est bas<61> sur la biblioth<74>que <a href="http://www.qt.io/"
target="_blank"><b>Qt</b></a> (compatible Qt4, Qt5, Qt6) :</p>
<!-- <a href="http://www.boost.org/" target="_blank"><b>boost</b></a> (compatible <20> partir de la version 1.38, par d<>faut seuls les fichiers d'en-t<EFBFBD>te <i>*.hpp</i> sont n<>cessaires) :</p> -->
<p></p>
<table border="0" style="width: 100%" align="center">
<col>
<col>
<tbody>
<tr>
<td valign="middle" width="161" align="center"><a href="http://www.qt.io/" target="_blank"><img alt="Qt"
src="./resource/logo_qt.jpg" width="42" height="50" border="0"></a></td>
<td align="justify"><b>Qt</b> : biblioth<74>que compl<70>te : IHM
(<i>QtGui</i>), r<>seau (<i>QtNetwork</i>), XML (<i>QtXml</i>), base de donn<6E>es
(<i>QtSql</i>), etc...<br>
La documentation est excellente et le code C++ <20>crit <20> partir
de cette biblioth<74>que est <20> la fois performant et simple de
compr<70>hension.<br>
Depuis le rachat par Nokia puis Digia et sa nouvelle licence LGPL, Qt est
sans contexte la biblioth<74>que phare du moment.<br>
QxOrm est compatible avec les principaux objets d<>finis par Qt
: <i>QObject, QString, QDate, QTime, QDateTime, QList, QHash,
QSharedPointer, QScopedPointer, etc...</i><br>
Il est conseill<6C> d'installer et d'utiliser la derni<6E>re version
de Qt disponible <20> l'adresse suivante : <a href="http://www.qt.io/"
target="_blank">http://www.qt.io/</a> </td>
</tr>
</tbody>
</table>
<p></p>
<!--
<table border="0" style="width: 100%" align="center">
<col>
<col>
<tbody>
<tr>
<td valign="middle" width="161" align="center"><a
href="http://www.boost.org/" target="_blank"><img alt="boost"
src="./resource/logo_boost.jpg" width="161"
height="50" border="0"></a></td>
<td align="justify"><b>boost</b> : de nombreux modules de la
biblioth<74>que boost font partie de la nouvelle norme C++.<br>
C'est une biblioth<74>que reconnue pour sa qualit<69>, son code 'C++
moderne', sa documentation, sa portabilit<69>, etc...<br>
QxOrm utilise les fonctionnalit<69>s suivantes de boost :
<i>smart_pointer, type_traits,
multi_index_container, unordered_container, any, tuple,
foreach, function.</i> Toutes ces fonctionnalit<69>s sont <i>header only</i>, la d<>pendance au module <i>serialization</i> est optionnelle.<br>
Il est conseill<6C> d'installer et d'utiliser la derni<6E>re version
de boost disponible <20> l'adresse suivante : <a href="http://www.boost.org/" target="_blank">http://www.boost.org/</a> </td>
</tr>
</tbody>
</table>
<p></p>
-->
<br>
<p><b>QxOrm</b> est divis<69> en sous-modules, voici un descriptif rapide :</p>
<ul>
<li>
<p><b><a href="../doxygen/html/group___qx_dao.html" target="_blank">QxDao</a></b> : bas<61> sur le moteur <a
href="http://doc.qt.io/qt-5/qtsql-index.html" target="_blank"><i>QtSql</i></a> de Qt, ce module
permet de communiquer (s<>lection, modification, suppression,
transaction, etc...) avec de nombreuses bases de donn<6E>es en mappant
chaque champ d'une table avec les propri<72>t<EFBFBD>s d'une classe C++. Les
relations de type <i>1-1</i>, <i>1-n</i>, <i>n-1</i> et <i>n-n</i> sont tr<74>s simples <20>
mettre en place dans le code C++. Ce module supporte la
programmation objet : h<>ritage, polymorphisme, composition,
association ainsi que les collections (support des collections de
<b>stl</b>, <b>boost</b> et <b>Qt</b> : <i>std::vector, std::list,
std::unordered_map, QList, QHash, etc...</i>).
</p>
</li>
<li>
<p><b><a href="../doxygen/html/group___qx_register.html" target="_blank">QxRegister</a>, <a
href="../doxygen/html/group___qx_data_member.html" target="_blank">QxDataMember</a> et <a
href="../doxygen/html/group___qx_function.html" target="_blank">QxFunction</a></b> : m<>me si
ce n'est pas le but 1er de QxOrm, il est n<>cessaire d'<27>muler le
m<>canisme de <i>reflection</i> (ou <i>introspection</i>) pr<70>sent nativement dans d'autres langages
(Java, C#, etc...) pour utiliser toutes les fonctionnalit<69>s de
QxOrm.</p>
</li>
<li>
<p><b><a href="../doxygen/html/group___qx_model_view.html" target="_blank">QxModelView</a></b> :
toute classe enregistr<74>e dans le contexte QxOrm peut <20>tre utilis<69>e par <a
href="http://doc.qt.io/qt-5/modelview.html" target="_blank">le moteur model/view de Qt</a> (Qt widgets
et/ou vues QML).
L'interface <a href="../doxygen/html/classqx_1_1_ix_model.html" target="_blank">qx::IxModel</a> expose
automatiquement au moteur QML toutes les propri<72>t<EFBFBD>s d<>finies dans le contexte QxOrm.
Ce module permet ainsi de faciliter l'int<6E>raction entre QML et les bases de donn<6E>es.</p>
</li>
<li>
<p><b><a href="../doxygen/html/group___qx_service.html" target="_blank">QxService</a></b> : bas<61> sur le
moteur <a href="http://doc.qt.io/qt-5/qtnetwork-index.html" target="_blank"><i>QtNetwork</i></a> de Qt,
ce module
permet de cr<63>er de mani<6E>re simple et performante <b>un serveur d'applications en C++</b> (notion de
<i>services</i> avec <i>demande</i> du client et <i>r<EFBFBD>ponse</i> du serveur). <b>QxService</b> utilise la
<i>serialization</i> et l'<i>introspection</i> des donn<6E>es
et fonctions pour pouvoir faire transiter sur le r<>seau n'importe quelle classe ou structure. Pour plus
d'informations sur ce module, <b>un tutoriel</b> est disponible <a href="./tutorial_2.html">en cliquant
ici</a>.
</p>
</li>
<li>
<p><b><a href="../doxygen/html/group___qx_collection.html" target="_blank">QxCollection&lt;Key,
Value&gt;</a></b> :
<!-- bas<61> sur
<a href="http://www.boost.org/doc/libs/release/libs/multi_index/doc/index.html" target="_blank"><i>boost::multi_index_container</i></a>, -->
cette collection thread-safe permet de cumuler
les avantages d'un <i>std::vector&lt;T&gt;</i> (conserve l'ordre
d'insertion + acc<63>s rapide par index) et d'un
<i>std::unordered_map&lt;Key, Value&gt;</i> ou encore <i>QHash&lt;Key,
Value&gt;</i> (acc<63>s rapide par cl<63> : <i>hash-map</i>). Ce type de collection
est particuli<6C>rement adapt<70> pour contenir les <20>l<EFBFBD>ments issus d'une
base de donn<6E>es.
</p>
</li>
<li>
<p><b><a href="../doxygen/html/group___qx_serialize.html" target="_blank">QxSerialize</a></b> :
<!-- ce module s'appuie sur l'excellente
biblioth<74>que <a href="http://www.boost.org/doc/libs/release/libs/serialization/doc/index.html" target="_blank"><i>boost::serialization</i></a>. -->
Toute classe d<>finie par QxOrm
peut <20>tre s<>rializ<69>e dans un flux binaire, XML et JSON. Ce module permet
<20>galement de cloner toutes les instances d'objet. Les principaux
objets de la biblioth<74>que Qt (<i>QObject, QString, QDate, QTime,
QDateTime, QList, QHash, etc...</i>) sont compatibles avec le module
<i>QxSerialize</i>. Ce module assure une compatibilit<69> ascendante avec
prise en compte d'un n<> de version par classe.
</p>
</li>
<li>
<p><b><a href="../doxygen/html/group___qx_factory.html" target="_blank">QxFactory</a></b> : toute instance
d'objet d<>finie par QxOrm
peut <20>tre cr<63><72>e en fonction du nom de la classe.</p>
</li>
<li>
<p><b><a href="../doxygen/html/group___qx_traits.html" target="_blank">QxTraits</a></b> : ce module
contient une liste de classes de
traits non d<>finies dans la biblioth<74>que standard et qui sont utiles pour
l'utilisation de QxOrm. Ces classes de traits se veulent g<>n<EFBFBD>riques
et peuvent donc <20>tre utilis<69>es dans d'autres contextes que celui de
la biblioth<74>que QxOrm.</p>
</li>
<li>
<p><b><a href="../doxygen/html/group___qx_cache.html" target="_blank">QxCache</a></b> : le 'cache' de
QxOrm peut contenir tous types
d'objets. Il peut permettre par exemple de m<>moriser des donn<6E>es
issues d'une base de donn<6E>es pour <20>viter des requ<71>tes trop
fr<66>quentes. Ce cache est g<>n<EFBFBD>rique et peut <20>tre utilis<69> dans d'autres contextes que
celui de QxOrm.</p>
</li>
<li>
<p><b><a href="../doxygen/html/group___qx_validator.html" target="_blank">QxValidator</a></b> : ce module
permet d'ajouter des contraintes
sur les propri<72>t<EFBFBD>s enregistr<74>es dans le contexte QxOrm. Ces contraintes sont d<>finies dans la m<>thode de
mapping : <i>void qx::register_class</i>.
Si pour une instance de classe donn<6E>e, au moins une contrainte n'est pas respect<63>e, alors l'instance est
consid<69>r<EFBFBD>e comme invalide :
l'objet ne peut alors pas <20>tre sauvegard<72> en base de donn<6E>es (<i>INSERT</i> ou <i>UPDATE</i>). Pour plus
d'informations sur le module <i>QxValidator</i>,
<a href="./manual.html#manual_420">rendez-vous sur le manuel utilisateur de la biblioth<74>que QxOrm</a>.
</p>
</li>
<li>
<p><b><a href="../doxygen/html/group___qx_mem_leak.html" target="_blank">QxMemLeak</a></b> : permet une
d<>tection rapide des fuites
m<>moire en mode <i>Debug</i> une fois l'ex<65>cution du programme termin<69>e
(avec indication du fichier et de la ligne =&gt; style MFC de
Microsoft). Ce module a <20>t<EFBFBD> d<>velopp<70> par <a href="http://wyw.dcweb.cn/leakage.htm" target="_blank">Wu
Yongwei</a> et a subi
quelques modifications pour <20>tre int<6E>gr<67> dans QxOrm. Si un autre
outil est d<>j<EFBFBD> utilis<69> dans vos projets (<i>Valgrind</i> par exemple),
cette fonctionnalit<69> ne doit pas <20>tre activ<69>e.
Par d<>faut, le module <i>QxMemLeak</i> est d<>sactiv<69>.</p>
</li>
</ul>
<p></p>
<br>
<p>Vous pouvez t<>l<EFBFBD>charger la derni<6E>re version de <b>QxOrm</b> et <b>QxEntityEditor</b> <a
href="./download.html">en cliquant ici</a>.<br>
Un manuel utilisateur pour apprendre <20> travailler avec la biblioth<74>que QxOrm est disponible <a
href="./manual.html">en cliquant ici</a>.<br>
Un exemple rapide d'utilisation de <b>QxOrm</b> montrant les fonctionnalit<69>s de base de la biblioth<74>que
est disponible <a href="./quick_sample.html">en cliquant ici</a>.<br>
Un forum (en anglais) d<>di<64> <20> <b>QxOrm</b> et <b>QxEntityEditor</b> est disponible <a
href="https://www.qxorm.com/forum/phpbb/" target="_blank">en cliquant ici</a>.<br>
Vous pouvez <20>galement retrouver la communaut<75> fran<61>aise de <b>QxOrm</b> et <b>QxEntityEditor</b> sur <a
href="http://www.developpez.net/forums/f1563/c-cpp/bibliotheques/qt/bases-donnees/qxorm/"
target="_blank">le forum de Developpez.com</a>.<br>
Une documentation en ligne du code source de la biblioth<74>que <b>QxOrm</b> est disponible <a
href="../doxygen/index.html" target="_blank">en cliquant ici</a>.<br>
</td>
</tr>
</tbody>
</table>
<br>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<tbody>
<tr>
<td align="left" valign="middle">
<img alt="QxOrm" src="./resource/logo_qxorm_small.png" width="168" height="40">
</td>
<td align="center" valign="middle">
<font size="2"><EFBFBD> 2011-202XDL Teamty - <a href="mailto:ic-east.com">ic-east.com</a></font>
</td>
<td align="right" valign="middle">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="2K4Z58ZYAYJ6S">
<input type="image" src="./resource/paypal_support_qxorm_library.gif" border="0" name="submit"
alt="Support QxOrm library - PayPal">
<img alt="" border="0" src="https://www.paypalobjects.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
</form>
</td>
</tr>
</tbody>
</table>
</body>
</html>

265
doc/qxorm_fr/link.html Normal file
View File

@@ -0,0 +1,265 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>QxOrm : C++ Qt ORM Object Relational Mapping database library - QxEntityEditor : C++ Qt entities graphic editor
(data model designer and source code generator)</title>
<link rel='stylesheet' type='text/css' href='./resource/qxorm_style.css'>
<script type="text/javascript" src="./resource/jquery.min.js"></script>
<script type="text/javascript" src="./resource/qxorm_script.js"></script>
</head>
<body>
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td><a href="./home.html"><img alt="QxOrm" src="./resource/logo_qxorm_and_qxee.png" align="left" border="0"></a>
</td>
<td align="right" style="vertical-align:bottom">
<div id="qx_search">
<gcse:search></gcse:search>
</div>
</td>
<td width="15"></td>
<td align="right" style="vertical-align:bottom">
<img alt="Windows" src="./resource/logo_windows.gif" width="35" height="35">
<img alt="Linux" src="./resource/logo_linux.gif" width="35" height="35">
<img alt="Macintosh" src="./resource/logo_mac.gif" width="35" height="35">
</td>
<td width="70"><img alt="C++" src="./resource/logo_cpp.gif" width="50" height="50" align="right"></td>
</tr>
</tbody>
</table>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td align="center"><a href="./home.html" class="btn_nav">Accueil</a></td>
<td align="center"><a href="./download.html" class="btn_nav">T<EFBFBD>l<EFBFBD>chargement</a></td>
<td align="center"><a href="./quick_sample.html" class="btn_nav">Exemple rapide</a></td>
<td align="center" onmouseover="showHideElementById('menu_tuto', true);"
onmouseout="showHideElementById('menu_tuto', false);">
<a href="./tutorial.html" class="btn_nav">Tutoriel (4)</a>
<table class="table_menu_tuto">
<tbody>
<tr>
<td>
<div id="menu_tuto" class="div_menu_tuto">
<a href="./tutorial_3.html" class="btn_sub_menu">install QxOrm</a><br />
<a href="./tutorial.html" class="btn_sub_menu">qxBlog</a><br />
<a href="./tutorial_2.html" class="btn_sub_menu">qxClientServer</a><br />
<a href="./tutorial_4.html" class="btn_sub_menu">QxEntityEditor videos</a>
</div>
</td>
</tr>
</tbody>
</table>
</td>
<td align="center" onmouseover="showHideElementById('menu_manual', true);"
onmouseout="showHideElementById('menu_manual', false);">
<a href="./manual.html" class="btn_nav">Manuel (2)</a>
<table class="table_menu_manual">
<tbody>
<tr>
<td>
<div id="menu_manual" class="div_menu_manual">
<a href="./manual.html" class="btn_sub_menu">Manuel QxOrm</a><br />
<a href="./manual_qxee.html" class="btn_sub_menu">Manuel QxEntityEditor</a><br />
</div>
</td>
</tr>
</tbody>
</table>
</td>
<td align="center"><a href="./link.html" class="btn_nav">Forum</a></td>
<td align="center"><a href="./customer.html" class="btn_nav">Nos clients</a></td>
</tr>
</tbody>
</table>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxOrm &gt;&gt; Forum</font>
</td>
<td align="right" valign="top">
<table cellspacing="0" cellpadding="1">
<col>
<col>
<tbody>
<tr>
<td align="right" valign="top">
<font size="2" class="txt_with_shadow">Version courante :&nbsp;</font>
</td>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxOrm 1.5.0 - <a href="../doxygen/index.html"
target="_blank">documentation en ligne de la biblioth<74>que QxOrm</a> - <a
href="https://github.com/QxOrm/QxOrm" target="_blank">GitHub</a></font>
</td>
</tr>
<tr>
<td align="right" valign="top">
<font size="2" class="txt_with_shadow"></font>
</td>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxEntityEditor 1.2.8</font>
</td>
</tr>
</tbody>
</table>
</td>
<td width="10px"></td>
<td width="40px" height="30px"><a href="../qxorm_fr/link.html"><img alt="Version fran<61>aise du site"
src="./resource/FR.png" width="40" height="30" border="0"></a></td>
<td width="40px" height="30px"><a href="../qxorm_en/link.html"><img alt="Web site english version"
src="./resource/GB.png" width="40" height="30" border="0"></a></td>
<td width="40px" height="30px"><a href="http://sites.google.com/site/qxormpostgres/" target="_blank"><img alt=""
src="./resource/ES.png" width="40" height="30" border="0"></a></td>
</tr>
</tbody>
</table>
<table border="1" frame="vsides" rules="cols" style="width: 80%" align="center" cellpadding="6" bgcolor="#F2F2F4">
<col>
<tbody>
<tr>
<td align="justify">
<table border="0" style="width: 100%" align="center">
<col>
<col>
<tbody>
<tr>
<td>
Si vous trouvez un bug ou si vous avez une question concernant le fonctionnement de la biblioth<74>que
<b>QxOrm</b> ou de l'application <b>QxEntityEditor</b> :
<table border="0" style="width: 100%" align="center">
<col>
<col>
<col>
<tbody>
<tr>
<td width="350px">
<ul>
<li><a href="https://github.com/QxOrm/QxOrm/issues" target="_blank">
<font size="4"><b>QxOrm &amp; QxEntityEditor GitHub</b></font>
</a></li>
<li><a href="https://www.qxorm.com/forum/phpbb/" target="_blank">
<font size="4"><b>QxOrm &amp; QxEntityEditor forum</b></font>
</a></li>
<li><a
href="https://www.developpez.net/forums/f1563/c-cpp/bibliotheques/qt/bases-donnees/qxorm/"
target="_blank">
<font size="4"><b>QxOrm &amp; QxEntityEditor forum (FR)</b></font>
</a></li>
</ul>
</td>
<td align="left" width="200px">
<a href="https://www.qxorm.com/forum/phpbb/" target="_blank"><img alt="QxOrm forum"
src="./resource/logo_qxorm_small.png" width="168" height="40" border="0"></a>
</td>
<td align="left">
<a href="https://www.qxorm.com/forum/phpbb/" target="_blank"><img alt="QxEntityEditor forum"
src="../qxentityeditor/resource/qxee_logo_small.png" border="0"></a>
</td>
</tr>
</table>
<br>
Pour toutes questions relatives aux librairies <b>boost</b> et <b>Qt</b> :
<table border="0" style="width: 100%" align="center">
<col>
<col>
<col>
<tbody>
<tr>
<td width="200px">
<ul>
<li><a href="http://forum.qt.io/" target="_blank">Qt forum</a></li>
<li><a href="http://www.boost.org/" target="_blank">boost forum</a></li>
</ul>
</td>
<td align="left" width="100px">
<a href="http://forum.qt.io/" target="_blank"><img alt="Qt forum" src="./resource/logo_qt.jpg"
width="42" height="50" border="0"></a>
</td>
<td align="left">
<a href="http://www.boost.org/" target="_blank"><img alt="boost forum"
src="./resource/logo_boost.jpg" width="161" height="50" border="0"></a>
</td>
</tr>
</table>
</td>
<td width="200" align="center" valign="top"><a href="./resource/qt_ambassador_logo.png"
target="_blank"><img alt="qt_ambassador" src="./resource/qt_ambassador_logo_150x150.png" width="150"
height="150" border="0"></a><br>
<b>
<font size="2">QxOrm library has been accepted into the <a
href="http://forum.qt.io/category/24/qt-ambassador-program" target="_blank">Qt Ambassador
Program</a></font>
</b>
</td>
</tr>
</tbody>
</table>
<br>
Voici une liste de sites fran<61>ais concernant tous les domaines du d<>veloppement logiciel avec forums,
tutoriaux, documentations, etc...
<ul>
<li><a href="http://www.developpez.com/" target="_blank">Developpez.com - Club des d<>cideurs et
professionnels en Informatique</a>
</li>
<li><a href="http://www.siteduzero.com/" target="_blank">Le Site du Z<>ro</a>
</li>
<li><a href="http://www.qtfr.org/" target="_blank">Qtfr</a>
</li>
</ul>
</td>
</tr>
</tbody>
</table>
<br>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<tbody>
<tr>
<td align="left" valign="middle">
<img alt="QxOrm" src="./resource/logo_qxorm_small.png" width="168" height="40">
</td>
<td align="center" valign="middle">
<font size="2"><EFBFBD> 2011-202XDL Teamty - <a href="mailto:ic-east.com">ic-east.com</a></font>
</td>
<td align="right" valign="middle">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="2K4Z58ZYAYJ6S">
<input type="image" src="./resource/paypal_support_qxorm_library.gif" border="0" name="submit"
alt="Support QxOrm library - PayPal">
<img alt="" border="0" src="https://www.paypalobjects.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
</form>
</td>
</tr>
</tbody>
</table>
</body>
</html>

13103
doc/qxorm_fr/manual.html Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

177
doc/qxorm_fr/model.html Normal file
View File

@@ -0,0 +1,177 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>QxOrm : C++ Qt ORM Object Relational Mapping database library - QxEntityEditor : C++ Qt entities graphic editor
(data model designer and source code generator)</title>
<link rel='stylesheet' type='text/css' href='./resource/qxorm_style.css'>
<script type="text/javascript" src="./resource/jquery.min.js"></script>
<script type="text/javascript" src="./resource/qxorm_script.js"></script>
</head>
<body>
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td><a href="./home.html"><img alt="QxOrm" src="./resource/logo_qxorm_and_qxee.png" align="left" border="0"></a>
</td>
<td align="right" style="vertical-align:bottom">
<div id="qx_search">
<gcse:search></gcse:search>
</div>
</td>
<td width="15"></td>
<td align="right" style="vertical-align:bottom">
<img alt="Windows" src="./resource/logo_windows.gif" width="35" height="35">
<img alt="Linux" src="./resource/logo_linux.gif" width="35" height="35">
<img alt="Macintosh" src="./resource/logo_mac.gif" width="35" height="35">
</td>
<td width="70"><img alt="C++" src="./resource/logo_cpp.gif" width="50" height="50" align="right"></td>
</tr>
</tbody>
</table>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td align="center"><a href="./home.html" class="btn_nav">Accueil</a></td>
<td align="center"><a href="./download.html" class="btn_nav">T<EFBFBD>l<EFBFBD>chargement</a></td>
<td align="center"><a href="./quick_sample.html" class="btn_nav">Exemple rapide</a></td>
<td align="center" onmouseover="showHideElementById('menu_tuto', true);"
onmouseout="showHideElementById('menu_tuto', false);">
<a href="./tutorial.html" class="btn_nav">Tutoriel (4)</a>
<table class="table_menu_tuto">
<tbody>
<tr>
<td>
<div id="menu_tuto" class="div_menu_tuto">
<a href="./tutorial_3.html" class="btn_sub_menu">install QxOrm</a><br />
<a href="./tutorial.html" class="btn_sub_menu">qxBlog</a><br />
<a href="./tutorial_2.html" class="btn_sub_menu">qxClientServer</a><br />
<a href="./tutorial_4.html" class="btn_sub_menu">QxEntityEditor videos</a>
</div>
</td>
</tr>
</tbody>
</table>
</td>
<td align="center" onmouseover="showHideElementById('menu_manual', true);"
onmouseout="showHideElementById('menu_manual', false);">
<a href="./manual.html" class="btn_nav">Manuel (2)</a>
<table class="table_menu_manual">
<tbody>
<tr>
<td>
<div id="menu_manual" class="div_menu_manual">
<a href="./manual.html" class="btn_sub_menu">Manuel QxOrm</a><br />
<a href="./manual_qxee.html" class="btn_sub_menu">Manuel QxEntityEditor</a><br />
</div>
</td>
</tr>
</tbody>
</table>
</td>
<td align="center"><a href="./link.html" class="btn_nav">Forum</a></td>
<td align="center"><a href="./customer.html" class="btn_nav">Nos clients</a></td>
</tr>
</tbody>
</table>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxOrm &gt;&gt; [model]</font>
</td>
<td align="right" valign="top">
<table cellspacing="0" cellpadding="1">
<col>
<col>
<tbody>
<tr>
<td align="right" valign="top">
<font size="2" class="txt_with_shadow">Version courante :&nbsp;</font>
</td>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxOrm 1.5.0 - <a href="../doxygen/index.html"
target="_blank">documentation en ligne de la biblioth<74>que QxOrm</a> - <a
href="https://github.com/QxOrm/QxOrm" target="_blank">GitHub</a></font>
</td>
</tr>
<tr>
<td align="right" valign="top">
<font size="2" class="txt_with_shadow"></font>
</td>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxEntityEditor 1.2.8</font>
</td>
</tr>
</tbody>
</table>
</td>
<td width="10px"></td>
<td width="40px" height="30px"><a href="../qxorm_fr/model.html"><img alt="Version fran<61>aise du site"
src="./resource/FR.png" width="40" height="30" border="0"></a></td>
<td width="40px" height="30px"><a href="../qxorm_en/model.html"><img alt="Web site english version"
src="./resource/GB.png" width="40" height="30" border="0"></a></td>
<td width="40px" height="30px"><a href="http://sites.google.com/site/qxormpostgres/" target="_blank"><img alt=""
src="./resource/ES.png" width="40" height="30" border="0"></a></td>
</tr>
</tbody>
</table>
<table border="1" frame="vsides" rules="cols" style="width: 80%" align="center" cellpadding="6" bgcolor="#F2F2F4">
<col>
<tbody>
<tr>
<td align="justify">
</td>
</tr>
</tbody>
</table>
<br>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<tbody>
<tr>
<td align="left" valign="middle">
<img alt="QxOrm" src="./resource/logo_qxorm_small.png" width="168" height="40">
</td>
<td align="center" valign="middle">
<font size="2"><EFBFBD> 2011-202XDL Teamty - <a href="mailto:ic-east.com">ic-east.com</a></font>
</td>
<td align="right" valign="middle">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="2K4Z58ZYAYJ6S">
<input type="image" src="./resource/paypal_support_qxorm_library.gif" border="0" name="submit"
alt="Support QxOrm library - PayPal">
<img alt="" border="0" src="https://www.paypalobjects.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
</form>
</td>
</tr>
</tbody>
</table>
</body>
</html>

View File

@@ -0,0 +1,460 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>QxOrm : C++ Qt ORM Object Relational Mapping database library - QxEntityEditor : C++ Qt entities graphic editor
(data model designer and source code generator)</title>
<link rel='stylesheet' type='text/css' href='./resource/qxorm_style.css'>
<script type="text/javascript" src="./resource/jquery.min.js"></script>
<script type="text/javascript" src="./resource/qxorm_script.js"></script>
</head>
<body>
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td><a href="./home.html"><img alt="QxOrm" src="./resource/logo_qxorm_and_qxee.png" align="left" border="0"></a>
</td>
<td align="right" style="vertical-align:bottom">
<div id="qx_search">
<gcse:search></gcse:search>
</div>
</td>
<td width="15"></td>
<td align="right" style="vertical-align:bottom">
<img alt="Windows" src="./resource/logo_windows.gif" width="35" height="35">
<img alt="Linux" src="./resource/logo_linux.gif" width="35" height="35">
<img alt="Macintosh" src="./resource/logo_mac.gif" width="35" height="35">
</td>
<td width="70"><img alt="C++" src="./resource/logo_cpp.gif" width="50" height="50" align="right"></td>
</tr>
</tbody>
</table>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td align="center"><a href="./home.html" class="btn_nav">Accueil</a></td>
<td align="center"><a href="./download.html" class="btn_nav">T<EFBFBD>l<EFBFBD>chargement</a></td>
<td align="center"><a href="./quick_sample.html" class="btn_nav">Exemple rapide</a></td>
<td align="center" onmouseover="showHideElementById('menu_tuto', true);"
onmouseout="showHideElementById('menu_tuto', false);">
<a href="./tutorial.html" class="btn_nav">Tutoriel (4)</a>
<table class="table_menu_tuto">
<tbody>
<tr>
<td>
<div id="menu_tuto" class="div_menu_tuto">
<a href="./tutorial_3.html" class="btn_sub_menu">install QxOrm</a><br />
<a href="./tutorial.html" class="btn_sub_menu">qxBlog</a><br />
<a href="./tutorial_2.html" class="btn_sub_menu">qxClientServer</a><br />
<a href="./tutorial_4.html" class="btn_sub_menu">QxEntityEditor videos</a>
</div>
</td>
</tr>
</tbody>
</table>
</td>
<td align="center" onmouseover="showHideElementById('menu_manual', true);"
onmouseout="showHideElementById('menu_manual', false);">
<a href="./manual.html" class="btn_nav">Manuel (2)</a>
<table class="table_menu_manual">
<tbody>
<tr>
<td>
<div id="menu_manual" class="div_menu_manual">
<a href="./manual.html" class="btn_sub_menu">Manuel QxOrm</a><br />
<a href="./manual_qxee.html" class="btn_sub_menu">Manuel QxEntityEditor</a><br />
</div>
</td>
</tr>
</tbody>
</table>
</td>
<td align="center"><a href="./link.html" class="btn_nav">Forum</a></td>
<td align="center"><a href="./customer.html" class="btn_nav">Nos clients</a></td>
</tr>
</tbody>
</table>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxOrm &gt;&gt; Exemple rapide</font>
</td>
<td align="right" valign="top">
<table cellspacing="0" cellpadding="1">
<col>
<col>
<tbody>
<tr>
<td align="right" valign="top">
<font size="2" class="txt_with_shadow">Version courante :&nbsp;</font>
</td>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxOrm 1.5.0 - <a href="../doxygen/index.html"
target="_blank">documentation en ligne de la biblioth<74>que QxOrm</a> - <a
href="https://github.com/QxOrm/QxOrm" target="_blank">GitHub</a></font>
</td>
</tr>
<tr>
<td align="right" valign="top">
<font size="2" class="txt_with_shadow"></font>
</td>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxEntityEditor 1.2.8</font>
</td>
</tr>
</tbody>
</table>
</td>
<td width="10px"></td>
<td width="40px" height="30px"><a href="../qxorm_fr/quick_sample.html"><img alt="Version fran<61>aise du site"
src="./resource/FR.png" width="40" height="30" border="0"></a></td>
<td width="40px" height="30px"><a href="../qxorm_en/quick_sample.html"><img alt="Web site english version"
src="./resource/GB.png" width="40" height="30" border="0"></a></td>
<td width="40px" height="30px"><a href="http://sites.google.com/site/qxormpostgres/" target="_blank"><img alt=""
src="./resource/ES.png" width="40" height="30" border="0"></a></td>
</tr>
</tbody>
</table>
<table border="1" frame="vsides" rules="cols" style="width: 80%" align="center" cellpadding="6" bgcolor="#F2F2F4">
<col>
<tbody>
<tr>
<td align="justify">
<table border="0" style="width: 100%" align="center">
<col>
<col>
<tbody>
<tr>
<td><b>Dans ce chapitre, nous allons traiter un exemple
rapide d'utilisation qui pr<70>sente les fonctionnalit<69>s de base de la
biblioth<74>que QxOrm.</b> <br>
<br>
<i>Remarque :</i> la biblioth<74>que <b>QxOrm</b> utilise les <b>conventions d'<27>criture de code C++</b>
suivantes :
<ul>
<li>toutes les classes, fonctions, variables, etc... sont d<>finies sous le <a
href="./resource/qxorm.namespace.qx.jpg"><i>namespace qx</i></a>
</li>
<li>les macro de QxOrm sont <20>crites sous la forme <i>QX_...</i>
</li>
<li>les classes abstraites (ou interfaces) sont pr<70>fix<69>es par <i>Ix</i> (par exemple
<i>IxFactory</i> est une interface pour la cr<63>ation d'instances)
</li>
<li>les autres classes sont pr<70>fix<69>es par <i>Qx</i> (par exemple <i>QxDataMember</i>)
</li>
<li>les collections d'objets ont pour suffixe <i>X</i> (par exemple <i>QxDataMemberX</i> est une
collection de <i>QxDataMember</i>)
</li>
<li>les fonctions pour communiquer avec les bases de donn<6E>es se trouvent sous le <a
href="./resource/qxorm.namespace.qx.dao.jpg"><i>namespace qx::dao</i></a> (par exemple
<i>qx::dao::fetch_by_id()</i>)
</li>
<li>les fonctions pour la <i>serialization</i> des donn<6E>es se trouvent sous le <a
href="./resource/qxorm.namespace.qx.serialization.jpg"><i>namespace qx::serialization</i></a>
(par exemple <i>qx::serialization::xml::to_file()</i>)
</li>
<li>le moteur de <i>reflection</i> est accessible depuis la classe <b><i>qx::QxClassX</i></b> (par
exemple <i>qx::QxClassX::invoke()</i> pour invoquer une m<>thode de classe)
</li>
<li>les classes de traits se trouvent sous le <a
href="./resource/qxorm.namespace.qx.trait.jpg"><i>namespace qx::trait</i></a> (par exemple
<i>qx::trait::is_smart_ptr&lt;T&gt;</i>)
</li>
</ul>
</td>
<td width="200" align="center" valign="top"><a href="./resource/qt_ambassador_logo.png"
target="_blank"><img alt="qt_ambassador" src="./resource/qt_ambassador_logo_150x150.png" width="150"
height="150" border="0"></a><br>
<b>
<font size="2">QxOrm library has been accepted into the <a
href="http://forum.qt.io/category/24/qt-ambassador-program" target="_blank">Qt Ambassador
Program</a></font>
</b>
</td>
</tr>
</tbody>
</table>
<i>Autre Remarque :</i> un exemple plus complet (avec notion d'h<>ritage, de
relations entre tables, de collections, de libraries partag<61>es, de
memory leak, etc...) est pr<70>sent dans le dossier <i>./test/qxDllSample/</i> de la
distribution de QxOrm. Ce dossier <i>./test/qxDllSample/</i> contient 2 projets de
type dll et 1 projet de type ex<65>cutable : <i>./dll1/</i>,
<i>./dll2/</i> et <i>./exe/</i>.<br> La solution compl<70>te peut <20>tre
compil<69>e avec <b>Visual C++ 2008, 2010 ou 2012</b> sous Windows (ouvrir le fichier
<i>./test/qxDllSample/test.sln</i>).<br>
Elle peut <20>tre <20>galement compil<69>e avec <b>GCC</b> sous Linux et <b>MinGW</b> sous Windows en utilisant la
commande <i>qmake</i>. <br>
<br>
L'exemple qui suit pr<70>sente diff<66>rentes <20>tapes :
<ul>
<li><a href="#quick_sample_1">1- fichier <i>drug.h</i> : d<>finition
d'une classe <i>drug</i> avec 3 attributs : <i>id</i>, <i>name</i>
et <i>description</i></a></li>
<li><a href="#quick_sample_2">2- fichier <i>drug.cpp</i> :
impl<70>mentation de la 'fonction de param<61>trage' : <i>void
qx::register_class()</i></a></li>
<li><a href="#quick_sample_3">3- fichier <i>main.cpp</i> :
pr<70>sentation des fonctionnalit<69>s de base de QxOrm avec la classe
<i>drug</i></a></li>
<li><a href="#quick_sample_4">4- ex<65>cution du programme de test et
affichage des traces g<>n<EFBFBD>r<EFBFBD>es</a></li>
<li><a href="#quick_sample_5">5- contenu du fichier
<i>./export_drugs.xml</i> cr<63><72> par le programme de test</a></li>
</ul>
<br>
<font color="#100D5A"><a name="quick_sample_1">*
-----------------------------------------------------------------------------------------------------<br>
* 1- fichier <i>drug.h</i> : d<>finition d'une classe <i>drug</i> avec 3
attributs : <i>id</i>, <i>name</i> et <i>description</i></a><br>
*
-----------------------------------------------------------------------------------------------------<br>
</font><br>
<table border="1" bgcolor="#FFFFFF">
<col>
<tbody>
<tr>
<td title="drug.h">
<pre><span class="pre">#ifndef _CLASS_DRUG_H_
#define _CLASS_DRUG_H_
</span><span class="keyword">
class</span> drug<span class="operator">
{</span><span class="keyword">
public</span><span class="operator">:</span><span class="type">
long</span> id<span class="operator">;</span>
QString name<span class="operator">;</span>
QString description<span class="operator">;</span>
drug<span class="operator">() :</span> id<span class="operator">(</span><span class="int">0</span><span class="operator">) { ; }</span><span class="keyword">
virtual</span><span class="operator"> ~</span>drug<span class="operator">() { ; }
};</span>
QX_REGISTER_HPP_MY_TEST_EXE<span class="operator">(</span>drug<span class="operator">,</span> qx<span class="operator">::</span>trait<span class="operator">::</span>no_base_class_defined<span class="operator">,</span><span class="int"> 1</span><span class="operator">)</span><span class="comment">
/* This macro is necessary to register 'drug' class in QxOrm context */
/* param 1 : the current class to register =&gt; 'drug' */
/* param 2 : the base class, if no base class, use the qx trait =&gt; 'qx::trait::no_base_class_defined' */
/* param 3 : the class version used by serialization to provide 'ascendant compatibility' */</span><span class="pre">
#endif <span class="comment">// _CLASS_DRUG_H_</span></span></pre>
</td>
</tr>
</tbody>
</table>
<br><br>
<font color="#100D5A"><a name="quick_sample_2">*
----------------------------------------------------------------------------------------------------<br>
* 2- fichier <i>drug.cpp</i> : impl<70>mentation de la 'fonction de
param<61>trage' : <i>void qx::register_class()</i><br>
*
----------------------------------------------------------------------------------------------------
</a></font><br><br>
<table border="1" bgcolor="#FFFFFF">
<col>
<tbody>
<tr>
<td title="drug.cpp">
<pre><span class="pre">#include <span class="string">"precompiled.h"</span> <span class="comment">// Precompiled-header with '#include &lt;QxOrm.h&gt;' and '#include "export.h"'</span>
#include <span class="string">"drug.h"</span> <span class="comment">// Class definition 'drug'</span>
#include <span class="string">&lt;QxOrm_Impl.h&gt;</span> <span class="comment">// Automatic memory leak detection and boost serialization export macro</span>
</span>
QX_REGISTER_CPP_MY_TEST_EXE<span class="operator">(</span>drug<span class="operator">)</span><span class="comment"> // This macro is necessary to register 'drug' class in QxOrm context
</span><span class="keyword">
namespace</span> qx<span class="operator"> {</span><span class="keyword">
template</span><span class="operator"> &lt;&gt;</span><span class="type"> void</span> register_class<span class="operator">(</span>QxClass<span class="operator">&lt;</span>drug<span class="operator">&gt; &amp;</span> t<span class="operator">)
{</span>
t<span class="operator">.</span>id<span class="operator">(&amp;</span> drug<span class="operator">::</span>id<span class="operator">,</span><span class="string"> "id"</span><span class="operator">);</span><span class="comment"> // Register 'drug::id' &lt;=&gt; primary key in your database
</span> t<span class="operator">.</span>data<span class="operator">(&amp;</span> drug<span class="operator">::</span>name<span class="operator">,</span><span class="string"> "name"</span><span class="operator">,</span><span class="int"> 1</span><span class="operator">);</span><span class="comment"> // Register 'drug::name' property with key 'name' and version '1'
</span> t<span class="operator">.</span>data<span class="operator">(&amp;</span> drug<span class="operator">::</span>description<span class="operator">,</span><span class="string"> "desc"</span><span class="operator">);</span><span class="comment"> // Register 'drug::description' property with key 'desc'
</span><span class="operator">}}</span></pre>
</td>
</tr>
</tbody>
</table>
<br>
<br>
<font color="#100D5A"><a name="quick_sample_3">*
-----------------------------------------------------------------------------------------------<br>
* 3- fichier <i>main.cpp</i> : pr<70>sentation des fonctionnalit<69>s de base
de QxOrm avec la classe <i>drug</i><br>
*
-----------------------------------------------------------------------------------------------
</a></font><br><br>
<table border="1" bgcolor="#FFFFFF">
<col>
<tbody>
<tr>
<td title="main.cpp">
<pre><span class="pre">#include <span class="string">"precompiled.h"</span>
#include <span class="string">"drug.h"</span>
#include <span class="string">&lt;QxOrm_Impl.h&gt;</span>
</span><span class="type">
int</span><span class="keyword"> main</span><span class="operator">(</span><span class="type">int</span> argc<span class="operator">,</span><span class="type"> char</span><span class="operator"> *</span> argv<span class="operator">[])
{</span>
QApplication app<span class="operator">(</span>argc<span class="operator">,</span> argv<span class="operator">);</span><span class="comment"> // Qt application
// Create 3 new drugs
// It is possible to use 'std' and 'Qt' smart pointer : 'std::shared_ptr', 'QSharedPointer', etc...
</span><span class="keyword"> typedef</span> std<span class="operator">::</span>shared_ptr<span class="operator">&lt;</span>drug<span class="operator">&gt;</span> drug_ptr<span class="operator">;</span>
drug_ptr d1<span class="operator">;</span> d1<span class="operator">.</span>reset<span class="operator">(</span><span class="keyword">new</span> drug<span class="operator">());</span> d1<span class="operator">-&gt;</span>name<span class="operator"> =</span><span class="string"> "name1"</span><span class="operator">;</span> d1<span class="operator">-&gt;</span>description<span class="operator"> =</span><span class="string"> "desc1"</span><span class="operator">;</span>
drug_ptr d2<span class="operator">;</span> d2<span class="operator">.</span>reset<span class="operator">(</span><span class="keyword">new</span> drug<span class="operator">());</span> d2<span class="operator">-&gt;</span>name<span class="operator"> =</span><span class="string"> "name2"</span><span class="operator">;</span> d2<span class="operator">-&gt;</span>description<span class="operator"> =</span><span class="string"> "desc2"</span><span class="operator">;</span>
drug_ptr d3<span class="operator">;</span> d3<span class="operator">.</span>reset<span class="operator">(</span><span class="keyword">new</span> drug<span class="operator">());</span> d3<span class="operator">-&gt;</span>name<span class="operator"> =</span><span class="string"> "name3"</span><span class="operator">;</span> d3<span class="operator">-&gt;</span>description<span class="operator"> =</span><span class="string"> "desc3"</span><span class="operator">;</span><span class="comment">
// Insert drugs into container
// It is possible to use a lot of containers from 'std', 'boost', 'Qt' and 'qx::QxCollection&lt;Key, Value&gt;'
</span><span class="keyword"> typedef</span> std<span class="operator">::</span>vector<span class="operator">&lt;</span>drug_ptr<span class="operator">&gt;</span> type_lst_drug<span class="operator">;</span>
type_lst_drug lst_drug<span class="operator">;</span>
lst_drug<span class="operator">.</span>push_back<span class="operator">(</span>d1<span class="operator">);</span>
lst_drug<span class="operator">.</span>push_back<span class="operator">(</span>d2<span class="operator">);</span>
lst_drug<span class="operator">.</span>push_back<span class="operator">(</span>d3<span class="operator">);</span><span class="comment">
// Init parameters to communicate with a database
</span> qx<span class="operator">::</span>QxSqlDatabase<span class="operator">::</span>getSingleton<span class="operator">()-&gt;</span>setDriverName<span class="operator">(</span><span class="string">"QSQLITE"</span><span class="operator">);</span>
qx<span class="operator">::</span>QxSqlDatabase<span class="operator">::</span>getSingleton<span class="operator">()-&gt;</span>setDatabaseName<span class="operator">(</span><span class="string">"./test_qxorm.db"</span><span class="operator">);</span>
qx<span class="operator">::</span>QxSqlDatabase<span class="operator">::</span>getSingleton<span class="operator">()-&gt;</span>setHostName<span class="operator">(</span><span class="string">"localhost"</span><span class="operator">);</span>
qx<span class="operator">::</span>QxSqlDatabase<span class="operator">::</span>getSingleton<span class="operator">()-&gt;</span>setUserName<span class="operator">(</span><span class="string">"root"</span><span class="operator">);</span>
qx<span class="operator">::</span>QxSqlDatabase<span class="operator">::</span>getSingleton<span class="operator">()-&gt;</span>setPassword<span class="operator">(</span><span class="string">""</span><span class="operator">);</span><span class="comment">
// Create table 'drug' into database to store drugs
</span> QSqlError daoError<span class="operator"> =</span> qx<span class="operator">::</span>dao<span class="operator">::</span>create_table<span class="operator">&lt;</span>drug<span class="operator">&gt;();</span><span class="comment">
// Insert drugs from container to database
// 'id' property of 'd1', 'd2' and 'd3' are auto-updated
</span> daoError<span class="operator"> =</span> qx<span class="operator">::</span>dao<span class="operator">::</span>insert<span class="operator">(</span>lst_drug<span class="operator">);</span><span class="comment">
// Modify and update the second drug into database
</span> d2<span class="operator">-&gt;</span>name<span class="operator"> =</span><span class="string"> "name2 modified"</span><span class="operator">;</span>
d2<span class="operator">-&gt;</span>description<span class="operator"> =</span><span class="string"> "desc2 modified"</span><span class="operator">;</span>
daoError<span class="operator"> =</span> qx<span class="operator">::</span>dao<span class="operator">::</span>update<span class="operator">(</span>d2<span class="operator">);</span><span class="comment">
// Delete the first drug from database
</span> daoError<span class="operator"> =</span> qx<span class="operator">::</span>dao<span class="operator">::</span>delete_by_id<span class="operator">(</span>d1<span class="operator">);</span><span class="comment">
// Count drugs into database
</span><span class="type"> long</span> lDrugCount<span class="operator"> =</span> qx<span class="operator">::</span>dao<span class="operator">::</span>count<span class="operator">&lt;</span>drug<span class="operator">&gt;();</span><span class="comment">
// Fetch drug with id '3' into a new variable
</span> drug_ptr d_tmp<span class="operator">;</span> d_tmp<span class="operator">.</span>reset<span class="operator">(</span><span class="keyword">new</span> drug<span class="operator">());</span>
d_tmp<span class="operator">-&gt;</span>id<span class="operator"> =</span><span class="int"> 3</span><span class="operator">;</span>
daoError<span class="operator"> =</span> qx<span class="operator">::</span>dao<span class="operator">::</span>fetch_by_id<span class="operator">(</span>d_tmp<span class="operator">);</span><span class="comment">
// Export drugs from container to a file under xml format (serialization)
</span> qx<span class="operator">::</span>serialization<span class="operator">::</span>xml<span class="operator">::</span>to_file<span class="operator">(</span>lst_drug<span class="operator">,</span><span class="string"> "./export_drugs.xml"</span><span class="operator">);</span><span class="comment">
// Import drugs from xml file into a new container
</span> type_lst_drug lst_drug_tmp<span class="operator">;</span>
qx<span class="operator">::</span>serialization<span class="operator">::</span>xml<span class="operator">::</span>from_file<span class="operator">(</span>lst_drug_tmp<span class="operator">,</span><span class="string"> "./export_drugs.xml"</span><span class="operator">);</span><span class="comment">
// Clone a drug
</span> drug_ptr d_clone<span class="operator"> =</span> qx<span class="operator">::</span>clone<span class="operator">(*</span> d1<span class="operator">);</span><span class="comment">
// Create a new drug by class name (factory)
</span> qx<span class="operator">::</span>any d_any<span class="operator"> =</span> qx<span class="operator">::</span>create<span class="operator">(</span><span class="string">"drug"</span><span class="operator">);</span><span class="comment">
// Insert drugs container into 'qx::cache'
</span> qx<span class="operator">::</span>cache<span class="operator">::</span>set<span class="operator">(</span><span class="string">"drugs"</span><span class="operator">,</span> lst_drug<span class="operator">);</span><span class="comment">
// Remove all elements from 'qx::cache'
</span> qx<span class="operator">::</span>cache<span class="operator">::</span>clear<span class="operator">();</span><span class="comment">
// Create a dummy memory leak
</span> drug<span class="operator"> *</span> pDummy<span class="operator"> =</span><span class="keyword"> new</span> drug<span class="operator">();</span><span class="flow">
return</span><span class="int"> 0</span><span class="operator">;
}</span></pre>
</td>
</tr>
</tbody>
</table>
<br>
<p>
<font color="#100D5A"><a name="quick_sample_4">*
-------------------------------------------------------------------------<br>
* 4- ex<65>cution du programme de test et affichage des traces g<>n<EFBFBD>r<EFBFBD>es<br>
*
-------------------------------------------------------------------------</a>
</font><br>
</p>
<p></p>
<font size="2">[QxOrm] qx::QxSqlDatabase : create new database
connection in thread '3616' with key
'{d315250c-b5c9-46e0-9402-f800368a6673}'<br>
[QxOrm] sql query (78 ms) : CREATE TABLE drug (id INTEGER NOT NULL
PRIMARY KEY AUTOINCREMENT, name TEXT, desc TEXT)<br>
[QxOrm] sql query (63 ms) : INSERT INTO drug (name, desc) VALUES
(:name, :desc)<br>
[QxOrm] sql query (62 ms) : UPDATE drug SET id = :id, name = :name,
desc = :desc WHERE id = :id_bis<br>
[QxOrm] sql query (63 ms) : DELETE FROM drug WHERE id = :id<br>
[QxOrm] sql query (0 ms) : SELECT COUNT(*) FROM drug<br>
[QxOrm] sql query (0 ms) : SELECT drug.id AS drug_id_0, drug.name AS
drug_name_0, drug.desc AS drug_desc_0 FROM drug WHERE drug_id_0 =
:id<br>
[QxOrm] Leaked object at 0xf52ad8 (size 16, src\main.cpp:74)<br>
[QxOrm] **** 1 memory leaks found **** </font><br>
<br>
<p></p>
<font color="#100D5A"><a name="quick_sample_5">*
------------------------------------------------------------------------------<br>
* 5- contenu du fichier <i>./export_drugs.xml</i> cr<63><72> par le programme
de test<br>
*
------------------------------------------------------------------------------</a>
</font><br>
<br>
<a href="./resource/quick_sample.export_drugs.xml.txt"><img alt="quick_sample.export_drugs.xml"
src="./resource/quick_sample.export_drugs.xml.jpg" width="642" height="452" border="0"></a>
</td>
</tr>
</tbody>
</table>
<br>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<tbody>
<tr>
<td align="left" valign="middle">
<img alt="QxOrm" src="./resource/logo_qxorm_small.png" width="168" height="40">
</td>
<td align="center" valign="middle">
<font size="2"><EFBFBD> 2011-202XDL Teamty - <a href="mailto:ic-east.com">ic-east.com</a></font>
</td>
<td align="right" valign="middle">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="2K4Z58ZYAYJ6S">
<input type="image" src="./resource/paypal_support_qxorm_library.gif" border="0" name="submit"
alt="Support QxOrm library - PayPal">
<img alt="" border="0" src="https://www.paypalobjects.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
</form>
</td>
</tr>
</tbody>
</table>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 942 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

5
doc/qxorm_fr/resource/jquery.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,630 @@
QxOrm library - Copyright (C) 2021 XDL Team (ic-east.com)
You may use, distribute and copy QxOrm library under the terms of the
GNU General Public License version 3, which is displayed below
-------------------------------------------------------------------------
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
-------------------------------------------------------------------------

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@@ -0,0 +1,25 @@
<std.vector-boost.shared_ptr-drug-- class_id="0" tracking_level="0" version="0">
<count>3</count>
<item_version>1</item_version>
<item class_id="1" tracking_level="0" version="1">
<px class_id="2" tracking_level="1" version="1" object_id="_0">
<id>1</id>
<name class_id="3" tracking_level="0" version="0">name1</name>
<desc>desc1</desc>
</px>
</item>
<item>
<px class_id_reference="2" object_id="_1">
<id>2</id>
<name>name2 modified</name>
<desc>desc2 modified</desc>
</px>
</item>
<item>
<px class_id_reference="2" object_id="_2">
<id>3</id>
<name>name3</name>
<desc>desc3</desc>
</px>
</item>
</std.vector-boost.shared_ptr-drug-->

View File

@@ -0,0 +1,162 @@
[QxOrm] qx::QxSqlDatabase : create new database connection in thread '4456' with key '{e986c95d-1cb0-4368-ad9c-3dd4ccd20b84}'
[QxOrm] sql query (93 ms) : DELETE FROM author
[QxOrm] sql query (63 ms) : DELETE FROM comment
[QxOrm] sql query (94 ms) : DELETE FROM category
[QxOrm] sql query (78 ms) : DELETE FROM blog
[QxOrm] sql query (62 ms) : INSERT INTO author (author_id, name, birthdate, sex) VALUES (:author_id, :name, :birthdate, :sex)
[QxOrm] sql query (0 ms) : SELECT COUNT(*) FROM author
[QxOrm] sql query (0 ms) : SELECT author.author_id AS author_author_id_0, author.name AS author_name_0, author.birthdate AS author_birthdate_0, author.sex AS author_sex_0 FROM author WHERE author.sex = :sex
[QxOrm] start dump 'qx::QxCollection<QString, boost::shared_ptr<author>>'
<qx.QxCollection-QString_boost.shared_ptr-author-- class_id="0" tracking_level="0" version="0">
<count>2</count>
<item class_id="1" tracking_level="0" version="0">
<first class_id="2" tracking_level="0" version="0">author_id_2</first>
<second class_id="3" tracking_level="0" version="1">
<px class_id="4" tracking_level="1" version="0" object_id="_0">
<author_id>author_id_2</author_id>
<name>author_2</name>
<birthdate class_id="5" tracking_level="0" version="0">20100409</birthdate>
<sex>1</sex>
<list_blog class_id="6" tracking_level="0" version="0">
<count>0</count>
<item_version>1</item_version>
</list_blog>
</px>
</second>
</item>
<item>
<first>author_id_3</first>
<second>
<px class_id_reference="4" object_id="_1">
<author_id>author_id_3</author_id>
<name>author_3</name>
<birthdate>20100409</birthdate>
<sex>1</sex>
<list_blog>
<count>0</count>
<item_version>1</item_version>
</list_blog>
</px>
</second>
</item>
</qx.QxCollection-QString_boost.shared_ptr-author-->
[QxOrm] end dump 'qx::QxCollection<QString, boost::shared_ptr<author>>'
[QxOrm] sql query (0 ms) : INSERT INTO category (name, description) VALUES (:name, :description)
[QxOrm] sql query (0 ms) : INSERT INTO category (name, description) VALUES (:name, :description)
[QxOrm] sql query (0 ms) : INSERT INTO category (name, description) VALUES (:name, :description)
[QxOrm] sql query (0 ms) : INSERT INTO blog (blog_text, date_creation, author_id) VALUES (:blog_text, :date_creation, :author_id)
[QxOrm] sql query (0 ms) : SELECT blog.blog_id AS blog_blog_id_0 FROM blog WHERE blog_blog_id_0 = :blog_id
[QxOrm] sql query (0 ms) : UPDATE blog SET blog_id = :blog_id, blog_text = :blog_text, date_creation = :date_creation, author_id = :author_id WHERE blog_id = :blog_id_bis
[QxOrm] sql query (78 ms) : INSERT INTO comment (comment_text, date_creation, blog_id) VALUES (:comment_text, :date_creation, :blog_id)
[QxOrm] sql query (78 ms) : INSERT INTO comment (comment_text, date_creation, blog_id) VALUES (:comment_text, :date_creation, :blog_id)
[QxOrm] sql query (0 ms) : SELECT COUNT(*) FROM comment
[QxOrm] sql query (0 ms) : SELECT blog.blog_id AS blog_blog_id_0 FROM blog WHERE blog_blog_id_0 = :blog_id
[QxOrm] sql query (0 ms) : UPDATE blog SET blog_id = :blog_id, blog_text = :blog_text, date_creation = :date_creation, author_id = :author_id WHERE blog_id = :blog_id_bis
[QxOrm] sql query (0 ms) : SELECT category.category_id AS category_category_id_0 FROM category WHERE category_category_id_0 = :category_id
[QxOrm] sql query (0 ms) : UPDATE category SET category_id = :category_id, name = :name, description = :description WHERE category_id = :category_id_bis
[QxOrm] sql query (0 ms) : SELECT category.category_id AS category_category_id_0 FROM category WHERE category_category_id_0 = :category_id
[QxOrm] sql query (0 ms) : UPDATE category SET category_id = :category_id, name = :name, description = :description WHERE category_id = :category_id_bis
[QxOrm] sql query (extra-table) : DELETE FROM category_blog WHERE category_blog.blog_id = :blog_id
[QxOrm] sql query (extra-table) : INSERT INTO category_blog (blog_id, category_id) VALUES (:blog_id, :category_id)
[QxOrm] sql query (0 ms) : SELECT blog.blog_id AS blog_blog_id_0, blog.blog_text AS blog_blog_text_0, blog.date_creation AS blog_date_creation_0, blog.author_id AS blog_author_id_0, author_1.author_id AS author_1_author_id_0, author_1.name AS author_1_name_0, author_1.birthdate AS author_1_birthdate_0, author_1.sex AS author_1_sex_0, comment_2.comment_id AS comment_2_comment_id_0, comment_2.blog_id AS comment_2_blog_id_0, comment_2.comment_text AS comment_2_comment_text_0, comment_2.date_creation AS comment_2_date_creation_0, category_3.category_id AS category_3_category_id_0, category_3.name AS category_3_name_0, category_3.description AS category_3_description_0 FROM blog LEFT OUTER JOIN author author_1 ON author_1_author_id_0 = blog_author_id_0 LEFT OUTER JOIN comment comment_2 ON comment_2_blog_id_0 = blog_blog_id_0 LEFT OUTER JOIN category_blog ON blog_blog_id_0 = category_blog.blog_id LEFT OUTER JOIN category category_3 ON category_blog.category_id = category_3_category_id_0 WHERE blog_blog_id_0 = :blog_id
[QxOrm] start dump 'boost::shared_ptr<blog>'
<boost.shared_ptr-blog- class_id="0" tracking_level="0" version="1">
<px class_id="1" tracking_level="1" version="0" object_id="_0">
<blog_id>113</blog_id>
<blog_text class_id="2" tracking_level="0" version="0">update blog_text_1</blog_text>
<date_creation class_id="3" tracking_level="0" version="0">20100409162612000</date_creation>
<author_id class_id="4" tracking_level="0" version="1">
<px class_id="5" tracking_level="1" version="0" object_id="_1">
<author_id>author_id_2</author_id>
<name>author_2</name>
<birthdate class_id="6" tracking_level="0" version="0">20100409</birthdate>
<sex>1</sex>
<list_blog class_id="7" tracking_level="0" version="0">
<count>0</count>
<item_version>1</item_version>
</list_blog>
</px>
</author_id>
<list_comment class_id="8" tracking_level="0" version="0">
<count>2</count>
<item class_id="9" tracking_level="0" version="1">
<px class_id="10" tracking_level="1" version="0" object_id="_2">
<comment_id>209</comment_id>
<comment_text>comment_1 text</comment_text>
<date_creation>20100409162612000</date_creation>
<blog_id>
<px class_id_reference="1" object_id="_3">
<blog_id>113</blog_id>
<blog_text></blog_text>
<date_creation></date_creation>
<author_id>
<px class_id="-1"></px>
</author_id>
<list_comment>
<count>0</count>
</list_comment>
<list_category class_id="11" tracking_level="0" version="0">
<count>0</count>
</list_category>
</px>
</blog_id>
</px>
</item>
<item>
<px class_id_reference="10" object_id="_4">
<comment_id>210</comment_id>
<comment_text>comment_2 text</comment_text>
<date_creation>20100409162612000</date_creation>
<blog_id>
<px class_id_reference="1" object_id="_5">
<blog_id>113</blog_id>
<blog_text></blog_text>
<date_creation></date_creation>
<author_id>
<px class_id="-1"></px>
</author_id>
<list_comment>
<count>0</count>
</list_comment>
<list_category>
<count>0</count>
</list_category>
</px>
</blog_id>
</px>
</item>
</list_comment>
<list_category>
<count>2</count>
<item class_id="12" tracking_level="0" version="0">
<first>355</first>
<second class_id="13" tracking_level="0" version="0">
<qt_shared_ptr class_id="14" tracking_level="1" version="0" object_id="_6">
<category_id>355</category_id>
<name>category_1</name>
<description>desc_1</description>
<list_blog class_id="15" tracking_level="0" version="0">
<count>0</count>
</list_blog>
</qt_shared_ptr>
</second>
</item>
<item>
<first>357</first>
<second>
<qt_shared_ptr class_id_reference="14" object_id="_7">
<category_id>357</category_id>
<name>category_3</name>
<description>desc_3</description>
<list_blog>
<count>0</count>
</list_blog>
</qt_shared_ptr>
</second>
</item>
</list_category>
</px>
</boost.shared_ptr-blog->
[QxOrm] end dump 'boost::shared_ptr<blog>'

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

View File

@@ -0,0 +1,32 @@
include(../../QxOrm.pri)
TEMPLATE = app
DEFINES += _BUILDING_QX_BLOG
DESTDIR = ../../../QxOrm/test/_bin/
INCLUDEPATH += ../../../QxOrm/include/
LIBS += -L"../../../QxOrm/test/_bin"
!contains(DEFINES, _QX_NO_PRECOMPILED_HEADER) {
PRECOMPILED_HEADER = ./include/precompiled.h
} # !contains(DEFINES, _QX_NO_PRECOMPILED_HEADER)
CONFIG(debug, debug|release) {
TARGET = qxBlogd
LIBS += -l"QxOrmd"
} else {
TARGET = qxBlog
LIBS += -l"QxOrm"
} # CONFIG(debug, debug|release)
HEADERS += ./include/precompiled.h
HEADERS += ./include/export.h
HEADERS += ./include/author.h
HEADERS += ./include/blog.h
HEADERS += ./include/category.h
HEADERS += ./include/comment.h
SOURCES += ./src/author.cpp
SOURCES += ./src/blog.cpp
SOURCES += ./src/category.cpp
SOURCES += ./src/comment.cpp
SOURCES += ./src/main.cpp

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

View File

@@ -0,0 +1,33 @@
include(../../../QxOrm.pri)
TEMPLATE = lib
CONFIG += dll
DEFINES += _BUILDING_QX_SERVICE
INCLUDEPATH += ../../../../QxOrm/include/
DESTDIR = ../../../../QxOrm/test/_bin/
LIBS += -L"../../../../QxOrm/test/_bin"
!contains(DEFINES, _QX_NO_PRECOMPILED_HEADER) {
PRECOMPILED_HEADER = ./include/precompiled.h
} # !contains(DEFINES, _QX_NO_PRECOMPILED_HEADER)
CONFIG(debug, debug|release) {
LIBS += -l"QxOrmd"
} else {
LIBS += -l"QxOrm"
} # CONFIG(debug, debug|release)
HEADERS += ./include/precompiled.h
HEADERS += ./include/export.h
HEADERS += ./include/service/server_infos.h
HEADERS += ./include/service/user_service.h
HEADERS += ./include/business_object/user.h
HEADERS += ./include/business_object/user_search.h
HEADERS += ./include/dao/user_manager.h
SOURCES += ./src/service/server_infos.cpp
SOURCES += ./src/service/user_service.cpp
SOURCES += ./src/business_object/user.cpp
SOURCES += ./src/business_object/user_search.cpp
SOURCES += ./src/dao/user_manager.cpp
SOURCES += ./src/main.cpp

View File

@@ -0,0 +1,11 @@
include(./qxService.pri)
DEFINES += _QX_SERVICE_MODE_CLIENT
CONFIG(debug, debug|release) {
OBJECTS_DIR = ./debug/debug_client/
TARGET = qxServiceClientd
} else {
OBJECTS_DIR = ./release/release_client/
TARGET = qxServiceClient
} # CONFIG(debug, debug|release)

View File

@@ -0,0 +1,9 @@
include(./qxService.pri)
CONFIG(debug, debug|release) {
OBJECTS_DIR = ./debug/debug_server/
TARGET = qxServiceServerd
} else {
OBJECTS_DIR = ./release/release_server/
TARGET = qxServiceServer
} # CONFIG(debug, debug|release)

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -0,0 +1,101 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="generator" content="C++2HTML by Jasper Bedaux">
<style type="text/css">
.comment { color: #008000; font-style: italic; }
.pre { color: #000099; }
.string { color: #DF0101; }
.char { color: #009900; }
.float { color: #996600; }
.int { color: #999900; }
.bool { color: #000000; font-weight: bold; }
.type { color: #FF6633; }
.flow { color: #FF0000; }
.keyword { color: #990000; }
.operator { color: #663300; font-weight: bold; }
.operator { color: #663300; font-weight: bold; }
</style>
</head>
<body>
<pre><span class="pre">
#include "../include/precompiled.h"
#include "../include/QxPersistable.h"
#include &lt;QxOrm_Impl.h&gt;
</span>
QX_REGISTER_COMPLEX_CLASS_NAME_CPP_QX_DLL1<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator">,</span> qx_QxPersistable<span class="operator">)</span><span class="keyword">
namespace</span> qx<span class="operator"> {</span><span class="keyword">
template</span><span class="operator"> &lt;&gt;</span><span class="type">
void</span> register_class<span class="operator">(</span>QxClass<span class="operator">&lt;</span>qx<span class="operator">::</span>QxPersistable<span class="operator">&gt; &amp;</span> t<span class="operator">)
{</span>
t<span class="operator">.</span>setPropertyBag<span class="operator">(</span><span class="string">"QX_NOT_PERSISTABLE"</span><span class="operator">,</span><span class="string"> "1"</span><span class="operator">);</span>
t<span class="operator">.</span>setSoftDelete<span class="operator">(</span>qx<span class="operator">::</span>QxSoftDelete<span class="operator">(</span><span class="string">"qx_deleted_at"</span><span class="operator">));</span>
t<span class="operator">.</span>id<span class="operator">(&amp;</span> qx<span class="operator">::</span>QxPersistable<span class="operator">::</span>m_qxId<span class="operator">,</span><span class="string"> "qx_id"</span><span class="operator">);</span>
t<span class="operator">.</span>data<span class="operator">(&amp;</span> qx<span class="operator">::</span>QxPersistable<span class="operator">::</span>m_qxDateCreation<span class="operator">,</span><span class="string"> "qx_date_creation"</span><span class="operator">);</span>
t<span class="operator">.</span>data<span class="operator">(&amp;</span> qx<span class="operator">::</span>QxPersistable<span class="operator">::</span>m_qxDateModification<span class="operator">,</span><span class="string"> "qx_date_modification"</span><span class="operator">);</span>
QxValidatorX<span class="operator">&lt;</span>qx<span class="operator">::</span>QxPersistable<span class="operator">&gt; *</span> pAllValidator<span class="operator"> =</span> t<span class="operator">.</span>getAllValidator<span class="operator">();</span>
pAllValidator<span class="operator">-&gt;</span>add_CustomValidator<span class="operator">(&amp;</span> qx<span class="operator">::</span>QxPersistable<span class="operator">::</span>qxIsValidInternal<span class="operator">);
}</span>
QX_PERSISTABLE_CPP<span class="operator">(</span>QxPersistable<span class="operator">)</span>
QxPersistable<span class="operator">::</span>QxPersistable<span class="operator">() :</span> QObject<span class="operator">(),</span> qx<span class="operator">::</span>IxPersistable<span class="operator">(),</span> m_qxId<span class="operator">(</span><span class="int">0</span><span class="operator">) { ; }</span>
QxPersistable<span class="operator">::~</span>QxPersistable<span class="operator">() { ; }</span><span class="type">
long</span> QxPersistable<span class="operator">::</span>qxGetId<span class="operator">()</span><span class="keyword"> const</span><span class="operator"> {</span><span class="flow"> return</span> m_qxId<span class="operator">; }</span>
QDateTime QxPersistable<span class="operator">::</span>qxGetDateCreation<span class="operator">()</span><span class="keyword"> const</span><span class="operator"> {</span><span class="flow"> return</span> m_qxDateCreation<span class="operator">.</span>toDateTime<span class="operator">(); }</span>
QDateTime QxPersistable<span class="operator">::</span>qxGetDateModification<span class="operator">()</span><span class="keyword"> const</span><span class="operator"> {</span><span class="flow"> return</span> m_qxDateModification<span class="operator">.</span>toDateTime<span class="operator">(); }</span><span class="type">
void</span> QxPersistable<span class="operator">::</span>qxSetId<span class="operator">(</span><span class="type">long</span> l<span class="operator">) {</span> m_qxId<span class="operator"> =</span> l<span class="operator">; }</span><span class="type">
void</span> QxPersistable<span class="operator">::</span>qxSetDateCreation<span class="operator">(</span><span class="keyword">const</span> QDateTime<span class="operator"> &amp;</span> dt<span class="operator">) {</span> m_qxDateCreation<span class="operator">.</span>fromDateTime<span class="operator">(</span>dt<span class="operator">); }</span><span class="type">
void</span> QxPersistable<span class="operator">::</span>qxSetDateModification<span class="operator">(</span><span class="keyword">const</span> QDateTime<span class="operator"> &amp;</span> dt<span class="operator">) {</span> m_qxDateModification<span class="operator">.</span>fromDateTime<span class="operator">(</span>dt<span class="operator">); }</span><span class="type">
void</span> QxPersistable<span class="operator">::</span>qxIsValidInternal<span class="operator">(</span>qx<span class="operator">::</span>QxInvalidValueX<span class="operator"> &amp;</span> invalidValues<span class="operator">) {</span><span class="keyword"> this</span><span class="operator">-&gt;</span>qxIsValid<span class="operator">(</span>invalidValues<span class="operator">); }</span><span class="type">
void</span> QxPersistable<span class="operator">::</span>qxIsValid<span class="operator">(</span>qx<span class="operator">::</span>QxInvalidValueX<span class="operator"> &amp;</span> invalidValues<span class="operator">) {</span> Q_UNUSED<span class="operator">(</span>invalidValues<span class="operator">); }</span><span class="type">
void</span> QxPersistable<span class="operator">::</span>qxOnBeforeInsert<span class="operator">(</span>qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">)
{</span>
Q_UNUSED<span class="operator">(</span>dao<span class="operator">);</span>
m_qxDateCreation<span class="operator">.</span>fromDateTime<span class="operator">(</span>QDateTime<span class="operator">::</span>currentDateTime<span class="operator">());</span>
m_qxDateModification<span class="operator"> =</span> m_qxDateCreation<span class="operator">;</span>
Q_EMIT qxOnBeforeInsert<span class="operator">(</span><span class="keyword">this</span><span class="operator">);
}</span><span class="type">
void</span> QxPersistable<span class="operator">::</span>qxOnBeforeUpdate<span class="operator">(</span>qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">)
{</span>
Q_UNUSED<span class="operator">(</span>dao<span class="operator">);</span>
m_qxDateModification<span class="operator">.</span>fromDateTime<span class="operator">(</span>QDateTime<span class="operator">::</span>currentDateTime<span class="operator">());</span>
Q_EMIT qxOnBeforeUpdate<span class="operator">(</span><span class="keyword">this</span><span class="operator">);
}</span><span class="type">
void</span> QxPersistable<span class="operator">::</span>qxOnBeforeDelete<span class="operator">(</span>qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">) {</span> Q_UNUSED<span class="operator">(</span>dao<span class="operator">);</span> Q_EMIT qxOnBeforeDelete<span class="operator">(</span><span class="keyword">this</span><span class="operator">); }</span><span class="type">
void</span> QxPersistable<span class="operator">::</span>qxOnBeforeFetch<span class="operator">(</span>qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">) {</span> Q_UNUSED<span class="operator">(</span>dao<span class="operator">);</span> Q_EMIT qxOnBeforeFetch<span class="operator">(</span><span class="keyword">this</span><span class="operator">); }</span><span class="type">
void</span> QxPersistable<span class="operator">::</span>qxOnAfterInsert<span class="operator">(</span>qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">) {</span> Q_UNUSED<span class="operator">(</span>dao<span class="operator">);</span> Q_EMIT qxOnAfterInsert<span class="operator">(</span><span class="keyword">this</span><span class="operator">); }</span><span class="type">
void</span> QxPersistable<span class="operator">::</span>qxOnAfterUpdate<span class="operator">(</span>qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">) {</span> Q_UNUSED<span class="operator">(</span>dao<span class="operator">);</span> Q_EMIT qxOnAfterUpdate<span class="operator">(</span><span class="keyword">this</span><span class="operator">); }</span><span class="type">
void</span> QxPersistable<span class="operator">::</span>qxOnAfterDelete<span class="operator">(</span>qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">) {</span> Q_UNUSED<span class="operator">(</span>dao<span class="operator">);</span> Q_EMIT qxOnAfterDelete<span class="operator">(</span><span class="keyword">this</span><span class="operator">); }</span><span class="type">
void</span> QxPersistable<span class="operator">::</span>qxOnAfterFetch<span class="operator">(</span>qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">) {</span> Q_UNUSED<span class="operator">(</span>dao<span class="operator">);</span> Q_EMIT qxOnAfterFetch<span class="operator">(</span><span class="keyword">this</span><span class="operator">); }
}</span><span class="comment"> // namespace qx
</span></pre>
</body></html>

View File

@@ -0,0 +1,165 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="generator" content="C++2HTML by Jasper Bedaux">
<style type="text/css">
.comment { color: #008000; font-style: italic; }
.pre { color: #000099; }
.string { color: #DF0101; }
.char { color: #009900; }
.float { color: #996600; }
.int { color: #999900; }
.bool { color: #000000; font-weight: bold; }
.type { color: #FF6633; }
.flow { color: #FF0000; }
.keyword { color: #990000; }
.operator { color: #663300; font-weight: bold; }
.operator { color: #663300; font-weight: bold; }
</style>
</head>
<body>
<pre><span class="pre">
#ifndef _QX_PERSISTABLE_H_
#define _QX_PERSISTABLE_H_
#ifdef _MSC_VER
#pragma once
#endif
</span><span class="keyword">
namespace</span> qx<span class="operator"> {</span><span class="keyword">
class</span> QxPersistable<span class="operator">;</span><span class="keyword">
namespace</span> dao<span class="operator"> {</span><span class="keyword">
namespace</span> detail<span class="operator"> {</span><span class="keyword">
template</span><span class="operator"> &lt;&gt;</span><span class="keyword">
struct</span> QxDao_Trigger<span class="operator">&lt;</span>qx<span class="operator">::</span>QxPersistable<span class="operator">&gt;;
}</span><span class="comment"> // namespace detail
</span><span class="operator">}</span><span class="comment"> // namespace dao
</span><span class="comment">
/*!
* \brief qx::QxPersistable : super base class for persistent classes with many features and methods to override (be careful, don't forget to use QX_PERSISTABLE_HPP() and QX_PERSISTABLE_CPP() macros for each derived class)
*/</span><span class="keyword">
class</span> QX_DLL1_EXPORT QxPersistable<span class="operator"> :</span><span class="keyword"> public</span> QObject<span class="operator">,</span><span class="keyword"> public</span> qx<span class="operator">::</span>IxPersistable<span class="operator">
{</span>
Q_OBJECT
QX_REGISTER_FRIEND_CLASS<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator">)</span>
QX_PERSISTABLE_HPP<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator">)</span>
Q_PROPERTY<span class="operator">(</span><span class="type"> long</span> qxId READ qxGetId WRITE qxSetId<span class="operator"> )</span>
Q_PROPERTY<span class="operator">(</span> QDateTime qxDateCreation READ qxGetDateCreation WRITE qxSetDateCreation<span class="operator"> )</span>
Q_PROPERTY<span class="operator">(</span> QDateTime qxDateModification READ qxGetDateModification WRITE qxSetDateModification<span class="operator"> )</span><span class="keyword">
friend struct</span> qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>QxDao_Trigger<span class="operator">&lt;</span>qx<span class="operator">::</span>QxPersistable<span class="operator">&gt;;</span><span class="keyword">
protected</span><span class="operator">:</span><span class="type">
long</span> m_qxId<span class="operator">;</span><span class="comment"> //!&lt; Id of current instance stored into database
</span> qx<span class="operator">::</span>QxDateTimeNeutral m_qxDateCreation<span class="operator">;</span><span class="comment"> //!&lt; Creation date-time automatically calculated before INSERT query
</span> qx<span class="operator">::</span>QxDateTimeNeutral m_qxDateModification<span class="operator">;</span><span class="comment"> //!&lt; Modification date-time automatically calculated before INSERT and UPDATE queries
</span><span class="keyword">
public</span><span class="operator">:</span>
QxPersistable<span class="operator">();</span><span class="keyword">
virtual</span><span class="operator"> ~</span>QxPersistable<span class="operator">();</span><span class="type">
long</span> qxGetId<span class="operator">()</span><span class="keyword"> const</span><span class="operator">;</span>
QDateTime qxGetDateCreation<span class="operator">()</span><span class="keyword"> const</span><span class="operator">;</span>
QDateTime qxGetDateModification<span class="operator">()</span><span class="keyword"> const</span><span class="operator">;</span><span class="type">
void</span> qxSetId<span class="operator">(</span><span class="type">long</span> l<span class="operator">);</span><span class="type">
void</span> qxSetDateCreation<span class="operator">(</span><span class="keyword">const</span> QDateTime<span class="operator"> &amp;</span> dt<span class="operator">);</span><span class="type">
void</span> qxSetDateModification<span class="operator">(</span><span class="keyword">const</span> QDateTime<span class="operator"> &amp;</span> dt<span class="operator">);</span><span class="keyword">
protected</span><span class="operator">:</span><span class="comment">
// -- List of useful protected methods to override into derived class -- //
</span><span class="keyword">
virtual</span><span class="type"> void</span> qxIsValid<span class="operator">(</span>qx<span class="operator">::</span>QxInvalidValueX<span class="operator"> &amp;</span> invalidValues<span class="operator">);</span><span class="keyword">
virtual</span><span class="type"> void</span> qxOnBeforeInsert<span class="operator">(</span>qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">);</span><span class="keyword">
virtual</span><span class="type"> void</span> qxOnBeforeUpdate<span class="operator">(</span>qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">);</span><span class="keyword">
virtual</span><span class="type"> void</span> qxOnBeforeDelete<span class="operator">(</span>qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">);</span><span class="keyword">
virtual</span><span class="type"> void</span> qxOnBeforeFetch<span class="operator">(</span>qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">);</span><span class="keyword">
virtual</span><span class="type"> void</span> qxOnAfterInsert<span class="operator">(</span>qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">);</span><span class="keyword">
virtual</span><span class="type"> void</span> qxOnAfterUpdate<span class="operator">(</span>qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">);</span><span class="keyword">
virtual</span><span class="type"> void</span> qxOnAfterDelete<span class="operator">(</span>qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">);</span><span class="keyword">
virtual</span><span class="type"> void</span> qxOnAfterFetch<span class="operator">(</span>qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">);</span><span class="keyword">
private</span><span class="operator">:</span><span class="type">
void</span> qxIsValidInternal<span class="operator">(</span>qx<span class="operator">::</span>QxInvalidValueX<span class="operator"> &amp;</span> invalidValues<span class="operator">);</span>
Q_SIGNALS<span class="operator">:</span><span class="type">
void</span> qxOnBeforeInsert<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator"> *</span> p<span class="operator">);</span><span class="type">
void</span> qxOnBeforeUpdate<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator"> *</span> p<span class="operator">);</span><span class="type">
void</span> qxOnBeforeDelete<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator"> *</span> p<span class="operator">);</span><span class="type">
void</span> qxOnBeforeFetch<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator"> *</span> p<span class="operator">);</span><span class="type">
void</span> qxOnAfterInsert<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator"> *</span> p<span class="operator">);</span><span class="type">
void</span> qxOnAfterUpdate<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator"> *</span> p<span class="operator">);</span><span class="type">
void</span> qxOnAfterDelete<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator"> *</span> p<span class="operator">);</span><span class="type">
void</span> qxOnAfterFetch<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator"> *</span> p<span class="operator">);</span><span class="keyword">
public</span><span class="operator">:</span><span class="comment">
// -- List of useful public methods available from 'qx::IxPersistable' interface (using QX_PERSISTABLE_HPP() and QX_PERSISTABLE_CPP() macros) -- //
</span><span class="comment">
/*
virtual long qxCount(const qx::QxSqlQuery &amp; query = qx::QxSqlQuery(), QSqlDatabase * pDatabase = NULL);
virtual QSqlError qxFetchById(const QVariant &amp; id = QVariant(), const QStringList &amp; columns = QStringList(), const QStringList &amp; relation = QStringList(), QSqlDatabase * pDatabase = NULL);
virtual QSqlError qxFetchAll(qx::IxCollection &amp; list, const QStringList &amp; columns = QStringList(), const QStringList &amp; relation = QStringList(), QSqlDatabase * pDatabase = NULL);
virtual QSqlError qxFetchByQuery(const qx::QxSqlQuery &amp; query, qx::IxCollection &amp; list, const QStringList &amp; columns = QStringList(), const QStringList &amp; relation = QStringList(), QSqlDatabase * pDatabase = NULL);
virtual QSqlError qxInsert(const QStringList &amp; relation = QStringList(), QSqlDatabase * pDatabase = NULL);
virtual QSqlError qxUpdate(const qx::QxSqlQuery &amp; query = qx::QxSqlQuery(), const QStringList &amp; columns = QStringList(), const QStringList &amp; relation = QStringList(), QSqlDatabase * pDatabase = NULL);
virtual QSqlError qxSave(const QStringList &amp; relation = QStringList(), QSqlDatabase * pDatabase = NULL);
virtual QSqlError qxDeleteById(const QVariant &amp; id = QVariant(), QSqlDatabase * pDatabase = NULL);
virtual QSqlError qxDeleteAll(QSqlDatabase * pDatabase = NULL);
virtual QSqlError qxDeleteByQuery(const qx::QxSqlQuery &amp; query, QSqlDatabase * pDatabase = NULL);
virtual QSqlError qxDestroyById(const QVariant &amp; id = QVariant(), QSqlDatabase * pDatabase = NULL);
virtual QSqlError qxDestroyAll(QSqlDatabase * pDatabase = NULL);
virtual QSqlError qxDestroyByQuery(const qx::QxSqlQuery &amp; query, QSqlDatabase * pDatabase = NULL);
virtual qx_bool qxExist(const QVariant &amp; id = QVariant(), QSqlDatabase * pDatabase = NULL);
virtual qx::QxInvalidValueX qxValidate(const QStringList &amp; groups = QStringList());
virtual qx::IxPersistableCollection_ptr qxNewPersistableCollection() const;
virtual qx::IxClass * qxClass() const;
*/</span><span class="operator">
};</span><span class="keyword">
typedef</span> boost<span class="operator">::</span>shared_ptr<span class="operator">&lt;</span>qx<span class="operator">::</span>QxPersistable<span class="operator">&gt;</span> QxPersistable_ptr<span class="operator">;
}</span><span class="comment"> // namespace qx
</span>
QX_REGISTER_COMPLEX_CLASS_NAME_HPP_QX_DLL1<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator">,</span> QObject<span class="operator">,</span><span class="int"> 0</span><span class="operator">,</span> qx_QxPersistable<span class="operator">)</span><span class="keyword">
namespace</span> qx<span class="operator"> {</span><span class="keyword">
namespace</span> dao<span class="operator"> {</span><span class="keyword">
namespace</span> detail<span class="operator"> {</span><span class="keyword">
template</span><span class="operator"> &lt;&gt;</span><span class="keyword">
struct</span> QxDao_Trigger<span class="operator">&lt;</span>qx<span class="operator">::</span>QxPersistable<span class="operator">&gt;
{</span><span class="keyword">
static inline</span><span class="type"> void</span> onBeforeInsert<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator"> *</span> t<span class="operator">,</span> qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">) {</span><span class="flow"> if</span><span class="operator"> (</span>t<span class="operator">) {</span> t<span class="operator">-&gt;</span>qxOnBeforeInsert<span class="operator">(</span>dao<span class="operator">); } }</span><span class="keyword">
static inline</span><span class="type"> void</span> onBeforeUpdate<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator"> *</span> t<span class="operator">,</span> qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">) {</span><span class="flow"> if</span><span class="operator"> (</span>t<span class="operator">) {</span> t<span class="operator">-&gt;</span>qxOnBeforeUpdate<span class="operator">(</span>dao<span class="operator">); } }</span><span class="keyword">
static inline</span><span class="type"> void</span> onBeforeDelete<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator"> *</span> t<span class="operator">,</span> qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">) {</span><span class="flow"> if</span><span class="operator"> (</span>t<span class="operator">) {</span> t<span class="operator">-&gt;</span>qxOnBeforeDelete<span class="operator">(</span>dao<span class="operator">); } }</span><span class="keyword">
static inline</span><span class="type"> void</span> onBeforeFetch<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator"> *</span> t<span class="operator">,</span> qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">) {</span><span class="flow"> if</span><span class="operator"> (</span>t<span class="operator">) {</span> t<span class="operator">-&gt;</span>qxOnBeforeFetch<span class="operator">(</span>dao<span class="operator">); } }</span><span class="keyword">
static inline</span><span class="type"> void</span> onAfterInsert<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator"> *</span> t<span class="operator">,</span> qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">) {</span><span class="flow"> if</span><span class="operator"> (</span>t<span class="operator">) {</span> t<span class="operator">-&gt;</span>qxOnAfterInsert<span class="operator">(</span>dao<span class="operator">); } }</span><span class="keyword">
static inline</span><span class="type"> void</span> onAfterUpdate<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator"> *</span> t<span class="operator">,</span> qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">) {</span><span class="flow"> if</span><span class="operator"> (</span>t<span class="operator">) {</span> t<span class="operator">-&gt;</span>qxOnAfterUpdate<span class="operator">(</span>dao<span class="operator">); } }</span><span class="keyword">
static inline</span><span class="type"> void</span> onAfterDelete<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator"> *</span> t<span class="operator">,</span> qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">) {</span><span class="flow"> if</span><span class="operator"> (</span>t<span class="operator">) {</span> t<span class="operator">-&gt;</span>qxOnAfterDelete<span class="operator">(</span>dao<span class="operator">); } }</span><span class="keyword">
static inline</span><span class="type"> void</span> onAfterFetch<span class="operator">(</span>qx<span class="operator">::</span>QxPersistable<span class="operator"> *</span> t<span class="operator">,</span> qx<span class="operator">::</span>dao<span class="operator">::</span>detail<span class="operator">::</span>IxDao_Helper<span class="operator"> *</span> dao<span class="operator">) {</span><span class="flow"> if</span><span class="operator"> (</span>t<span class="operator">) {</span> t<span class="operator">-&gt;</span>qxOnAfterFetch<span class="operator">(</span>dao<span class="operator">); } }
};
}</span><span class="comment"> // namespace detail
</span><span class="operator">}</span><span class="comment"> // namespace dao
</span><span class="operator">}</span><span class="comment"> // namespace qx
</span><span class="pre">
#endif // _QX_PERSISTABLE_H_</span></pre>
</body></html>

View File

@@ -0,0 +1,121 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="generator" content="C++2HTML by Jasper Bedaux">
<style type="text/css">
.comment { color: #008000; font-style: italic; }
.pre { color: #000099; }
.string { color: #DF0101; }
.char { color: #009900; }
.float { color: #996600; }
.int { color: #999900; }
.bool { color: #000000; font-weight: bold; }
.type { color: #FF6633; }
.flow { color: #FF0000; }
.keyword { color: #990000; }
.operator { color: #663300; font-weight: bold; }
.operator { color: #663300; font-weight: bold; }
</style>
</head>
<body>
<pre>QString QxClassX<span class="operator">::</span>dumpSqlSchema<span class="operator">()
{</span>
qDebug<span class="operator">(</span><span class="string">"[QxOrm] qx::QxClassX::dumpSqlSchema() : %s"</span><span class="operator">,</span><span class="string"> "be careful with this function, it's just an example and tested only with SQLite database, so it's strongly recommended to write your own function to create your SQL schema"</span><span class="operator">);</span>
QxCollection<span class="operator">&lt;</span>QString<span class="operator">,</span> IxClass<span class="operator"> *&gt; *</span> pAllClasses<span class="operator"> =</span> QxClassX<span class="operator">::</span>getAllClasses<span class="operator">();</span><span class="flow">
if</span><span class="operator"> (!</span> pAllClasses<span class="operator">) {</span> qAssert<span class="operator">(</span><span class="bool">false</span><span class="operator">);</span><span class="flow"> return</span><span class="string"> ""</span><span class="operator">; }</span>
QString sql<span class="operator">;</span><span class="type"> long</span> lSqlCount<span class="operator"> =</span><span class="int"> 0</span><span class="operator">;</span><span class="flow">
for</span><span class="operator"> (</span><span class="type">long</span> k<span class="operator"> =</span><span class="int"> 0</span><span class="operator">;</span> k<span class="operator"> &lt;</span> pAllClasses<span class="operator">-&gt;</span>count<span class="operator">();</span> k<span class="operator">++)
{</span>
IxClass<span class="operator"> *</span> pClass<span class="operator"> =</span> pAllClasses<span class="operator">-&gt;</span>getByIndex<span class="operator">(</span>k<span class="operator">);</span><span class="flow">
if</span><span class="operator"> (!</span> pClass<span class="operator">) {</span><span class="flow"> continue</span><span class="operator">; }</span><span class="comment">
// If the class is a parameter or a service from 'QxService' module, it's not a persistent class
</span><span class="flow"> if</span><span class="operator"> (</span>pClass<span class="operator">-&gt;</span>isKindOf<span class="operator">(</span><span class="string">"qx::service::IxParameter"</span><span class="operator">) ||</span> pClass<span class="operator">-&gt;</span>isKindOf<span class="operator">(</span><span class="string">"qx::service::IxService"</span><span class="operator">)) {</span><span class="flow"> continue</span><span class="operator">; }</span><span class="comment">
// ----
// Here, you can filter other classes using property bag (meta-data), for example :
// QString sProp = pClass-&gt;getPropertyBag("NOT_A_DATABASE_OBJECT").toString();
// if (sProp == "1") { continue; }
// ----
// Get the version of the class : if (version = 0) then 'CREATE TABLE', else if (version &gt; 0) then 'ALTER TABLE'
</span><span class="type"> long</span> lVersion<span class="operator"> =</span> pClass<span class="operator">-&gt;</span>getVersion<span class="operator">();</span><span class="type">
bool</span> bCreateTable<span class="operator"> = (</span>lVersion<span class="operator"> &lt;=</span><span class="int"> 0</span><span class="operator">);</span>
sql<span class="operator"> += (</span>bCreateTable<span class="operator"> ?</span><span class="string"> "CREATE TABLE "</span><span class="operator"> :</span><span class="string"> "ALTER TABLE "</span><span class="operator">);</span>
sql<span class="operator"> +=</span> pClass<span class="operator">-&gt;</span>getName<span class="operator">() +</span><span class="string"> " "</span><span class="operator">;</span>
sql<span class="operator"> += (</span>bCreateTable<span class="operator"> ?</span><span class="string"> "("</span><span class="operator"> :</span><span class="string"> "ADD ("</span><span class="operator">);</span><span class="comment">
// Get the primary key (id) of table, all columns into table, and other parameters associated to table
</span> IxDataMember<span class="operator"> *</span> pId<span class="operator"> =</span> pClass<span class="operator">-&gt;</span>getId<span class="operator">();</span>
IxDataMemberX<span class="operator"> *</span> pDataMemberX<span class="operator"> =</span> pClass<span class="operator">-&gt;</span>getDataMemberX<span class="operator">();</span>
QxSoftDelete oSoftDelete<span class="operator"> =</span> pClass<span class="operator">-&gt;</span>getSoftDelete<span class="operator">();</span><span class="comment">
// Insert primary key (id) to SQL schema
</span><span class="flow"> if</span><span class="operator"> (</span>pId<span class="operator"> &amp;&amp; (</span>bCreateTable<span class="operator"> || (</span>pId<span class="operator">-&gt;</span>getVersion<span class="operator">() &gt;=</span> lVersion<span class="operator">)))
{</span> sql<span class="operator"> +=</span> pId<span class="operator">-&gt;</span>getSqlNameAndTypeAndParams<span class="operator">(</span><span class="string">", "</span><span class="operator">) +</span><span class="string"> ", "</span><span class="operator">;</span> qAssert<span class="operator">(!</span> pId<span class="operator">-&gt;</span>getSqlType<span class="operator">().</span>isEmpty<span class="operator">()); }</span><span class="comment">
// Insert all columns to SQL schema
</span><span class="flow"> for</span><span class="operator"> (</span><span class="type">long</span> l<span class="operator"> =</span><span class="int"> 0</span><span class="operator">; (</span>pDataMemberX<span class="operator"> &amp;&amp; (</span>l<span class="operator"> &lt;</span> pDataMemberX<span class="operator">-&gt;</span>count_WithDaoStrategy<span class="operator">()));</span> l<span class="operator">++)
{</span>
IxDataMember<span class="operator"> *</span> p<span class="operator"> =</span> pDataMemberX<span class="operator">-&gt;</span>get_WithDaoStrategy<span class="operator">(</span>l<span class="operator">);</span><span class="flow">
if</span><span class="operator"> (</span>isValid_DataMember<span class="operator">(</span>p<span class="operator">) &amp;&amp; (</span>p<span class="operator"> !=</span> pId<span class="operator">) &amp;&amp; (</span>bCreateTable<span class="operator"> || (</span>p<span class="operator">-&gt;</span>getVersion<span class="operator">() &gt;=</span> lVersion<span class="operator">)))
{</span> sql<span class="operator"> +=</span> p<span class="operator">-&gt;</span>getSqlNameAndTypeAndParams<span class="operator">(</span><span class="string">", "</span><span class="operator">) +</span><span class="string"> ", "</span><span class="operator">;</span> qAssert<span class="operator">(!</span> p<span class="operator">-&gt;</span>getSqlType<span class="operator">().</span>isEmpty<span class="operator">()); }</span><span class="comment">
// ----
// Here, you can use property bag (meta-data) to add some SQL features, for example :
// QString sProp = p-&gt;getPropertyBag("INDEX").toString();
// if (sProp == "1") { sql += "CREATE INDEX" + etc...; }
// ----
</span><span class="operator"> }</span><span class="comment">
// Insert soft delete behaviour to SQL schema
</span><span class="flow"> if</span><span class="operator"> (</span>bCreateTable<span class="operator"> &amp;&amp; !</span> oSoftDelete<span class="operator">.</span>isEmpty<span class="operator">())
{</span> sql<span class="operator"> +=</span> oSoftDelete<span class="operator">.</span>buildSqlQueryToCreateTable<span class="operator">() +</span><span class="string"> ", "</span><span class="operator">; }</span><span class="comment">
// Insert all relations to SQL schema
</span><span class="flow"> for</span><span class="operator"> (</span><span class="type">long</span> l<span class="operator"> =</span><span class="int"> 0</span><span class="operator">; (</span>pDataMemberX<span class="operator"> &amp;&amp; (</span>l<span class="operator"> &lt;</span> pDataMemberX<span class="operator">-&gt;</span>count_WithDaoStrategy<span class="operator">()));</span> l<span class="operator">++)
{</span>
IxDataMember<span class="operator"> *</span> p<span class="operator"> =</span> pDataMemberX<span class="operator">-&gt;</span>get_WithDaoStrategy<span class="operator">(</span>l<span class="operator">);</span>
QxSqlRelationParams params<span class="operator">(</span><span class="int">0</span><span class="operator">,</span><span class="int"> 0</span><span class="operator">, (&amp;</span> sql<span class="operator">),</span> NULL<span class="operator">,</span> NULL<span class="operator">,</span> NULL<span class="operator">);</span><span class="flow">
if</span><span class="operator"> (</span>isValid_SqlRelation<span class="operator">(</span>p<span class="operator">) &amp;&amp; (</span>p<span class="operator"> !=</span> pId<span class="operator">) &amp;&amp; (</span>bCreateTable<span class="operator"> || (</span>p<span class="operator">-&gt;</span>getVersion<span class="operator">() &gt;=</span> lVersion<span class="operator">)))
{</span> p<span class="operator">-&gt;</span>getSqlRelation<span class="operator">()-&gt;</span>createTable<span class="operator">(</span>params<span class="operator">); }
}</span><span class="comment">
// Terminate SQL schema for current class
</span> sql<span class="operator"> =</span> sql<span class="operator">.</span>left<span class="operator">(</span>sql<span class="operator">.</span>count<span class="operator">() -</span><span class="int"> 2</span><span class="operator">);</span><span class="comment"> // Remove last ", "
</span> sql<span class="operator"> +=</span><span class="string"> ")\n"</span><span class="operator">;</span>
lSqlCount<span class="operator">++;</span><span class="comment">
// Create extra-table from relations (for example, many-to-many relation needs an extra-table)
</span><span class="flow"> for</span><span class="operator"> (</span><span class="type">long</span> l<span class="operator"> =</span><span class="int"> 0</span><span class="operator">; (</span>pDataMemberX<span class="operator"> &amp;&amp; (</span>l<span class="operator"> &lt;</span> pDataMemberX<span class="operator">-&gt;</span>count_WithDaoStrategy<span class="operator">()));</span> l<span class="operator">++)
{</span>
IxDataMember<span class="operator"> *</span> p<span class="operator"> =</span> pDataMemberX<span class="operator">-&gt;</span>get_WithDaoStrategy<span class="operator">(</span>l<span class="operator">);</span><span class="flow">
if</span><span class="operator"> (</span>isValid_SqlRelation<span class="operator">(</span>p<span class="operator">) &amp;&amp; (</span>p<span class="operator"> !=</span> pId<span class="operator">) &amp;&amp; (</span>bCreateTable<span class="operator"> || (</span>p<span class="operator">-&gt;</span>getVersion<span class="operator">() &gt;=</span> lVersion<span class="operator">)))
{</span>
QString sqlExtraTable<span class="operator"> =</span> p<span class="operator">-&gt;</span>getSqlRelation<span class="operator">()-&gt;</span>createExtraTable<span class="operator">();</span><span class="flow">
if</span><span class="operator"> (</span>sqlExtraTable<span class="operator">.</span>isEmpty<span class="operator">()) {</span><span class="flow"> continue</span><span class="operator">; }</span>
sql<span class="operator"> +=</span> sqlExtraTable<span class="operator"> +</span><span class="string"> "\n"</span><span class="operator">;
}
}
}</span>
qDebug<span class="operator">(</span><span class="string">"[QxOrm] start dump SQL schema (%ld)"</span><span class="operator">,</span> lSqlCount<span class="operator">);</span>
qDebug<span class="operator">(</span><span class="string">"%s"</span><span class="operator">,</span> qPrintable<span class="operator">(</span>sql<span class="operator">));</span>
qDebug<span class="operator">(</span><span class="string">"[QxOrm] %s"</span><span class="operator">,</span><span class="string"> "end dump SQL schema"</span><span class="operator">);</span><span class="flow">
return</span> sql<span class="operator">;
}</span><span class="type">
bool</span> QxClassX<span class="operator">::</span>isValid_DataMember<span class="operator">(</span>IxDataMember<span class="operator"> *</span> p<span class="operator">)
{</span><span class="flow">
return</span><span class="operator"> (</span>p<span class="operator"> &amp;&amp;</span> p<span class="operator">-&gt;</span>getDao<span class="operator">() &amp;&amp; !</span> p<span class="operator">-&gt;</span>hasSqlRelation<span class="operator">());
}</span><span class="type">
bool</span> QxClassX<span class="operator">::</span>isValid_SqlRelation<span class="operator">(</span>IxDataMember<span class="operator"> *</span> p<span class="operator">)
{</span><span class="type">
bool</span> bIsValid<span class="operator"> = (</span>p<span class="operator"> &amp;&amp;</span> p<span class="operator">-&gt;</span>getDao<span class="operator">() &amp;&amp;</span> p<span class="operator">-&gt;</span>hasSqlRelation<span class="operator">());</span><span class="flow">
if</span><span class="operator"> (</span>bIsValid<span class="operator">) {</span> p<span class="operator">-&gt;</span>getSqlRelation<span class="operator">()-&gt;</span>init<span class="operator">(); }</span><span class="flow">
return</span> bIsValid<span class="operator">;
}</span></pre>
</body></html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

View File

@@ -0,0 +1,92 @@
function showHideElementById(id, show) {
var obj = document.getElementById(id);
var objParent = (obj ? obj.parentNode : null);
if (obj && ! show) { obj.style.display = 'none'; }
else if (obj) { obj.style.display = 'block'; }
if (objParent && ! show) { objParent.style.display = 'none'; }
else if (objParent) { objParent.style.display = 'block'; }
}
(function() {
var cx = '017860332352182638653:t-roc8qak5q';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = ((document.location.protocol == 'https:') ? 'https:' : 'http:') + '//cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
function initQxOrmManualWebPage() {
// Put an index on each item of table of contents
var currLevel1 = 0; var currLevel2 = 0; var currLevel3 = 0;
$('#manual_table_of_contents .manual_li_title_1 a').each(function(index, value) {
if ($(this).parent().hasClass('manual_li_title_1')) {
currLevel1 = (currLevel1 + 1); currLevel2 = 0; currLevel3 = 0;
$(this).text(currLevel1 + '. ' + $(this).text());
}
else if ($(this).parent().hasClass('manual_li_title_2')) {
currLevel2 = (currLevel2 + 1); currLevel3 = 0;
$(this).text(currLevel1 + '.' + currLevel2 + '. ' + $(this).text());
}
else if ($(this).parent().hasClass('manual_li_title_3')) {
currLevel3 = (currLevel3 + 1);
$(this).text(currLevel1 + '.' + currLevel2 + '.' + currLevel3 + '. ' + $(this).text());
}
else {
alert('QxOrm - Manual - Table of contents - level not implemented !');
}
});
// Remove default ol/li style
$('.manual_li_title_1').css('list-style-type', 'none');
$('.manual_li_title_2').css('list-style-type', 'none');
$('.manual_li_title_3').css('list-style-type', 'none');
// Put an index on each paragraph associated to table of contents
var currLevel1 = 0; var currLevel2 = 0; var currLevel3 = 0;
$('#manual_content a').each(function(index, value) {
if ($(this).hasClass('manual_a_title_1')) {
currLevel1 = (currLevel1 + 1); currLevel2 = 0; currLevel3 = 0;
$(this).text(currLevel1 + '. ' + $(this).text());
}
else if ($(this).hasClass('manual_a_title_2')) {
currLevel2 = (currLevel2 + 1); currLevel3 = 0;
$(this).text(currLevel1 + '.' + currLevel2 + '. ' + $(this).text());
}
else if ($(this).hasClass('manual_a_title_3')) {
currLevel3 = (currLevel3 + 1);
$(this).text(currLevel1 + '.' + currLevel2 + '.' + currLevel3 + '. ' + $(this).text());
}
});
// Iterate over all 'json_pretty' div
$('#manual_content .json_pretty').each(function(index, value) {
try {
var jsonObj = JSON.parse($(this).text());
var jsonPretty = JSON.stringify(jsonObj, null, 2);
var jsonHighlighted = jsonSyntaxHighlight(jsonPretty);
$(this).html(""); $(this).get(0).appendChild(document.createElement('pre')).innerHTML = jsonHighlighted;
}
catch(exc) { ; }
});
}
function jsonSyntaxHighlight(json) {
json = json.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
return json.replace(/("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g, function (match) {
var cls = 'number';
if (/^"/.test(match)) {
if (/:$/.test(match)) {
cls = 'key';
} else {
cls = 'string';
}
} else if (/true|false/.test(match)) {
cls = 'boolean';
} else if (/null/.test(match)) {
cls = 'null';
}
return '<span class="' + cls + '">' + match + '</span>';
});
}

View File

@@ -0,0 +1,427 @@
/* From reset-meyer.css : http://meyerweb.com/eric/tools/css/reset/ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video
{
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
}
body
{
background: #FFFFFF ;
background-image: url('./background.jpg') ;
background-repeat: no-repeat ;
background-position: top left ;
background-color: FFFFFF ;
background-attachment: fixed ;
}
.comment { color: #008000; font-style: italic; }
.pre { color: #000099; }
.string { color: #DF0101; }
.char { color: #009900; }
.float { color: #996600; }
.int { color: #999900; }
.bool { color: #000000; font-weight: bold; }
.type { color: #FF6633; }
.flow { color: #FF0000; }
.keyword { color: #990000; }
.operator { color: #663300; font-weight: bold; }
.operator { color: #663300; font-weight: bold; }
hr
{
border: 0;
height: 1px;
background: #333;
background-image: -webkit-gradient(linear, left, right, from(#ccc), color-stop(1, #333), to(#ccc));
background-image: -webkit-linear-gradient(left, #ccc, #333, #ccc);
background-image: -moz-linear-gradient(left, #ccc, #333, #ccc);
background-image: -ms-linear-gradient(left, #ccc, #333, #ccc);
background-image: -o-linear-gradient(left, #ccc, #333, #ccc);
background-image: linear-gradient(left, #ccc, #333, #ccc);
box-shadow: 1px 1px 2px #D7D7D7;
}
.btn_nav
{
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #8f96c9), color-stop(1, #3e3d7a));
background: -webkit-linear-gradient(center top, #8f96c9 5%, #3e3d7a 100%);
background: -moz-linear-gradient(center top, #8f96c9 5%, #3e3d7a 100%);
background: -ms-linear-gradient(top, #8f96c9 5%, #3e3d7a 100%);
background: -o-linear-gradient(center top, #8f96c9 5%, #3e3d7a 100%);
background: linear-gradient(center top, #8f96c9 5%, #3e3d7a 100%);
background-color: #8f96c9;
-webkit-border-top-left-radius: 20px;
-moz-border-radius-topleft: 20px;
border-top-left-radius: 20px;
-webkit-border-top-right-radius: 0px;
-moz-border-radius-topright: 0px;
border-top-right-radius: 0px;
-webkit-border-bottom-right-radius: 20px;
-moz-border-radius-bottomright: 20px;
border-bottom-right-radius: 20px;
-webkit-border-bottom-left-radius: 0px;
-moz-border-radius-bottomleft: 0px;
border-bottom-left-radius: 0px;
text-indent: 0px;
border: 1px solid #3d4385;
display: inline-block;
color: #ffffff;
font-weight: bold;
font-style: normal;
height: 35px;
line-height: 35px;
width: 140px;
text-decoration: none;
text-align: center;
box-shadow: 2px 2px 2px #B9B9B9;
}
.btn_nav:hover
{
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #3e3d7a), color-stop(1, #8f96c9));
background: -webkit-linear-gradient(center top, #3e3d7a 5%, #8f96c9 100%);
background: -moz-linear-gradient(center top, #3e3d7a 5%, #8f96c9 100%);
background: -ms-linear-gradient(top, #3e3d7a 5%, #8f96c9 100%);
background: -o-linear-gradient(center top, #3e3d7a 5%, #8f96c9 100%);
background: linear-gradient(center top, #3e3d7a 5%, #8f96c9 100%);
background-color: #3e3d7a;
}
.btn_nav:active
{
position: relative;
top: 1px;
}
.btn_tuto
{
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #c4c5d9), color-stop(1, #efeef4));
background: -webkit-linear-gradient(center top, #c4c5d9 5%, #efeef4 100%);
background: -moz-linear-gradient(center top, #c4c5d9 5%, #efeef4 100%);
background: -ms-linear-gradient(top, #c4c5d9 5%, #efeef4 100%);
background: -o-linear-gradient(center top, #c4c5d9 5%, #efeef4 100%);
background: linear-gradient(center top, #c4c5d9 5%, #efeef4 100%);
background-color: #c4c5d9;
-webkit-border-top-left-radius: 20px;
-moz-border-radius-topleft: 20px;
border-top-left-radius: 20px;
-webkit-border-top-right-radius: 0px;
-moz-border-radius-topright: 0px;
border-top-right-radius: 0px;
-webkit-border-bottom-right-radius: 20px;
-moz-border-radius-bottomright: 20px;
border-bottom-right-radius: 20px;
-webkit-border-bottom-left-radius: 0px;
-moz-border-radius-bottomleft: 0px;
border-bottom-left-radius: 0px;
text-indent: 0px;
border: 0px solid #242448;
display: inline-block;
color: #242448;
font-weight: bold;
font-style: normal;
height: 35px;
line-height: 35px;
width: 250px;
text-decoration: none;
text-align: center;
box-shadow: 2px 2px 2px #B9B9B9;
}
.btn_tuto:hover
{
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #efeef4), color-stop(1, #c4c5d9));
background: -webkit-linear-gradient(center top, #efeef4 5%, #c4c5d9 100%);
background: -moz-linear-gradient(center top, #efeef4 5%, #c4c5d9 100%);
background: -ms-linear-gradient(top, #efeef4 5%, #c4c5d9 100%);
background: -o-linear-gradient(center top, #efeef4 5%, #c4c5d9 100%);
background: linear-gradient(center top, #efeef4 5%, #c4c5d9 100%);
background-color: #efeef4;
border: 1px solid #242448;
}
.btn_tuto:active
{
position: relative;
top: 1px;
}
.btn_tuto_selected
{
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #c4c5d9), color-stop(1, #efeef4));
background: -webkit-linear-gradient(center top, #c4c5d9 5%, #efeef4 100%);
background: -moz-linear-gradient(center top, #c4c5d9 5%, #efeef4 100%);
background: -ms-linear-gradient(top, #c4c5d9 5%, #efeef4 100%);
background: -o-linear-gradient(center top, #c4c5d9 5%, #efeef4 100%);
background: linear-gradient(center top, #c4c5d9 5%, #efeef4 100%);
background-color: #c4c5d9;
-webkit-border-top-left-radius: 20px;
-moz-border-radius-topleft: 20px;
border-top-left-radius: 20px;
-webkit-border-top-right-radius: 0px;
-moz-border-radius-topright: 0px;
border-top-right-radius: 0px;
-webkit-border-bottom-right-radius: 20px;
-moz-border-radius-bottomright: 20px;
border-bottom-right-radius: 20px;
-webkit-border-bottom-left-radius: 0px;
-moz-border-radius-bottomleft: 0px;
border-bottom-left-radius: 0px;
text-indent: 0px;
border: 2px solid #242448;
display: inline-block;
color: #242448;
font-weight: bold;
font-style: normal;
height: 35px;
line-height: 35px;
width: 250px;
text-decoration: none;
text-align: center;
}
.btn_tuto_selected:hover
{
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #efeef4), color-stop(1, #c4c5d9));
background: -webkit-linear-gradient(center top, #efeef4 5%, #c4c5d9 100%);
background: -moz-linear-gradient(center top, #efeef4 5%, #c4c5d9 100%);
background: -ms-linear-gradient(top, #efeef4 5%, #c4c5d9 100%);
background: -o-linear-gradient(center top, #efeef4 5%, #c4c5d9 100%);
background: linear-gradient(center top, #efeef4 5%, #c4c5d9 100%);
background-color: #efeef4;
}
.btn_tuto_selected:active
{
position: relative;
top: 1px;
}
.txt_with_shadow
{
text-shadow: 2px 2px 2px #B9B9B9;
}
.txt_slogan
{
margin: 0;
padding: 0;
border: 0;
font-size: 120%;
vertical-align: baseline;
text-shadow: 2px 2px 2px #B9B9B9;
color: #0B0B61;
font-weight: bold;
}
.img_with_shadow
{
box-shadow: 3px 3px 3px #B9B9B9;
}
.table_menu_tuto
{
width: 140px;
border-spacing: 0px;
padding: 0px;
}
.table_menu_tuto td
{
display: none;
}
.div_menu_tuto
{
display: none;
position: absolute;
}
.table_menu_manual
{
width: 140px;
border-spacing: 0px;
padding: 0px;
}
.table_menu_manual td
{
display: none;
}
.div_menu_manual
{
display: none;
position: absolute;
}
.btn_sub_menu
{
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #c4c5d9), color-stop(1, #efeef4));
background: -webkit-linear-gradient(center top, #c4c5d9 5%, #efeef4 100%);
background: -moz-linear-gradient(center top, #c4c5d9 5%, #efeef4 100%);
background: -ms-linear-gradient(top, #c4c5d9 5%, #efeef4 100%);
background: -o-linear-gradient(center top, #c4c5d9 5%, #efeef4 100%);
background: linear-gradient(center top, #c4c5d9 5%, #efeef4 100%);
background-color: #c4c5d9;
-webkit-border-top-left-radius: 10px;
-moz-border-radius-topleft: 10px;
border-top-left-radius: 10px;
-webkit-border-top-right-radius: 10px;
-moz-border-radius-topright: 10px;
border-top-right-radius: 10px;
-webkit-border-bottom-right-radius: 10px;
-moz-border-radius-bottomright: 10px;
border-bottom-right-radius: 10px;
-webkit-border-bottom-left-radius: 10px;
-moz-border-radius-bottomleft: 10px;
border-bottom-left-radius: 10px;
text-indent: 0px;
border: 0px solid #242448;
display: inline-block;
color: #242448;
font-size: 12px;
font-weight: bold;
font-style: normal;
height: 25px;
line-height: 25px;
width: 140px;
text-decoration: none;
text-align: center;
box-shadow: 2px 2px 2px #B9B9B9;
}
.btn_sub_menu:hover
{
background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #efeef4), color-stop(1, #c4c5d9));
background: -webkit-linear-gradient(center top, #efeef4 5%, #c4c5d9 100%);
background: -moz-linear-gradient(center top, #efeef4 5%, #c4c5d9 100%);
background: -ms-linear-gradient(top, #efeef4 5%, #c4c5d9 100%);
background: -o-linear-gradient(center top, #efeef4 5%, #c4c5d9 100%);
background: linear-gradient(center top, #efeef4 5%, #c4c5d9 100%);
background-color: #efeef4;
border: 1px solid #242448;
}
.btn_sub_menu:active
{
position: relative;
top: 1px;
}
#qx_search .cse .gsc-control-cse, #qx_search .gsc-control-cse
{
background-color: transparent;
border: 0px;
height: 20px;
width: 200px;
}
#qx_search .gsc-search-box-tools .gsc-search-box .gsc-input
{
padding-right: 0px;
}
#qx_search .gsc-search-button, #qx_search input.gsc-search-button, #qx_search .gsc-search-button-v2
{
width: 15px;
min-width: 15px;
margin-top: 0px;
margin-left: 0px;
padding: 6px;
border-radius: 6px;
}
.manual_li_title_1
{
margin-bottom: 15px;
}
.manual_li_title_2
{
margin-top: 2px;
margin-bottom: 2px;
}
.manual_li_title_1 > a
{
font-size: 130%;
}
.manual_li_title_2 > a
{
font-size: 100%;
}
.manual_li_title_3 > a
{
font-size: 80%;
}
.manual_a_title_1
{
margin-left: 20px;
font-size: 180%;
font-weight: bold;
vertical-align: baseline;
text-shadow: 2px 2px 2px #B9B9B9;
color: #0B0B61;
}
.manual_a_title_2
{
margin-left: 60px;
font-size: 140%;
font-weight: bold;
vertical-align: baseline;
text-shadow: 2px 2px 2px #B9B9B9;
color: #0B0B61;
}
.manual_a_title_3
{
margin-left: 100px;
font-size: 120%;
font-weight: bold;
vertical-align: baseline;
text-shadow: 2px 2px 2px #B9B9B9;
color: #0B0B61;
}
.manual_p_title_1
{
margin-top: 50px;
}
.manual_div_content_1
{
margin-left: 20px;
margin-right: 20px;
}
.logo_customer
{
width: 100%;
max-width: 200px;
border-width: 0px;
}
.json_pretty { width: 1000px; max-height: 300px; overflow: auto; background-color: white; }
.json_pretty pre { outline: 1px solid #ccc; padding: 5px; margin: 5px; white-space: pre; }
.json_pretty .string { color: green; }
.json_pretty .number { color: darkorange; }
.json_pretty .boolean { color: blue; }
.json_pretty .null { color: magenta; }
.json_pretty .key { color: red; }

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

1209
doc/qxorm_fr/tutorial.html Normal file

File diff suppressed because it is too large Load Diff

1119
doc/qxorm_fr/tutorial_2.html Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,538 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>QxOrm : C++ Qt ORM Object Relational Mapping database library - QxEntityEditor : C++ Qt entities graphic editor
(data model designer and source code generator)</title>
<link rel='stylesheet' type='text/css' href='./resource/qxorm_style.css'>
<script type="text/javascript" src="./resource/jquery.min.js"></script>
<script type="text/javascript" src="./resource/qxorm_script.js"></script>
</head>
<body>
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td><a href="./home.html"><img alt="QxOrm" src="./resource/logo_qxorm_and_qxee.png" align="left" border="0"></a>
</td>
<td align="right" style="vertical-align:bottom">
<div id="qx_search">
<gcse:search></gcse:search>
</div>
</td>
<td width="15"></td>
<td align="right" style="vertical-align:bottom">
<img alt="Windows" src="./resource/logo_windows.gif" width="35" height="35">
<img alt="Linux" src="./resource/logo_linux.gif" width="35" height="35">
<img alt="Macintosh" src="./resource/logo_mac.gif" width="35" height="35">
</td>
<td width="70"><img alt="C++" src="./resource/logo_cpp.gif" width="50" height="50" align="right"></td>
</tr>
</tbody>
</table>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td align="center"><a href="./home.html" class="btn_nav">Accueil</a></td>
<td align="center"><a href="./download.html" class="btn_nav">T<EFBFBD>l<EFBFBD>chargement</a></td>
<td align="center"><a href="./quick_sample.html" class="btn_nav">Exemple rapide</a></td>
<td align="center" onmouseover="showHideElementById('menu_tuto', true);"
onmouseout="showHideElementById('menu_tuto', false);">
<a href="./tutorial.html" class="btn_nav">Tutoriel (4)</a>
<table class="table_menu_tuto">
<tbody>
<tr>
<td>
<div id="menu_tuto" class="div_menu_tuto">
<a href="./tutorial_3.html" class="btn_sub_menu">install QxOrm</a><br />
<a href="./tutorial.html" class="btn_sub_menu">qxBlog</a><br />
<a href="./tutorial_2.html" class="btn_sub_menu">qxClientServer</a><br />
<a href="./tutorial_4.html" class="btn_sub_menu">QxEntityEditor videos</a>
</div>
</td>
</tr>
</tbody>
</table>
</td>
<td align="center" onmouseover="showHideElementById('menu_manual', true);"
onmouseout="showHideElementById('menu_manual', false);">
<a href="./manual.html" class="btn_nav">Manuel (2)</a>
<table class="table_menu_manual">
<tbody>
<tr>
<td>
<div id="menu_manual" class="div_menu_manual">
<a href="./manual.html" class="btn_sub_menu">Manuel QxOrm</a><br />
<a href="./manual_qxee.html" class="btn_sub_menu">Manuel QxEntityEditor</a><br />
</div>
</td>
</tr>
</tbody>
</table>
</td>
<td align="center"><a href="./link.html" class="btn_nav">Forum</a></td>
<td align="center"><a href="./customer.html" class="btn_nav">Nos clients</a></td>
</tr>
</tbody>
</table>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxOrm &gt;&gt; Tutoriel &gt;&gt; Installer un environnement de
d<>veloppement avec QxOrm sous Windows</font>
</td>
<td align="right" valign="top">
<table cellspacing="0" cellpadding="1">
<col>
<col>
<tbody>
<tr>
<td align="right" valign="top">
<font size="2" class="txt_with_shadow">Version courante :&nbsp;</font>
</td>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxOrm 1.5.0 - <a href="../doxygen/index.html"
target="_blank">documentation en ligne de la biblioth<74>que QxOrm</a> - <a
href="https://github.com/QxOrm/QxOrm" target="_blank">GitHub</a></font>
</td>
</tr>
<tr>
<td align="right" valign="top">
<font size="2" class="txt_with_shadow"></font>
</td>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxEntityEditor 1.2.8</font>
</td>
</tr>
</tbody>
</table>
</td>
<td width="10px"></td>
<td width="40px" height="30px"><a href="../qxorm_fr/tutorial_3.html"><img alt="Version fran<61>aise du site"
src="./resource/FR.png" width="40" height="30" border="0"></a></td>
<td width="40px" height="30px"><a href="../qxorm_en/tutorial_3.html"><img alt="Web site english version"
src="./resource/GB.png" width="40" height="30" border="0"></a></td>
<td width="40px" height="30px"><a href="http://sites.google.com/site/qxormpostgres/" target="_blank"><img alt=""
src="./resource/ES.png" width="40" height="30" border="0"></a></td>
</tr>
</tbody>
</table>
<table border="1" frame="vsides" rules="cols" style="width: 80%" align="center" cellpadding="6" bgcolor="#F2F2F4">
<col>
<tbody>
<tr>
<td align="justify">
<table border="0" cellpadding="4">
<col>
<col>
<tbody>
<tr>
<td>
<font class="txt_with_shadow" color="#0B0B61" size="4"><i>S<EFBFBD>lection du tutoriel : </i></font>
</td>
<td align="left">
<a href="./tutorial.html" class="btn_tuto">Tuto n<>1 : qxBlog</a>
<a href="./tutorial_2.html" class="btn_tuto">Tuto n<>2 : qxClientServer</a>
<a href="./tutorial_3.html" class="btn_tuto_selected">Tuto n<>3 : install QxOrm</a>
<a href="./tutorial_4.html" class="btn_tuto">Tuto n<>4 : video QxEntityEditor</a>
</td>
</tr>
</tbody>
</table>
<hr style="width: 100%" align="center" size="1" color="#100D5A">
<br>
<table border="0" style="width: 100%" align="center">
<col>
<col>
<tbody>
<tr>
<td>Ce tutoriel pr<70>sente les diff<66>rentes <20>tapes pour installer un environnement de d<>veloppement avec
Qt, boost (optionnel) et la biblioth<74>que QxOrm sous Windows, chaque biblioth<74>que <20>tant compil<69>e en
mode 32 bits (la proc<6F>dure sera similaire pour d<>velopper en mode 64 bits).<br />
A la fin de ce tutoriel, vous pourrez utiliser au choix les EDI <b>Microsoft Visual C++ 2012</b> et
<b>QtCreator</b>.<br />
<br />
<b>Pr<EFBFBD>requis :</b> Microsoft Visual C++ 2012 est d<>j<EFBFBD> install<6C> sur le poste (peu importe la version :
<20> <i>Express</i> <20>, <20> <i>Professional</i> <20>, etc.).<br />
<br />
<b>Remarque :</b> chaque version de la biblioth<74>que QxOrm est test<73>e sous Windows avec MSVC++ (en mode
32 bits et 64 bits) et MinGW GCC 4.5. Bien que ce tutoriel s'applique pour l'EDI MSVC++ 2012, les
diff<66>rentes <20>tapes de la proc<6F>dure d'installation seront <20>quivalentes pour les autres
compilateurs/<2F>diteurs.<br />
<br />
<b>Autre remarque :</b> bien que ce tutoriel s'applique pour les utilisateurs Windows, chaque version
de QxOrm est test<73>e et valid<69>e sous Linux (<i>GCC</i>) et sous Mac OS X (<i>Clang</i>).<br />
<br />
Ce tutoriel est constitu<74> des <20>tapes suivantes :
<ul>
<li><a href="#tuto_10">1- T<>l<EFBFBD>charger et installer Qt (Qt4 ou Qt5)</a></li>
<li><a href="#tuto_20">2- Ajouter le dossier <20> bin <20> de Qt dans le <20> PATH <20> de Windows</a></li>
<li><a href="#tuto_30">3- Installer la biblioth<74>que boost (optionnel)</a></li>
<li><a href="#tuto_40">4- Ajouter le dossier <20> lib_shared <20> du package boost dans le <20> PATH <20> de
Windows (optionnel)</a></li>
<li><a href="#tuto_50">5- T<>l<EFBFBD>charger et installer la biblioth<74>que QxOrm</a></li>
<li><a href="#tuto_60">6- Param<61>trer le fichier <20> QxOrm.pri <20> (optionnel)</a></li>
<li><a href="#tuto_70">7- Ajouter QxOrm dans le <20> PATH <20> de Windows</a></li>
<li><a href="#tuto_80">8- Tester l'installation avec le projet de test <20> qxBlog <20></a></li>
<li><a href="#tuto_90">9- Tester tous les projets de test du package QxOrm avec MSVC++ 2012</a></li>
<li><a href="#tuto_100">10- Tester QxOrm avec l'EDI QtCreator</a></li>
</ul>
<i>Remarque :</i> ce tutoriel est <20>galement disponible sur le site <a
href="http://marty-lionel.developpez.com/tutoriels/qt/qxorm-installer-environnement-developpement-avec-qxorm-sous-windows/"
target="_blank">www.developpez.com</a>.<br>
</td>
<td width="200" align="center" valign="top"><a href="./resource/qt_ambassador_logo.png"
target="_blank"><img alt="qt_ambassador" src="./resource/qt_ambassador_logo_150x150.png" width="150"
height="150" border="0"></a><br>
<b>
<font size="2">QxOrm library has been accepted into the <a
href="http://forum.qt.io/category/24/qt-ambassador-program" target="_blank">Qt Ambassador
Program</a></font>
</b>
</td>
</tr>
</tbody>
</table>
<br />
<b><a name="tuto_10"><u>
<font color="#100D5A">1- T<>l<EFBFBD>charger et installer Qt (Qt4 ou Qt5)</font>
</u></a></b>
<br /><br />
T<>l<EFBFBD>charger Qt <20> l'adresse suivante : <a href="http://www.qt.io/download/"
target="_blank">http://www.qt.io/download/</a><br />
Par exemple :<br />
<br />
<img alt="" src="./resource/tuto_install_qxorm_1.png" style="border:0px solid #100D5A; border-color:#100D5A;">
<br /><br />
Ensuite, ex<65>cutez le fichier t<>l<EFBFBD>charg<72> et suivez les instructions du programme d'installation de Qt.<br />
<br />
<br />
<b><a name="tuto_20"><u>
<font color="#100D5A">2- Ajouter le dossier <20> bin <20> de Qt dans le <20> PATH <20> de Windows</font>
</u></a></b>
<br /><br />
Une fois Qt install<6C>, il est recommand<6E> d'ajouter le dossier <20> bin <20> du r<>pertoire d'installation de Qt dans
la variable d'environnement <20> PATH <20> de Windows.<br />
<br />
Allez dans les <20> Param<61>tres syst<73>me avanc<6E>s <20> de Windows, puis cliquez sur le bouton <20> Variables
d'environnements <20> :<br />
<br />
<img alt="" src="./resource/tuto_install_qxorm_2.png" style="border:0px solid #100D5A; border-color:#100D5A;">
<br /><br />
Ajouter une variable syst<73>me nomm<6D>e <20> QT_DIR <20> :
<ul>
<li>Nom de la variable : <20> QT_DIR <20> ;</li>
<li>Valeur de la variable : chemin d'acc<63>s vers le r<>pertoire d'installation de Qt :
<ul>
<li>Pour Qt4 : <20> QT_DIR <20> doit pointer vers la racine du dossier d'installation de Qt ;</li>
<li>Pour Qt5 : le dossier d'installation est diff<66>rent par rapport <20> Qt4, dans notre cas il faut
descendre jusqu'au niveau : <20> <i>.\5.1.1\msvc2012\</i> <20>.</li>
</ul>
</li>
</ul>
Par exemple :<br />
<br />
<img alt="" src="./resource/tuto_install_qxorm_3.png" style="border:0px solid #100D5A; border-color:#100D5A;">
<br /><br />
Modifier la variable syst<73>me <20> PATH <20> pour ajouter la valeur suivante : <20> <b>;%QT_DIR%\bin\;</b> <20><br />
<br />
<img alt="" src="./resource/tuto_install_qxorm_4.png" style="border:0px solid #100D5A; border-color:#100D5A;">
<br /><br />
A pr<70>sent, Qt est disponible sur votre environnement de d<>veloppement. Il est possible de tester
l'installation en ouvrant une fen<65>tre DOS (menu <20> D<>marrer <20>, <20> Ex<45>cuter <20> puis <20> cmd <20>), puis en lan<61>ant la
commande : <20> <i>qmake -version</i> <20> :<br />
<br />
<img alt="" src="./resource/tuto_install_qxorm_5.png" style="border:0px solid #100D5A; border-color:#100D5A;">
<br /><br />
<b>Remarque :</b> pourquoi avoir ajout<75> Qt dans le PATH de Windows ? Tous les ex<65>cutables n<>cessaires pour le
fonctionnement de Qt (<i>qmake</i>, <i>moc</i>, <i>ui</i>, <i>rcc</i>, etc.) sont accessibles dans le syst<73>me
sans avoir <20> param<61>trer autre chose. De plus, il sera tr<74>s facile de basculer d'une version de Qt <20> une autre
: il suffit tout simplement de modifier la valeur de <20> QT_DIR <20> pour indiquer un autre r<>pertoire
d'installation de Qt.<br />
<br />
<br />
<b><a name="tuto_30"><u>
<font color="#100D5A">3- Installer la biblioth<74>que boost (optionnel)</font>
</u></a></b>
<br /><br />
<b>Remarque :</b> par d<>faut, la biblioth<74>que QxOrm d<>pend uniquement de Qt (<i>QtCore</i> et <i>QtSql</i>).
L'installation de boost est optionnelle et non requise avec la configuration par d<>faut : si vous ne souhaitez
pas travailler avec la biblioth<74>que boost, alors vous pouvez aller directement <20> <a href="#tuto_50">l'<27>tape
suivante de ce tutoriel</a>.<br />
<br />
<b>Autre remarque :</b> QxOrm propose 2 niveaux de d<>pendance <20> boost en option :
<ul>
<li>une d<>pendance uniquement aux fichiers d'en-t<>tes de boost (<i>*.hpp</i>) : option de compilation
<i>_QX_ENABLE_BOOST</i> ;
</li>
<li>une d<>pendance au module <a
href="http://www.boost.org/doc/libs/release/libs/serialization/doc/index.html" target="_blank">boost
serialization</a> : option de compilation <i>_QX_ENABLE_BOOST_SERIALIZATION</i>.</li>
</ul>
Le plus simple et le plus rapide est de t<>l<EFBFBD>charger le package boost fourni sur le site QxOrm.<br />
Le package boost le plus r<>cent est disponible <20> cette adresse : <a
href="https://www.qxorm.com/lib/boost_1_57.zip"
target="_blank">https://www.qxorm.com/lib/boost_1_57.zip</a><br />
<br />
<img alt="" src="./resource/tuto_install_qxorm_6.png" style="border:0px solid #100D5A; border-color:#100D5A;">
<br /><br />
Ce package contient tous les fichiers en-t<>tes (<i>*.hpp</i>) de boost (dans le dossier <20> include <20>), et le
module <20> boost::serialization <20> compil<69> pour les environnements suivants (dans le dossier <20> lib_shared <20> en
mode 32 bits et <20> lib_shared_64b <20> en mode 64 bits) :
<ul>
<li>MSVC++ 2008 (fichiers avec un nom contenant <i>vc90</i>) ;</li>
<li>MSVC++ 2010 (fichiers avec un nom contenant <i>vc100</i>) ;</li>
<li>MSVC++ 2012 (fichiers avec un nom contenant <i>vc110</i>) ;</li>
<li>MinGW GCC 4.5 (fichiers avec un nom contenant <i>mgw45</i>).</li>
</ul>
A la racine du package boost, le fichier <20> version_1_57.txt <20> indique les lignes de commande utilis<69>es pour
compiler le module <20> boost::serialization <20> (module optionnel et non requis par d<>faut).<br />
<br />
<br />
<b><a name="tuto_40"><u>
<font color="#100D5A">4- Ajouter le dossier <20> lib_shared <20> du package boost dans le <20> PATH <20> de Windows
(optionnel)</font>
</u></a></b>
<br /><br />
<b>Remarque :</b> cette <20>tape est optionnelle et non requise avec la configuration par d<>faut : si vous ne
souhaitez pas travailler avec les fonctionnalit<69>s propos<6F>es par le module <a
href="http://www.boost.org/doc/libs/release/libs/serialization/doc/index.html" target="_blank">boost
serialization</a>, alors vous pouvez aller directement <20> <a href="#tuto_50">l'<27>tape suivante de ce
tutoriel</a>.<br />
<br />
Allez dans les <20> Param<61>tres syst<73>me avanc<6E>s <20> de Windows, puis cliquez sur le bouton <20> Variables
d'environnements <20> :<br />
<br />
<img alt="" src="./resource/tuto_install_qxorm_2.png" style="border:0px solid #100D5A; border-color:#100D5A;">
<br /><br />
Ajouter une variable syst<73>me nomm<6D>e <20> BOOST_DIR <20> :
<ul>
<li>Nom de la variable : <20> BOOST_DIR <20> ;</li>
<li>Valeur de la variable : chemin d'acc<63>s vers le r<>pertoire d'installation du package boost.</li>
</ul>
Par exemple :<br />
<br />
<img alt="" src="./resource/tuto_install_qxorm_7.png" style="border:0px solid #100D5A; border-color:#100D5A;">
<br /><br />
Modifier la variable syst<73>me <20> PATH <20> pour ajouter la valeur suivante : <20> <b>;%BOOST_DIR%\lib_shared\;</b>
<20><br />
<br />
<img alt="" src="./resource/tuto_install_qxorm_8.png" style="border:0px solid #100D5A; border-color:#100D5A;">
<br /><br />
<b>Remarque :</b> il est <20>galement possible d'ajouter le r<>pertoire <20> lib_shared_64b <20> dans le PATH de Windows
si l'on souhaite d<>velopper en mode 64 bits : <20> <b>;%BOOST_DIR%\lib_shared_64b\;</b> <20>.<br />
<br />
<br />
<b><a name="tuto_50"><u>
<font color="#100D5A">5- T<>l<EFBFBD>charger et installer la biblioth<74>que QxOrm</font>
</u></a></b>
<br /><br />
La derni<6E>re version de la biblioth<74>que QxOrm est disponible <20> cette adresse : <a
href="https://www.qxorm.com/qxorm_fr/download.html"
target="_blank">https://www.qxorm.com/qxorm_fr/download.html</a><br />
Une fois t<>l<EFBFBD>charg<72>e, veuillez d<>compresser le fichier dans le dossier de votre choix.<br />
<br />
<br />
<b><a name="tuto_60"><u>
<font color="#100D5A">6- Param<61>trer le fichier <20> QxOrm.pri <20> (optionnel)</font>
</u></a></b>
<br /><br />
<b>Remarque :</b> si vous ne souhaitez pas travailler avec la biblioth<74>que boost, alors aucune modification
n'est n<>cessaire dans le fichier de configuration <20> QxOrm.pri <20>.
<br /><br />
Sinon, si vous souhaitez travailler avec la biblioth<74>que boost, alors il est n<>cessaire d'indiquer <20> la
biblioth<74>que QxOrm comment acc<63>der <20> boost en modifiant le fichier <20> QxOrm.pri <20> (attention, seul le fichier <20>
QxOrm.pri <20> peut <20>tre modifi<66>, les autres fichiers du package QxOrm ne doivent pas <20>tre modifi<66>s).<br />
<br />
Ouvrez le fichier <20> QxOrm.pri <20> avec un <20>diteur de texte (<i>notepad</i> ou <i>notepad++</i> par exemple),
puis modifier les valeurs des param<61>tres :
<ul>
<li><EFBFBD> <b>QX_BOOST_INCLUDE_PATH</b> <20> (<i>requis</i>) ;</li>
<li><EFBFBD> QX_BOOST_LIB_PATH <20> (<i>optionnel</i>, utilis<69> seulement si l'option de compilation
<i>_QX_ENABLE_BOOST_SERIALIZATION</i> est d<>finie) ;
</li>
<li><EFBFBD> QX_BOOST_LIB_SERIALIZATION_DEBUG <20> (<i>optionnel</i>, utilis<69> seulement si l'option de compilation
<i>_QX_ENABLE_BOOST_SERIALIZATION</i> est d<>finie) ;
</li>
<li><EFBFBD> QX_BOOST_LIB_SERIALIZATION_RELEASE <20> (<i>optionnel</i>, utilis<69> seulement si l'option de compilation
<i>_QX_ENABLE_BOOST_SERIALIZATION</i> est d<>finie) ;
</li>
<li><EFBFBD> QX_BOOST_LIB_WIDE_SERIALIZATION_DEBUG <20> (<i>optionnel</i>, utilis<69> seulement si l'option de
compilation <i>_QX_ENABLE_BOOST_SERIALIZATION</i> est d<>finie) ;</li>
<li><EFBFBD> QX_BOOST_LIB_WIDE_SERIALIZATION_RELEASE <20> (<i>optionnel</i>, utilis<69> seulement si l'option de
compilation <i>_QX_ENABLE_BOOST_SERIALIZATION</i> est d<>finie).</li>
</ul>
Par exemple :<br />
<br />
<table border="1" style="width: 100%" bgcolor="#FFFFFF">
<col>
<tbody>
<tr>
<td><i>
isEmpty(QX_BOOST_INCLUDE_PATH) { QX_BOOST_INCLUDE_PATH = $$quote(<font
style="background-color:yellow">D:/Dvlp/_Libs/Boost/1_57/include</font>) }<br />
<br />
contains(DEFINES, _QX_ENABLE_BOOST_SERIALIZATION) {<br />
<br />
isEmpty(QX_BOOST_LIB_PATH) { QX_BOOST_LIB_PATH = $$quote(<font style="background-color:yellow">
D:/Dvlp/_Libs/Boost/1_57/lib_shared</font>) }<br />
isEmpty(QX_BOOST_LIB_SERIALIZATION_DEBUG) { QX_BOOST_LIB_SERIALIZATION_DEBUG = "<font
style="background-color:yellow">boost_serialization-vc110-mt-gd-1_57</font>" }<br />
isEmpty(QX_BOOST_LIB_SERIALIZATION_RELEASE) { QX_BOOST_LIB_SERIALIZATION_RELEASE = "<font
style="background-color:yellow">boost_serialization-vc110-mt-1_57</font>" }<br />
# isEmpty(QX_BOOST_LIB_WIDE_SERIALIZATION_DEBUG) { QX_BOOST_LIB_WIDE_SERIALIZATION_DEBUG = "<font
style="background-color:yellow">boost_wserialization-vc110-mt-gd-1_57</font>" }<br />
# isEmpty(QX_BOOST_LIB_WIDE_SERIALIZATION_RELEASE) { QX_BOOST_LIB_WIDE_SERIALIZATION_RELEASE = "
<font style="background-color:yellow">boost_wserialization-vc110-mt-1_57</font>" }<br />
<br />
} # contains(DEFINES, _QX_ENABLE_BOOST_SERIALIZATION)
</i></td>
</tr>
</tbody>
</table>
<br />
<b>Remarque :</b> Le fichier <20> QxOrm.pri <20> est un fichier de configuration de la biblioth<74>que QxOrm. Ce
fichier devra <20>tre inclus dans tous les fichiers projets d<>pendants de QxOrm en ajoutant la ligne suivante
dans le fichier <i>*.pro</i> du projet : <b>include(<i>my_path_to_QxOrm_library</i>/QxOrm.pri)</b><br />
<br />
<br />
<b><a name="tuto_70"><u>
<font color="#100D5A">7- Ajouter QxOrm dans le <20> PATH <20> de Windows</font>
</u></a></b>
<br /><br />
Tout comme pour les variables <20> QT_DIR <20> et <20> BOOST_DIR <20>, nous allons ajouter une variable d'environnement
nomm<6D>e <20> QXORM_DIR <20>.<br />
Allez dans les <20> Param<61>tres syst<73>me avanc<6E>s <20> de Windows, puis cliquez sur le bouton <20> Variables
d'environnements <20> :<br />
<br />
<img alt="" src="./resource/tuto_install_qxorm_2.png" style="border:0px solid #100D5A; border-color:#100D5A;">
<br /><br />
Ajouter une variable syst<73>me nomm<6D>e <20> QXORM_DIR <20> :
<ul>
<li>Nom de la variable : <20> QXORM_DIR <20> ;</li>
<li>Valeur de la variable : chemin d'acc<63>s vers le r<>pertoire d'installation du package QxOrm.</li>
</ul>
Par exemple :<br />
<br />
<img alt="" src="./resource/tuto_install_qxorm_9.png" style="border:0px solid #100D5A; border-color:#100D5A;">
<br /><br />
Modifier la variable syst<73>me <20> PATH <20> pour ajouter la valeur suivante : <20> <b>;%QXORM_DIR%\lib\;</b> <20><br />
<br />
<img alt="" src="./resource/tuto_install_qxorm_10.png"
style="border:0px solid #100D5A; border-color:#100D5A;">
<br /><br />
<br />
<br />
<b><a name="tuto_80"><u>
<font color="#100D5A">8- Tester l'installation avec le projet de test <20> qxBlog <20></font>
</u></a></b>
<br /><br />
Pour tester rapidement l'installation, il est possible d'ouvrir le projet de test <20> qxBlog <20> du package QxOrm
: ouvrir le fichier <20> <i>./test/qxBlog/qxBlog.sln</i> <20> avec l'<27>diteur MSVC++ 2012, puis compiler et ex<65>cuter
le projet.<br />
<br />
Si l'ex<65>cution du projet se passe sans erreur et sans assert, alors votre environnement de d<>veloppement est
pr<70>t : Qt, boost et QxOrm sont correctement install<6C>s !<br />
<br />
<br />
<b><a name="tuto_90"><u>
<font color="#100D5A">9- Tester tous les projets de test du package QxOrm avec MSVC++ 2012</font>
</u></a></b>
<br /><br />
Il est possible de tester tous les projets de test du package QxOrm, chaque projet ayant un fichier <20>
<i>*.sln</i> <20> et peut donc <20>tre utilis<69> par MSVC++ : chaque projet de test doit se compiler et s'ex<65>cuter
sans aucune erreur.<br />
<br />
<b>Remarque :</b> Qt fournit un Add-in pour les EDI Microsoft Visual C++, il est donc possible de les
installer pour faciliter l'int<6E>gration de Qt (gestion automatique des fichiers projets <i>*.pro</i> par
exemple).<br />
Pour t<>l<EFBFBD>charger cet Add-in, rendez-vous sur la page de t<>l<EFBFBD>chargement de Qt : <a
href="http://www.qt.io/download/" target="_blank">http://www.qt.io/download/</a><br />
<br />
<img alt="" src="./resource/tuto_install_qxorm_11.png"
style="border:0px solid #100D5A; border-color:#100D5A;">
<br /><br />
<br />
<br />
<b><a name="tuto_100"><u>
<font color="#100D5A">10- Tester QxOrm avec l'EDI QtCreator</font>
</u></a></b>
<br /><br />
Pour ceux qui pr<70>f<EFBFBD>rent utiliser QtCreator <20> la place de MSVC++ : lancer QtCreator pr<70>sent dans le dossier
d'installation de Qt <20> <i>.\Tools\QtCreator\bin\qtcreator.exe</i> <20>.<br />
Ouvrir le menu <20> Outils >> Options <20>, puis aller dans la section <20> Compiler & Ex<45>cuter <20>, onglet <20> Kits <20>,
pour v<>rifier que c'est bien le compilateur de MSVC++ 2012 qui sera utilis<69> <20> la compilation dans QtCreator
:<br />
<br />
<img alt="" src="./resource/tuto_install_qxorm_12.png"
style="border:0px solid #100D5A; border-color:#100D5A;">
<br /><br />
Si par d<>faut, vous n'avez pas de d<>bogueur param<61>tr<74> comme sur la copie d'<27>cran ci-dessus, veuillez installer
<20> Debugging Tools for Windows SDK <20> disponible sur le site de Microsoft (<a
href="http://msdn.microsoft.com/en-us/windows/hardware/hh852363.aspx"
target="_blank">http://msdn.microsoft.com/en-us/windows/hardware/hh852363.aspx</a>). Ensuite, relancez
QtCreator et vous devriez avoir <20> pr<70>sent :<br />
<br />
<img alt="" src="./resource/tuto_install_qxorm_13.png"
style="border:0px solid #100D5A; border-color:#100D5A;">
<br /><br />
<b>Remarque :</b> vous trouverez plus d'informations sur le param<61>trage du d<>bogeur dans QtCreator sur le site
de Qt : <a href="http://qt-project.org/wiki/Qt_Creator_Windows_Debugging"
target="_blank">http://qt-project.org/wiki/Qt_Creator_Windows_Debugging</a><br />
<br />
A pr<70>sent, vous pouvez utiliser QtCreator ou MSVC++ 2012, au choix !<br />
<br />
</td>
</tr>
</tbody>
</table>
<br>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<tbody>
<tr>
<td align="left" valign="middle">
<img alt="QxOrm" src="./resource/logo_qxorm_small.png" width="168" height="40">
</td>
<td align="center" valign="middle">
<font size="2"><EFBFBD> 2011-202XDL Teamty - <a href="mailto:ic-east.com">ic-east.com</a></font>
</td>
<td align="right" valign="middle">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="2K4Z58ZYAYJ6S">
<input type="image" src="./resource/paypal_support_qxorm_library.gif" border="0" name="submit"
alt="Support QxOrm library - PayPal">
<img alt="" border="0" src="https://www.paypalobjects.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
</form>
</td>
</tr>
</tbody>
</table>
</body>
</html>

View File

@@ -0,0 +1,234 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<title>QxOrm : C++ Qt ORM Object Relational Mapping database library - QxEntityEditor : C++ Qt entities graphic editor
(data model designer and source code generator)</title>
<link rel='stylesheet' type='text/css' href='./resource/qxorm_style.css'>
<script type="text/javascript" src="./resource/jquery.min.js"></script>
<script type="text/javascript" src="./resource/qxorm_script.js"></script>
</head>
<body>
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td><a href="./home.html"><img alt="QxOrm" src="./resource/logo_qxorm_and_qxee.png" align="left" border="0"></a>
</td>
<td align="right" style="vertical-align:bottom">
<div id="qx_search">
<gcse:search></gcse:search>
</div>
</td>
<td width="15"></td>
<td align="right" style="vertical-align:bottom">
<img alt="Windows" src="./resource/logo_windows.gif" width="35" height="35">
<img alt="Linux" src="./resource/logo_linux.gif" width="35" height="35">
<img alt="Macintosh" src="./resource/logo_mac.gif" width="35" height="35">
</td>
<td width="70"><img alt="C++" src="./resource/logo_cpp.gif" width="50" height="50" align="right"></td>
</tr>
</tbody>
</table>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td align="center"><a href="./home.html" class="btn_nav">Accueil</a></td>
<td align="center"><a href="./download.html" class="btn_nav">T<EFBFBD>l<EFBFBD>chargement</a></td>
<td align="center"><a href="./quick_sample.html" class="btn_nav">Exemple rapide</a></td>
<td align="center" onmouseover="showHideElementById('menu_tuto', true);"
onmouseout="showHideElementById('menu_tuto', false);">
<a href="./tutorial.html" class="btn_nav">Tutoriel (4)</a>
<table class="table_menu_tuto">
<tbody>
<tr>
<td>
<div id="menu_tuto" class="div_menu_tuto">
<a href="./tutorial_3.html" class="btn_sub_menu">install QxOrm</a><br />
<a href="./tutorial.html" class="btn_sub_menu">qxBlog</a><br />
<a href="./tutorial_2.html" class="btn_sub_menu">qxClientServer</a><br />
<a href="./tutorial_4.html" class="btn_sub_menu">QxEntityEditor videos</a>
</div>
</td>
</tr>
</tbody>
</table>
</td>
<td align="center" onmouseover="showHideElementById('menu_manual', true);"
onmouseout="showHideElementById('menu_manual', false);">
<a href="./manual.html" class="btn_nav">Manuel (2)</a>
<table class="table_menu_manual">
<tbody>
<tr>
<td>
<div id="menu_manual" class="div_menu_manual">
<a href="./manual.html" class="btn_sub_menu">Manuel QxOrm</a><br />
<a href="./manual_qxee.html" class="btn_sub_menu">Manuel QxEntityEditor</a><br />
</div>
</td>
</tr>
</tbody>
</table>
</td>
<td align="center"><a href="./link.html" class="btn_nav">Forum</a></td>
<td align="center"><a href="./customer.html" class="btn_nav">Nos clients</a></td>
</tr>
</tbody>
</table>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<col>
<col>
<col>
<tbody>
<tr>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxOrm &gt;&gt; Tutoriel &gt;&gt; Pr<50>sentation vid<69>o de l'application
QxEntityEditor</font>
</td>
<td align="right" valign="top">
<table cellspacing="0" cellpadding="1">
<col>
<col>
<tbody>
<tr>
<td align="right" valign="top">
<font size="2" class="txt_with_shadow">Version courante :&nbsp;</font>
</td>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxOrm 1.5.0 - <a href="../doxygen/index.html"
target="_blank">documentation en ligne de la biblioth<74>que QxOrm</a> - <a
href="https://github.com/QxOrm/QxOrm" target="_blank">GitHub</a></font>
</td>
</tr>
<tr>
<td align="right" valign="top">
<font size="2" class="txt_with_shadow"></font>
</td>
<td align="left" valign="top">
<font size="2" class="txt_with_shadow">QxEntityEditor 1.2.8</font>
</td>
</tr>
</tbody>
</table>
</td>
<td width="10px"></td>
<td width="40px" height="30px"><a href="../qxorm_fr/tutorial_4.html"><img alt="Version fran<61>aise du site"
src="./resource/FR.png" width="40" height="30" border="0"></a></td>
<td width="40px" height="30px"><a href="../qxorm_en/tutorial_4.html"><img alt="Web site english version"
src="./resource/GB.png" width="40" height="30" border="0"></a></td>
<td width="40px" height="30px"><a href="http://sites.google.com/site/qxormpostgres/" target="_blank"><img alt=""
src="./resource/ES.png" width="40" height="30" border="0"></a></td>
</tr>
</tbody>
</table>
<table border="1" frame="vsides" rules="cols" style="width: 80%" align="center" cellpadding="6" bgcolor="#F2F2F4">
<col>
<tbody>
<tr>
<td align="justify">
<table border="0" cellpadding="4">
<col>
<col>
<tbody>
<tr>
<td>
<font class="txt_with_shadow" color="#0B0B61" size="4"><i>S<EFBFBD>lection du tutoriel : </i></font>
</td>
<td align="left">
<a href="./tutorial.html" class="btn_tuto">Tuto n<>1 : qxBlog</a>
<a href="./tutorial_2.html" class="btn_tuto">Tuto n<>2 : qxClientServer</a>
<a href="./tutorial_3.html" class="btn_tuto">Tuto n<>3 : install QxOrm</a>
<a href="./tutorial_4.html" class="btn_tuto_selected">Tuto n<>4 : video QxEntityEditor</a>
</td>
</tr>
</tbody>
</table>
<hr style="width: 100%" align="center" size="1" color="#100D5A">
<br>
Voici <a href="http://www.youtube.com/watch?v=ZyjvDiOI3uw" target="_blank">une vid<69>o de pr<70>sentation de
l'application QxEntityEditor</a> :<br />
<br />
<iframe width="640" height="360" src="//www.youtube.com/embed/ZyjvDiOI3uw?rel=0" frameborder="0"
allowfullscreen></iframe><br />
<br />
Cette vid<69>o pr<70>sente les <20>tapes suivantes :
<ul>
<li>T<EFBFBD>l<EFBFBD>charger et installer la biblioth<74>que QxOrm <i>(10s)</i> ;</li>
<li>T<EFBFBD>l<EFBFBD>charger et installer l'application QxEntityEditor <i>(56s)</i> ;</li>
<li>Cr<EFBFBD>er un projet QxEntityEditor <i>(1m 46s)</i> ;</li>
<li>Exporter les entit<69>s vers un projet C++/Qt <i>(8m 26s)</i> ;</li>
<li>Exporter les entit<69>s vers un script DDL SQL de base de donn<6E>es <i>(10m 22s)</i> ;</li>
<li>Cr<EFBFBD>er une application client/serveur pour transf<73>rer son mod<6F>le de donn<6E>es sur le r<>seau <i>(12m
31s)</i> ;</li>
<li>Exporter un projet QxEntityEditor vers un fichier XML ou JSON <i>(17m 13s)</i> ;</li>
<li>Ex<EFBFBD>cuter QxEntityEditor en ligne de commande (sans IHM) <i>(18m 07s)</i>.</li>
</ul>
<br />
<hr style="width: 90%" align="center" size="1" color="#100D5A">
<br />
Voici <a href="http://www.youtube.com/watch?v=M-DcTqh4OZQ" target="_blank">une autre vid<69>o de l'application
QxEntityEditor</a> pour montrer comment importer une structure de base de donn<6E>es existante (projet MySQL
Workbench) :<br />
<br />
<iframe width="640" height="360" src="//www.youtube.com/embed/M-DcTqh4OZQ" frameborder="0"
allowfullscreen></iframe><br />
<br />
Cette vid<69>o pr<70>sente les <20>tapes suivantes :
<ul>
<li>Projet MySQL Workbench - exemple de base de donn<6E>es Sakila <i>(10s)</i> ;</li>
<li>Cr<EFBFBD>ation d'un DSN pour se connecter <20> MySQL par ODBC <i>(46s)</i> ;</li>
<li>Import de la structure de base de donn<6E>es dans un projet QxEntityEditor <i>(1m 15s)</i> ;</li>
<li>Export du projet QxEntityEditor vers un projet C++ Qt <i>(3m 10s)</i> ;</li>
<li>Compilation des classes g<>n<EFBFBD>r<EFBFBD>es du projet C++ Qt <i>(4m 22s)</i>.</li>
</ul>
<br />
</td>
</tr>
</tbody>
</table>
<br>
<hr style="width: 80%" align="center" size="1" color="#100D5A">
<table border="0" style="width: 80%" align="center">
<col>
<col>
<col>
<tbody>
<tr>
<td align="left" valign="middle">
<img alt="QxOrm" src="./resource/logo_qxorm_small.png" width="168" height="40">
</td>
<td align="center" valign="middle">
<font size="2"><EFBFBD> 2011-202XDL Teamty - <a href="mailto:ic-east.com">ic-east.com</a></font>
</td>
<td align="right" valign="middle">
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="2K4Z58ZYAYJ6S">
<input type="image" src="./resource/paypal_support_qxorm_library.gif" border="0" name="submit"
alt="Support QxOrm library - PayPal">
<img alt="" border="0" src="https://www.paypalobjects.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
</form>
</td>
</tr>
</tbody>
</table>
</body>
</html>