A C++ DAL / ORM code generation framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

197 lines
17 KiB

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>WORM: src/orm/wormclassgenerator.cpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<script type="text/javascript">
function hasClass(ele,cls) {
return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}
function addClass(ele,cls) {
if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}
function removeClass(ele,cls) {
if (hasClass(ele,cls)) {
var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
ele.className=ele.className.replace(reg,' ');
}
}
function toggleVisibility(linkObj) {
var base = linkObj.getAttribute('id');
var summary = document.getElementById(base + '-summary');
var content = document.getElementById(base + '-content');
var trigger = document.getElementById(base + '-trigger');
if ( hasClass(linkObj,'closed') ) {
summary.style.display = 'none';
content.style.display = 'block';
trigger.src = 'open.png';
removeClass(linkObj,'closed');
addClass(linkObj,'opened');
} else if ( hasClass(linkObj,'opened') ) {
summary.style.display = 'block';
content.style.display = 'none';
trigger.src = 'closed.png';
removeClass(linkObj,'opened');
addClass(linkObj,'closed');
}
return false;
}
</script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="worm_sm.png"></td>
<td style="padding-left: 0.5em;">
<div id="projectname">WORM&#160;<span id="projectnumber">0.2</span></div>
<div id="projectbrief">A C++ DAL/ORM code generation framework</div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li id="searchli">
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="Search" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
</div>
<div class="header">
<div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Defines</a> </div>
<div class="headertitle">
<h1>src/orm/wormclassgenerator.cpp File Reference</h1> </div>
</div>
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="wormclassgenerator_8h_source.html">wormclassgenerator.h</a>&quot;</code><br/>
<code>#include &lt;ctemplate/template.h&gt;</code><br/>
<code>#include &lt;dirent.h&gt;</code><br/>
<code>#include &lt;errno.h&gt;</code><br/>
<code>#include &lt;fstream&gt;</code><br/>
</div>
<p><a href="wormclassgenerator_8cpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html">WSql</a></td></tr>
<tr><td colspan="2"><h2><a name="define-members"></a>
Defines</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="wormclassgenerator_8cpp.html#a7da7455c29f8520e0ae3a9237c7aafce">MIN_TPL_FILENAME_SIZE</a>&#160;&#160;&#160;20</td></tr>
<tr><td colspan="2"><h2><a name="member-group"></a>
</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/>
::ctemplate::StaticTemplateString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html#a32f959e9da78600affe97c38b84f2729">WSql::kcd_INCLUDES</a> = STS_INIT_WITH_HASH(<a class="el" href="class__declaration_8tpl_8varnames_8h.html#abb14e5cd3eefa6ec1349041dd8553c82">kcd_INCLUDES</a>, &quot;INCLUDES&quot;, 7699670683738647257LLU)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/>
::ctemplate::StaticTemplateString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html#a22fbfb35e7c9977f5bcd002b12e2adf5">WSql::kcd_INCLUDE</a> = STS_INIT_WITH_HASH(<a class="el" href="class__declaration_8tpl_8varnames_8h.html#a5432edb409c732d3b75224d02a111614">kcd_INCLUDE</a>, &quot;INCLUDE&quot;, 434435386609578605LLU)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/>
::ctemplate::StaticTemplateString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html#a9e0d5eba9b94c663778a10ee004262bc">WSql::kcd_FORWARD_DECLARATIONS</a> = STS_INIT_WITH_HASH(<a class="el" href="class__declaration_8tpl_8varnames_8h.html#acc678e189c024b59c4c7dbf3336a5d0c">kcd_FORWARD_DECLARATIONS</a>, &quot;FORWARD_DECLARATIONS&quot;, 15273852411010322531LLU)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/>
::ctemplate::StaticTemplateString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html#a36c399903f8b1e9055def9422c088221">WSql::kcd_REFERENCED_CLASSNAME</a> = STS_INIT_WITH_HASH(<a class="el" href="class__declaration_8tpl_8varnames_8h.html#ab6d30229a7121ede6b2c22010aecd171">kcd_REFERENCED_CLASSNAME</a>, &quot;REFERENCED_CLASSNAME&quot;, 5376938313052943395LLU)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/>
::ctemplate::StaticTemplateString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html#a624c8aa68c1a9811bea34266f4b7f6bf">WSql::kcd_CLASS_NAME</a> = STS_INIT_WITH_HASH(<a class="el" href="class__declaration_8tpl_8varnames_8h.html#a7942a7f5a2746621846598ab85572a49">kcd_CLASS_NAME</a>, &quot;CLASS_NAME&quot;, 13981977283673860485LLU)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/>
::ctemplate::StaticTemplateString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html#a5018cd77220a19bf12455531e7e3eaf3">WSql::kcd_BELONGS_TO</a> = STS_INIT_WITH_HASH(<a class="el" href="class__declaration_8tpl_8varnames_8h.html#a85df8fbf85bb1e837f0a0c0e15571595">kcd_BELONGS_TO</a>, &quot;BELONGS_TO&quot;, 15166195752158467517LLU)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/>
::ctemplate::StaticTemplateString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html#a27f6478e0c83b69b2615229abace414e">WSql::kcd_HAS_MANY</a> = STS_INIT_WITH_HASH(<a class="el" href="class__declaration_8tpl_8varnames_8h.html#acc0fa525608d855426f75f13806c7402">kcd_HAS_MANY</a>, &quot;HAS_MANY&quot;, 12417993436827992317LLU)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/>
::ctemplate::StaticTemplateString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html#af8672a60f75250a618fe9745b560a8ef">WSql::kcd_FOREIGNKEY_CLASSNAME</a> = STS_INIT_WITH_HASH(<a class="el" href="class__declaration_8tpl_8varnames_8h.html#ae9c91a1a67b3fe99e3e9db8dbdb793c5">kcd_FOREIGNKEY_CLASSNAME</a>, &quot;FOREIGNKEY_CLASSNAME&quot;, 14113744978891695861LLU)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/>
::ctemplate::StaticTemplateString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html#aa0d121588c9416d5c2602415218c126e">WSql::kcd_FOREIGNKEY_CLASS_PLURAL</a> = STS_INIT_WITH_HASH(<a class="el" href="class__declaration_8tpl_8varnames_8h.html#af5763371207db409fa5f708c3d7b47d8">kcd_FOREIGNKEY_CLASS_PLURAL</a>, &quot;FOREIGNKEY_CLASS_PLURAL&quot;, 13464148753922874173LLU)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/>
::ctemplate::StaticTemplateString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html#ac5d782825cae6dc3208602e02f5ff38d">WSql::kcd_COLUMNS</a> = STS_INIT_WITH_HASH(<a class="el" href="class__declaration_8tpl_8varnames_8h.html#a53225bf3ca7db82674e4754297aea205">kcd_COLUMNS</a>, &quot;COLUMNS&quot;, 15302874640052016969LLU)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/>
::ctemplate::StaticTemplateString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html#a4d6f3f293d868bf467778eb03dda047c">WSql::kcd_UNSUPPORTED</a> = STS_INIT_WITH_HASH(<a class="el" href="class__declaration_8tpl_8varnames_8h.html#a2dde8c3267ab8d8d8287c0fe0eeaa433">kcd_UNSUPPORTED</a>, &quot;UNSUPPORTED&quot;, 8112833089436120679LLU)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/>
::ctemplate::StaticTemplateString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html#aee4fb8709c5d533895b7f302b0064fba">WSql::kcd_UNSIGNED</a> = STS_INIT_WITH_HASH(<a class="el" href="class__declaration_8tpl_8varnames_8h.html#a7ee30b9baae76963a7bbb01930d1624a">kcd_UNSIGNED</a>, &quot;UNSIGNED&quot;, 10867561526856517727LLU)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/>
::ctemplate::StaticTemplateString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html#a5e717f1d92272bbc2debf78eed72d1c6">WSql::kcd_DATATYPE</a> = STS_INIT_WITH_HASH(<a class="el" href="class__declaration_8tpl_8varnames_8h.html#af3143da9b91f92aaae2c1807c0ef947f">kcd_DATATYPE</a>, &quot;DATATYPE&quot;, 6518949878326190781LLU)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/>
::ctemplate::StaticTemplateString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html#a56003b4c3badb9192aa77a29745a1c38">WSql::kcd_VARIABLE_GETTOR</a> = STS_INIT_WITH_HASH(<a class="el" href="class__declaration_8tpl_8varnames_8h.html#a1e1cb63c9dce87ec05ecdf8d5e4340b2">kcd_VARIABLE_GETTOR</a>, &quot;VARIABLE_GETTOR&quot;, 4376112485907229951LLU)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/>
::ctemplate::StaticTemplateString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html#aa398174c2c459c998bec894e45941360">WSql::kcd_VARIABLE_NAME</a> = STS_INIT_WITH_HASH(<a class="el" href="class__declaration_8tpl_8varnames_8h.html#a4a26c6bfb0faee44e91066987f5f68b2">kcd_VARIABLE_NAME</a>, &quot;VARIABLE_NAME&quot;, 5051229879184672055LLU)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/>
::ctemplate::StaticTemplateString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html#a51157cf76ce296aa46162b4ec55ef0a0">WSql::kcd_VARIABLE_SETTOR</a> = STS_INIT_WITH_HASH(<a class="el" href="class__declaration_8tpl_8varnames_8h.html#a2682bf4433565d3c850f1d4895668a85">kcd_VARIABLE_SETTOR</a>, &quot;VARIABLE_SETTOR&quot;, 18309610407346123363LLU)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/>
::ctemplate::StaticTemplateString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html#aa2e687b7b6d092dd73ec19da1a8d8255">WSql::kcd_COLUMN_NAME</a> = STS_INIT_WITH_HASH(<a class="el" href="class__declaration_8tpl_8varnames_8h.html#a521b0e113f64c97e7a1b96b804243178">kcd_COLUMN_NAME</a>, &quot;COLUMN_NAME&quot;, 16524890828269290931LLU)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/>
::ctemplate::StaticTemplateString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html#a56fb57dd4ab04e11aed4f93c34e1b758">WSql::kcd_REFERENCED_TABLENAME</a> = STS_INIT_WITH_HASH(<a class="el" href="class__declaration_8tpl_8varnames_8h.html#a7f065525a1da390502ebfa2a0762c324">kcd_REFERENCED_TABLENAME</a>, &quot;REFERENCED_TABLENAME&quot;, 14486319327059551333LLU)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static const <br class="typebreak"/>
::ctemplate::StaticTemplateString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespace_w_sql.html#ad2fb8b6751a7eaa954e284534cb68593">WSql::kcd_TABLE_NAME</a> = STS_INIT_WITH_HASH(<a class="el" href="class__declaration_8tpl_8varnames_8h.html#ae61adac3784bd271abcc50bf2a2325ba">kcd_TABLE_NAME</a>, &quot;TABLE_NAME&quot;, 3760310134096538793LLU)</td></tr>
</table>
<hr/><h2>Define Documentation</h2>
<a class="anchor" id="a7da7455c29f8520e0ae3a9237c7aafce"></a><!-- doxytag: member="wormclassgenerator.cpp::MIN_TPL_FILENAME_SIZE" ref="a7da7455c29f8520e0ae3a9237c7aafce" args="" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define MIN_TPL_FILENAME_SIZE&#160;&#160;&#160;20</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>Definition at line <a class="el" href="wormclassgenerator_8cpp_source.html#l00020">20</a> of file <a class="el" href="wormclassgenerator_8cpp_source.html">wormclassgenerator.cpp</a>.</p>
</div>
</div>
</div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Defines</a></div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Fri Nov 18 2011 21:01:45 for WORM by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>