2020-02-17 21:05:20 +00:00
<!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 >
2020-02-17 21:10:06 +00:00
<!-- Generated by Doxygen 1.5.1 -->
2020-02-17 21:05:20 +00:00
< div class = "tabs" >
< ul >
< li > < a href = "index.html" > < span > Main 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 List< / span > < / a > < / li >
< li > < a href = "globals.html" > < span > File 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 >
2020-02-17 21:10:06 +00:00
< a name = "l00011" > < / a > 00011 < span class = "comment" > * $Id: ContextHelpers.hpp,v 1.2.2.1 2007/03/05 15:22:53 jpcs Exp $< / span >
2020-02-17 21:05:20 +00:00
< 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 < xqilla/framework/XQillaExport.hpp> < / span >
< a name = "l00018" > < / a > 00018 < span class = "preprocessor" > #include < < a class = "code" href = "DynamicContext_8hpp.html" > xqilla/context/DynamicContext.hpp< / a > > < / 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;
2020-02-17 21:10:06 +00:00
< a name = "l00026" > < / a > 00026 ordering_ = context-> < a class = "code" href = "classStaticContext.html#fd0424746a15ecf3a8b99f15a3ecb036" > getNodeSetOrdering< / a > ();
2020-02-17 21:05:20 +00:00
< a name = "l00027" > < / a > 00027 context-> < 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_-> 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 & sType)
< a name = "l00044" > < / a > 00044 {
< a name = "l00045" > < / a > 00045 context_ = context;
2020-02-17 21:10:06 +00:00
< a name = "l00046" > < / a > 00046 sType_ = context-> < a class = "code" href = "classStaticContext.html#c2ac8fb630c5c5a7a9023ef6511653bf" > getContextItemType< / a > ();
2020-02-17 21:05:20 +00:00
< a name = "l00047" > < / a > 00047 context-> < 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_-> 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-> getContextItem()),
< a name = "l00065" > < / a > 00065 oldContextPosition(context-> getContextPosition()),
< a name = "l00066" > < / a > 00066 oldContextSize(context-> 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_-> setContextItem(oldContextItem);
< a name = "l00079" > < / a > 00079 context_-> setContextPosition(oldContextPosition);
< a name = "l00080" > < / a > 00080 context_-> 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
2020-02-17 21:10:06 +00:00
< a name = "l00091" > < / a > < a class = "code" href = "classAutoDocumentCacheReset.html" > 00091< / a > < span class = "keyword" > class < / span > XQILLA_API AutoDocumentCacheReset
< a name = "l00092" > < / a > 00092 {
< a name = "l00093" > < / a > 00093 < span class = "keyword" > public< / span > :
< a name = "l00094" > < / a > < a class = "code" href = "classAutoDocumentCacheReset.html#2a02fae6f17c4ba91bfdb80f64a94d4e" > 00094< / a > AutoDocumentCacheReset(< a class = "code" href = "classDynamicContext.html" > DynamicContext< / a > * context)
< a name = "l00095" > < / a > 00095 : oldDC(const_cast< DocumentCache*> (context-> getDocumentCache())),
< a name = "l00096" > < / a > 00096 context_ (context)
< a name = "l00097" > < / a > 00097 {
< a name = "l00098" > < / a > 00098 }
< a name = "l00099" > < / a > 00099
< a name = "l00100" > < / a > < a class = "code" href = "classAutoDocumentCacheReset.html#e09e539475cde761223c56de5f9b74bf" > 00100< / a > ~AutoDocumentCacheReset()
< a name = "l00101" > < / a > 00101 {
< a name = "l00102" > < / a > 00102 context_-> setDocumentCache(oldDC);
< a name = "l00103" > < / a > 00103 }
< a name = "l00104" > < / a > 00104
< a name = "l00105" > < / a > < a class = "code" href = "classAutoDocumentCacheReset.html#b5a50b8b1393ff16151f86806bb959d4" > 00105< / a > DocumentCache *oldDC;
< a name = "l00106" > < / a > 00106
< a name = "l00107" > < / a > 00107 < span class = "keyword" > protected< / span > :
< a name = "l00108" > < / a > < a class = "code" href = "classAutoDocumentCacheReset.html#f958239a0d69f253c1cfbafa2911063e" > 00108< / a > < a class = "code" href = "classDynamicContext.html" > DynamicContext< / a > * context_;
< a name = "l00109" > < / a > 00109 };
< a name = "l00110" > < / a > 00110
< a name = "l00111" > < / a > 00111 < span class = "preprocessor" > #endif< / span >
< / pre > < / div > < hr size = "1" > < address style = "align: right;" > < small > Generated on Wed Dec 12 19:13:50 2007 for XQilla Simple API by
2020-02-17 21:05:20 +00:00
< a href = "http://www.doxygen.org/index.html" >
2020-02-17 21:10:06 +00:00
< img src = "doxygen.png" alt = "doxygen" align = "middle" border = "0" > < / a > 1.5.1 < / small > < / address >
2020-02-17 21:05:20 +00:00
< / body >
< / html >