XQuilla/docs/simple-api/ContextHelpers_8hpp-source.html
2020-02-17 22:05:20 +01:00

115 lines
9.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>XQilla Simple API: ContextHelpers.hpp Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.6 -->
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="classes.html"><span>Classes</span></a></li>
<li id="current"><a href="files.html"><span>Files</span></a></li>
</ul></div>
<div class="tabs">
<ul>
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul></div>
<h1>ContextHelpers.hpp</h1><a href="ContextHelpers_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
<a name="l00002"></a>00002 <span class="comment"> * Copyright (c) 2001-2006</span>
<a name="l00003"></a>00003 <span class="comment"> * DecisionSoft Limited. All rights reserved.</span>
<a name="l00004"></a>00004 <span class="comment"> * Copyright (c) 2004-2006</span>
<a name="l00005"></a>00005 <span class="comment"> * Progress Software Corporation. All rights reserved.</span>
<a name="l00006"></a>00006 <span class="comment"> * Copyright (c) 2004-2006</span>
<a name="l00007"></a>00007 <span class="comment"> * Oracle. All rights reserved.</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * See the file LICENSE for redistribution information.</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * $Id: ContextHelpers.hpp,v 1.2 2006/11/01 16:37:11 jpcs Exp $</span>
<a name="l00012"></a>00012 <span class="comment"> */</span>
<a name="l00013"></a>00013
<a name="l00014"></a>00014 <span class="preprocessor">#if !defined(AFXQ_CONTEXTHELPERS_H__D6A320F5_21F1_421D_9E46_E4373B375E1A__INCLUDED_)</span>
<a name="l00015"></a><a class="code" href="ContextHelpers_8hpp.html#79bab0c9f8460c934cd400350c69d959">00015</a> <span class="preprocessor"></span><span class="preprocessor">#define AFXQ_CONTEXTHELPERS_H__D6A320F5_21F1_421D_9E46_E4373B375E1A__INCLUDED_</span>
<a name="l00016"></a>00016 <span class="preprocessor"></span>
<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;xqilla/framework/XQillaExport.hpp&gt;</span>
<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;<a class="code" href="DynamicContext_8hpp.html">xqilla/context/DynamicContext.hpp</a>&gt;</span>
<a name="l00019"></a>00019
<a name="l00020"></a><a class="code" href="classAutoNodeSetOrderingReset.html">00020</a> <span class="keyword">class </span>XQILLA_API <a class="code" href="classAutoNodeSetOrderingReset.html">AutoNodeSetOrderingReset</a>
<a name="l00021"></a>00021 {
<a name="l00022"></a>00022 <span class="keyword">public</span>:
<a name="l00023"></a><a class="code" href="classAutoNodeSetOrderingReset.html#8712620fa53a028c935c1e2b207860a6">00023</a> <a class="code" href="classAutoNodeSetOrderingReset.html">AutoNodeSetOrderingReset</a>(<a class="code" href="classStaticContext.html">StaticContext</a>* context, <a class="code" href="classStaticContext.html#b8bafb380375462baaed1f97db7314cd">StaticContext::NodeSetOrdering</a> ordering = <a class="code" href="classStaticContext.html#b8bafb380375462baaed1f97db7314cd11863f7ffef852eb2467b9c3b0236f86">StaticContext::ORDERING_UNORDERED</a>)
<a name="l00024"></a>00024 {
<a name="l00025"></a>00025 context_ = context;
<a name="l00026"></a>00026 ordering_ = context-&gt;<a class="code" href="classStaticContext.html#2d407f60a7c0390633e582601782bb55">getNodeSetOrdering</a>();
<a name="l00027"></a>00027 context-&gt;<a class="code" href="classStaticContext.html#e36546cd177c71fccf416c3c007ea75c">setNodeSetOrdering</a>(ordering);
<a name="l00028"></a>00028 }
<a name="l00029"></a>00029
<a name="l00030"></a><a class="code" href="classAutoNodeSetOrderingReset.html#1a24ceb1c309541ec5962a94497e5b9e">00030</a> ~<a class="code" href="classAutoNodeSetOrderingReset.html">AutoNodeSetOrderingReset</a>()
<a name="l00031"></a>00031 {
<a name="l00032"></a>00032 context_-&gt;setNodeSetOrdering(ordering_);
<a name="l00033"></a>00033 }
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="keyword">protected</span>:
<a name="l00036"></a><a class="code" href="classAutoNodeSetOrderingReset.html#bf1285a927bd48d23a457f89e3635ea0">00036</a> <a class="code" href="classStaticContext.html">StaticContext</a>* context_;
<a name="l00037"></a><a class="code" href="classAutoNodeSetOrderingReset.html#1d8e19b8fe8939ec993884dae65ab457">00037</a> <a class="code" href="classStaticContext.html#b8bafb380375462baaed1f97db7314cd">StaticContext::NodeSetOrdering</a> ordering_;
<a name="l00038"></a>00038 };
<a name="l00039"></a>00039
<a name="l00040"></a><a class="code" href="classAutoContextItemTypeReset.html">00040</a> <span class="keyword">class </span>XQILLA_API AutoContextItemTypeReset
<a name="l00041"></a>00041 {
<a name="l00042"></a>00042 <span class="keyword">public</span>:
<a name="l00043"></a><a class="code" href="classAutoContextItemTypeReset.html#0b60a30ce21a5e47b3a620c80fccca98">00043</a> AutoContextItemTypeReset(<a class="code" href="classStaticContext.html">StaticContext</a>* context, <span class="keyword">const</span> StaticType &amp;sType)
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045 context_ = context;
<a name="l00046"></a>00046 sType_ = context-&gt;<a class="code" href="classStaticContext.html#29cedf5b21dd4d013fec47e3a3b6bd90">getContextItemType</a>();
<a name="l00047"></a>00047 context-&gt;<a class="code" href="classStaticContext.html#35d3b2eef9afe340b5c0d39e87bb7e68">setContextItemType</a>(sType);
<a name="l00048"></a>00048 }
<a name="l00049"></a>00049
<a name="l00050"></a><a class="code" href="classAutoContextItemTypeReset.html#2ba43e89c2aba5f2c5107de4cdbe981f">00050</a> ~AutoContextItemTypeReset()
<a name="l00051"></a>00051 {
<a name="l00052"></a>00052 context_-&gt;setContextItemType(sType_);
<a name="l00053"></a>00053 }
<a name="l00054"></a>00054
<a name="l00055"></a>00055 <span class="keyword">protected</span>:
<a name="l00056"></a><a class="code" href="classAutoContextItemTypeReset.html#ce7f80abbbc5c20b406cf05fd492aded">00056</a> <a class="code" href="classStaticContext.html">StaticContext</a>* context_;
<a name="l00057"></a><a class="code" href="classAutoContextItemTypeReset.html#22aa431e65ccc96c43dddc66916dadaf">00057</a> StaticType sType_;
<a name="l00058"></a>00058 };
<a name="l00059"></a>00059
<a name="l00060"></a><a class="code" href="classAutoContextInfoReset.html">00060</a> <span class="keyword">class </span>XQILLA_API AutoContextInfoReset
<a name="l00061"></a>00061 {
<a name="l00062"></a>00062 <span class="keyword">public</span>:
<a name="l00063"></a><a class="code" href="classAutoContextInfoReset.html#9b562482b7a7f91957f7b60769061575">00063</a> AutoContextInfoReset(<a class="code" href="classDynamicContext.html">DynamicContext</a>* context)
<a name="l00064"></a>00064 : oldContextItem(context-&gt;getContextItem()),
<a name="l00065"></a>00065 oldContextPosition(context-&gt;getContextPosition()),
<a name="l00066"></a>00066 oldContextSize(context-&gt;getContextSize()),
<a name="l00067"></a>00067 context_(context)
<a name="l00068"></a>00068 {
<a name="l00069"></a>00069 }
<a name="l00070"></a>00070
<a name="l00071"></a><a class="code" href="classAutoContextInfoReset.html#b1a61085c5a470d0807109d8db6c2124">00071</a> ~AutoContextInfoReset()
<a name="l00072"></a>00072 {
<a name="l00073"></a>00073 resetContextInfo();
<a name="l00074"></a>00074 }
<a name="l00075"></a>00075
<a name="l00076"></a><a class="code" href="classAutoContextInfoReset.html#7738ac81fa2e3964d678b0b4454647d3">00076</a> <span class="keywordtype">void</span> resetContextInfo()
<a name="l00077"></a>00077 {
<a name="l00078"></a>00078 context_-&gt;setContextItem(oldContextItem);
<a name="l00079"></a>00079 context_-&gt;setContextPosition(oldContextPosition);
<a name="l00080"></a>00080 context_-&gt;setContextSize(oldContextSize);
<a name="l00081"></a>00081 }
<a name="l00082"></a>00082
<a name="l00083"></a><a class="code" href="classAutoContextInfoReset.html#6d430e6532df783691cd2cba063d07cd">00083</a> <a class="code" href="classRefCountPointer.html">Item::Ptr</a> oldContextItem;
<a name="l00084"></a><a class="code" href="classAutoContextInfoReset.html#53d88476c224d18b8081cb6384c5500b">00084</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> oldContextPosition;
<a name="l00085"></a><a class="code" href="classAutoContextInfoReset.html#a3a2e675e0bab3f051f8e69ab05ad37c">00085</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> oldContextSize;
<a name="l00086"></a>00086
<a name="l00087"></a>00087 <span class="keyword">private</span>:
<a name="l00088"></a>00088 <a class="code" href="classDynamicContext.html">DynamicContext</a>* context_;
<a name="l00089"></a>00089 };
<a name="l00090"></a>00090
<a name="l00091"></a>00091 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Tue Dec 12 00:18:56 2006 for XQilla Simple API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
</body>
</html>