Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 583ffa4ba069126c3ba0bc565dc0485a > files > 805

cvc3-doc-2.4.1-1.fc15.noarch.rpm

<!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>CVC3: command_line_flags.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.7.4 -->
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">CVC3&#160;<span id="projectnumber">2.4.1</span></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="modules.html"><span>Modules</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>
    </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 class="header">
  <div class="headertitle">
<div class="title">command_line_flags.h</div>  </div>
</div>
<div class="contents">
<a href="command__line__flags_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*****************************************************************************/</span><span class="comment"></span>
<a name="l00002"></a>00002 <span class="comment">/*!</span>
<a name="l00003"></a>00003 <span class="comment"> * \file command_line_flags.h</span>
<a name="l00004"></a>00004 <span class="comment"> *</span>
<a name="l00005"></a>00005 <span class="comment"> * Author: Sergey Berezin</span>
<a name="l00006"></a>00006 <span class="comment"> *</span>
<a name="l00007"></a>00007 <span class="comment"> * Created: Mon Feb 10 16:22:00 2003</span>
<a name="l00008"></a>00008 <span class="comment"> *</span>
<a name="l00009"></a>00009 <span class="comment"> * &lt;hr&gt;</span>
<a name="l00010"></a>00010 <span class="comment"> *</span>
<a name="l00011"></a>00011 <span class="comment"> * License to use, copy, modify, sell and/or distribute this software</span>
<a name="l00012"></a>00012 <span class="comment"> * and its documentation for any purpose is hereby granted without</span>
<a name="l00013"></a>00013 <span class="comment"> * royalty, subject to the terms and conditions defined in the \ref</span>
<a name="l00014"></a>00014 <span class="comment"> * LICENSE file provided with this distribution.</span>
<a name="l00015"></a>00015 <span class="comment"> *</span>
<a name="l00016"></a>00016 <span class="comment"> * &lt;hr&gt;</span>
<a name="l00017"></a>00017 <span class="comment"> *</span>
<a name="l00018"></a>00018 <span class="comment"> */</span>
<a name="l00019"></a>00019 <span class="comment">/*****************************************************************************/</span>
<a name="l00020"></a>00020 
<a name="l00021"></a>00021 <span class="preprocessor">#ifndef _cvc3__command_line_flags_h_</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#define _cvc3__command_line_flags_h_</span>
<a name="l00023"></a>00023 <span class="preprocessor"></span>
<a name="l00024"></a>00024 <span class="preprocessor">#include &lt;sstream&gt;</span>
<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;cstring&gt;</span>
<a name="l00026"></a>00026 <span class="preprocessor">#include &lt;vector&gt;</span>
<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;map&gt;</span>
<a name="l00028"></a>00028 <span class="preprocessor">#include &quot;<a class="code" href="command__line__exception_8h.html">command_line_exception.h</a>&quot;</span>
<a name="l00029"></a>00029 <span class="preprocessor">#include &quot;<a class="code" href="debug_8h.html" title="Description: Collection of debugging macros and functions.">debug.h</a>&quot;</span>
<a name="l00030"></a>00030 
<a name="l00031"></a>00031 <span class="keyword">namespace </span>CVC3 {
<a name="l00032"></a>00032 <span class="comment"></span>
<a name="l00033"></a>00033 <span class="comment">  //! Different types of command line flags</span>
<a name="l00034"></a><a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683">00034</a> <span class="comment"></span>  <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00035"></a><a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a0ba368100918bc8a59c7f5f3951381ce">00035</a>     <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a0ba368100918bc8a59c7f5f3951381ce">CLFLAG_NULL</a>,
<a name="l00036"></a><a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a911f121f0f78d0b13aa7a8facc2a6d02">00036</a>     <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a911f121f0f78d0b13aa7a8facc2a6d02">CLFLAG_BOOL</a>,
<a name="l00037"></a><a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a3a164f9a853c7a4741fcc0bd7f0379ed">00037</a>     <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a3a164f9a853c7a4741fcc0bd7f0379ed">CLFLAG_INT</a>,
<a name="l00038"></a><a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683aa958b88033c4eabb9902aab89bb81dd7">00038</a>     <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683aa958b88033c4eabb9902aab89bb81dd7">CLFLAG_STRING</a>,
<a name="l00039"></a><a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a0ab466a578e52835eafc8531da1eb2ae">00039</a>     <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a0ab466a578e52835eafc8531da1eb2ae" title="Vector of pair&lt;string, bool&gt;">CLFLAG_STRVEC</a> <span class="comment">//!&lt; Vector of pair&lt;string, bool&gt;</span>
<a name="l00040"></a>00040 <span class="comment"></span>  } <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683" title="Different types of command line flags.">CLFlagType</a>;
<a name="l00041"></a>00041 <span class="comment"></span>
<a name="l00042"></a>00042 <span class="comment">  /*!</span>
<a name="l00043"></a>00043 <span class="comment">    Class CLFlag (for Command Line Flag)</span>
<a name="l00044"></a>00044 <span class="comment"></span>
<a name="l00045"></a>00045 <span class="comment">    Author: Sergey Berezin</span>
<a name="l00046"></a>00046 <span class="comment"></span>
<a name="l00047"></a>00047 <span class="comment">    Date: Fri May 30 14:10:48 2003</span>
<a name="l00048"></a>00048 <span class="comment"></span>
<a name="l00049"></a>00049 <span class="comment">    This class implements a data structure to hold a value of a single</span>
<a name="l00050"></a>00050 <span class="comment">    command line flag.</span>
<a name="l00051"></a>00051 <span class="comment">  */</span>
<a name="l00052"></a>00052 
<a name="l00053"></a><a class="code" href="classCVC3_1_1CLFlag.html">00053</a> <span class="keyword">class </span><a class="code" href="classCVC3_1_1CLFlag.html">CLFlag</a> {
<a name="l00054"></a>00054  <span class="keyword">private</span>:<span class="comment"></span>
<a name="l00055"></a>00055 <span class="comment">  //! Type of the argument</span>
<a name="l00056"></a><a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a">00056</a> <span class="comment"></span>  <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683" title="Different types of command line flags.">CLFlagType</a> <a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a>;<span class="comment"></span>
<a name="l00057"></a>00057 <span class="comment">  //! The argument</span>
<a name="l00058"></a>00058 <span class="comment"></span>  <span class="keyword">union </span>{
<a name="l00059"></a><a class="code" href="classCVC3_1_1CLFlag.html#a42e6e93d638393e6b3fdda87aca9720d">00059</a>     <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1CLFlag.html#a42e6e93d638393e6b3fdda87aca9720d">b</a>;
<a name="l00060"></a><a class="code" href="classCVC3_1_1CLFlag.html#a69b3bea4e6e873ac8d5ee13c2550fa1f">00060</a>     <span class="keywordtype">int</span> <a class="code" href="classCVC3_1_1CLFlag.html#a69b3bea4e6e873ac8d5ee13c2550fa1f">i</a>;
<a name="l00061"></a><a class="code" href="classCVC3_1_1CLFlag.html#a05dddada482ceb7a0d91f0d1d21870ce">00061</a>     std::string* <a class="code" href="classCVC3_1_1CLFlag.html#a05dddada482ceb7a0d91f0d1d21870ce">s</a>;
<a name="l00062"></a><a class="code" href="classCVC3_1_1CLFlag.html#a42c3fdc4380930049d1dda63323e7791">00062</a>     std::vector&lt;std::pair&lt;std::string,bool&gt; &gt;* <a class="code" href="classCVC3_1_1CLFlag.html#a42c3fdc4380930049d1dda63323e7791">sv</a>;
<a name="l00063"></a>00063   } <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>;<span class="comment"></span>
<a name="l00064"></a>00064 <span class="comment">  //! This tag is set to true when the flag is assigned a new value</span>
<a name="l00065"></a><a class="code" href="classCVC3_1_1CLFlag.html#a90072b913bc3516a742d3592fe2de2db">00065</a> <span class="comment"></span>  <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1CLFlag.html#a90072b913bc3516a742d3592fe2de2db" title="This tag is set to true when the flag is assigned a new value.">d_modified</a>;<span class="comment"></span>
<a name="l00066"></a>00066 <span class="comment">  //! Help string</span>
<a name="l00067"></a><a class="code" href="classCVC3_1_1CLFlag.html#a7be7b87ece4eae25051dcfdc99cc38f5">00067</a> <span class="comment"></span>  std::string <a class="code" href="classCVC3_1_1CLFlag.html#a7be7b87ece4eae25051dcfdc99cc38f5" title="Help string.">d_help</a>;<span class="comment"></span>
<a name="l00068"></a>00068 <span class="comment">  //! Whether to display this flag when user invokes cvc3 -h</span>
<a name="l00069"></a><a class="code" href="classCVC3_1_1CLFlag.html#af1b23b62af56b8757fb895ecfd8aa31c">00069</a> <span class="comment"></span>  <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1CLFlag.html#af1b23b62af56b8757fb895ecfd8aa31c" title="Whether to display this flag when user invokes cvc3 -h.">d_display</a>;
<a name="l00070"></a>00070  <span class="keyword">public</span>:<span class="comment"></span>
<a name="l00071"></a>00071 <span class="comment">  //! Constructor for a boolean flag</span>
<a name="l00072"></a><a class="code" href="classCVC3_1_1CLFlag.html#a9e8266d7cf2edb4b0268173202aa78c4">00072</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1CLFlag.html#a7b820c938c2fda69f5bc9f5108ecd444" title="Default constructor.">CLFlag</a>(<span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1CLFlag.html#a42e6e93d638393e6b3fdda87aca9720d">b</a>, <span class="keyword">const</span> std::string&amp; help, <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1CLFlag.html#ae86a22aa89529dde24dac8a2bc942798" title="Return true if flag should be displayed in regular help.">display</a> = <span class="keyword">true</span>)
<a name="l00073"></a>00073     : <a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a>(<a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a911f121f0f78d0b13aa7a8facc2a6d02">CLFLAG_BOOL</a>), <a class="code" href="classCVC3_1_1CLFlag.html#a90072b913bc3516a742d3592fe2de2db" title="This tag is set to true when the flag is assigned a new value.">d_modified</a>(0), <a class="code" href="classCVC3_1_1CLFlag.html#a7be7b87ece4eae25051dcfdc99cc38f5" title="Help string.">d_help</a>(help), <a class="code" href="classCVC3_1_1CLFlag.html#af1b23b62af56b8757fb895ecfd8aa31c" title="Whether to display this flag when user invokes cvc3 -h.">d_display</a>(<a class="code" href="classCVC3_1_1CLFlag.html#ae86a22aa89529dde24dac8a2bc942798" title="Return true if flag should be displayed in regular help.">display</a>)
<a name="l00074"></a>00074     { <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.b = <a class="code" href="classCVC3_1_1CLFlag.html#a42e6e93d638393e6b3fdda87aca9720d">b</a>; }<span class="comment"></span>
<a name="l00075"></a>00075 <span class="comment">  //! Constructor for an integer flag</span>
<a name="l00076"></a><a class="code" href="classCVC3_1_1CLFlag.html#a48be23ca453b094a712ba87ebf5569c5">00076</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1CLFlag.html#a7b820c938c2fda69f5bc9f5108ecd444" title="Default constructor.">CLFlag</a>(<span class="keywordtype">int</span> <a class="code" href="classCVC3_1_1CLFlag.html#a69b3bea4e6e873ac8d5ee13c2550fa1f">i</a>, <span class="keyword">const</span> std::string&amp; help, <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1CLFlag.html#ae86a22aa89529dde24dac8a2bc942798" title="Return true if flag should be displayed in regular help.">display</a> = <span class="keyword">true</span>)
<a name="l00077"></a>00077     : <a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a>(<a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a3a164f9a853c7a4741fcc0bd7f0379ed">CLFLAG_INT</a>), <a class="code" href="classCVC3_1_1CLFlag.html#a90072b913bc3516a742d3592fe2de2db" title="This tag is set to true when the flag is assigned a new value.">d_modified</a>(0), <a class="code" href="classCVC3_1_1CLFlag.html#a7be7b87ece4eae25051dcfdc99cc38f5" title="Help string.">d_help</a>(help), <a class="code" href="classCVC3_1_1CLFlag.html#af1b23b62af56b8757fb895ecfd8aa31c" title="Whether to display this flag when user invokes cvc3 -h.">d_display</a>(<a class="code" href="classCVC3_1_1CLFlag.html#ae86a22aa89529dde24dac8a2bc942798" title="Return true if flag should be displayed in regular help.">display</a>)
<a name="l00078"></a>00078     { <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.i = <a class="code" href="classCVC3_1_1CLFlag.html#a69b3bea4e6e873ac8d5ee13c2550fa1f">i</a>; }<span class="comment"></span>
<a name="l00079"></a>00079 <span class="comment">  //! Constructor for a string flag</span>
<a name="l00080"></a><a class="code" href="classCVC3_1_1CLFlag.html#af61af57d647b9d65be81cc787c9dce4a">00080</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1CLFlag.html#a7b820c938c2fda69f5bc9f5108ecd444" title="Default constructor.">CLFlag</a>(<span class="keyword">const</span> std::string&amp; <a class="code" href="classCVC3_1_1CLFlag.html#a05dddada482ceb7a0d91f0d1d21870ce">s</a>, <span class="keyword">const</span> std::string&amp; help, <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1CLFlag.html#ae86a22aa89529dde24dac8a2bc942798" title="Return true if flag should be displayed in regular help.">display</a> = <span class="keyword">true</span>)
<a name="l00081"></a>00081     : <a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a>(<a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683aa958b88033c4eabb9902aab89bb81dd7">CLFLAG_STRING</a>), <a class="code" href="classCVC3_1_1CLFlag.html#a90072b913bc3516a742d3592fe2de2db" title="This tag is set to true when the flag is assigned a new value.">d_modified</a>(0), <a class="code" href="classCVC3_1_1CLFlag.html#a7be7b87ece4eae25051dcfdc99cc38f5" title="Help string.">d_help</a>(help), <a class="code" href="classCVC3_1_1CLFlag.html#af1b23b62af56b8757fb895ecfd8aa31c" title="Whether to display this flag when user invokes cvc3 -h.">d_display</a>(<a class="code" href="classCVC3_1_1CLFlag.html#ae86a22aa89529dde24dac8a2bc942798" title="Return true if flag should be displayed in regular help.">display</a>) {
<a name="l00082"></a>00082     <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.s = <span class="keyword">new</span> std::string(s);
<a name="l00083"></a>00083   }<span class="comment"></span>
<a name="l00084"></a>00084 <span class="comment">  //! Constructor for a string flag from char*</span>
<a name="l00085"></a><a class="code" href="classCVC3_1_1CLFlag.html#a3cdd9d3213f9347e0bc60f14880a78ed">00085</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1CLFlag.html#a7b820c938c2fda69f5bc9f5108ecd444" title="Default constructor.">CLFlag</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classCVC3_1_1CLFlag.html#a05dddada482ceb7a0d91f0d1d21870ce">s</a>, <span class="keyword">const</span> std::string&amp; help, <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1CLFlag.html#ae86a22aa89529dde24dac8a2bc942798" title="Return true if flag should be displayed in regular help.">display</a> = <span class="keyword">true</span>)
<a name="l00086"></a>00086     : <a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a>(<a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683aa958b88033c4eabb9902aab89bb81dd7">CLFLAG_STRING</a>), <a class="code" href="classCVC3_1_1CLFlag.html#a90072b913bc3516a742d3592fe2de2db" title="This tag is set to true when the flag is assigned a new value.">d_modified</a>(0), <a class="code" href="classCVC3_1_1CLFlag.html#a7be7b87ece4eae25051dcfdc99cc38f5" title="Help string.">d_help</a>(help), <a class="code" href="classCVC3_1_1CLFlag.html#af1b23b62af56b8757fb895ecfd8aa31c" title="Whether to display this flag when user invokes cvc3 -h.">d_display</a>(<a class="code" href="classCVC3_1_1CLFlag.html#ae86a22aa89529dde24dac8a2bc942798" title="Return true if flag should be displayed in regular help.">display</a>) {
<a name="l00087"></a>00087     <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.s = <span class="keyword">new</span> std::string((<span class="keywordtype">char</span>*)s);
<a name="l00088"></a>00088   }<span class="comment"></span>
<a name="l00089"></a>00089 <span class="comment">  //! Constructor for a vector flag</span>
<a name="l00090"></a><a class="code" href="classCVC3_1_1CLFlag.html#a9119cff675ecbb2a3b0247e994fafd06">00090</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1CLFlag.html#a7b820c938c2fda69f5bc9f5108ecd444" title="Default constructor.">CLFlag</a>(<span class="keyword">const</span> std::vector&lt;std::pair&lt;std::string,bool&gt; &gt;&amp; <a class="code" href="classCVC3_1_1CLFlag.html#a42c3fdc4380930049d1dda63323e7791">sv</a>,
<a name="l00091"></a>00091    <span class="keyword">const</span> std::string&amp; help, <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1CLFlag.html#ae86a22aa89529dde24dac8a2bc942798" title="Return true if flag should be displayed in regular help.">display</a> = <span class="keyword">true</span>)
<a name="l00092"></a>00092     : <a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a>(<a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a0ab466a578e52835eafc8531da1eb2ae" title="Vector of pair&lt;string, bool&gt;">CLFLAG_STRVEC</a>), <a class="code" href="classCVC3_1_1CLFlag.html#a90072b913bc3516a742d3592fe2de2db" title="This tag is set to true when the flag is assigned a new value.">d_modified</a>(0), <a class="code" href="classCVC3_1_1CLFlag.html#a7be7b87ece4eae25051dcfdc99cc38f5" title="Help string.">d_help</a>(help), <a class="code" href="classCVC3_1_1CLFlag.html#af1b23b62af56b8757fb895ecfd8aa31c" title="Whether to display this flag when user invokes cvc3 -h.">d_display</a>(<a class="code" href="classCVC3_1_1CLFlag.html#ae86a22aa89529dde24dac8a2bc942798" title="Return true if flag should be displayed in regular help.">display</a>) {
<a name="l00093"></a>00093     <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.sv = <span class="keyword">new</span> std::vector&lt;std::pair&lt;std::string,bool&gt; &gt;(<a class="code" href="classCVC3_1_1CLFlag.html#a42c3fdc4380930049d1dda63323e7791">sv</a>);
<a name="l00094"></a>00094   }<span class="comment"></span>
<a name="l00095"></a>00095 <span class="comment">  //! Default constructor</span>
<a name="l00096"></a><a class="code" href="classCVC3_1_1CLFlag.html#a7b820c938c2fda69f5bc9f5108ecd444">00096</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1CLFlag.html#a7b820c938c2fda69f5bc9f5108ecd444" title="Default constructor.">CLFlag</a>(): <a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a>(<a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a0ba368100918bc8a59c7f5f3951381ce">CLFLAG_NULL</a>), <a class="code" href="classCVC3_1_1CLFlag.html#a90072b913bc3516a742d3592fe2de2db" title="This tag is set to true when the flag is assigned a new value.">d_modified</a>(0), <a class="code" href="classCVC3_1_1CLFlag.html#a7be7b87ece4eae25051dcfdc99cc38f5" title="Help string.">d_help</a>(<span class="stringliteral">&quot;Undefined flag&quot;</span>), <a class="code" href="classCVC3_1_1CLFlag.html#af1b23b62af56b8757fb895ecfd8aa31c" title="Whether to display this flag when user invokes cvc3 -h.">d_display</a>(false) { }<span class="comment"></span>
<a name="l00097"></a>00097 <span class="comment">  //! Copy constructor</span>
<a name="l00098"></a><a class="code" href="classCVC3_1_1CLFlag.html#a93017e0c1accad0443581de34effa41a">00098</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1CLFlag.html#a7b820c938c2fda69f5bc9f5108ecd444" title="Default constructor.">CLFlag</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1CLFlag.html">CLFlag</a>&amp; f)
<a name="l00099"></a>00099     : <a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a>(f.<a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a>), <a class="code" href="classCVC3_1_1CLFlag.html#a90072b913bc3516a742d3592fe2de2db" title="This tag is set to true when the flag is assigned a new value.">d_modified</a>(f.<a class="code" href="classCVC3_1_1CLFlag.html#a90072b913bc3516a742d3592fe2de2db" title="This tag is set to true when the flag is assigned a new value.">d_modified</a>), <a class="code" href="classCVC3_1_1CLFlag.html#a7be7b87ece4eae25051dcfdc99cc38f5" title="Help string.">d_help</a>(f.<a class="code" href="classCVC3_1_1CLFlag.html#a7be7b87ece4eae25051dcfdc99cc38f5" title="Help string.">d_help</a>), <a class="code" href="classCVC3_1_1CLFlag.html#af1b23b62af56b8757fb895ecfd8aa31c" title="Whether to display this flag when user invokes cvc3 -h.">d_display</a>(f.<a class="code" href="classCVC3_1_1CLFlag.html#af1b23b62af56b8757fb895ecfd8aa31c" title="Whether to display this flag when user invokes cvc3 -h.">d_display</a>) {
<a name="l00100"></a>00100     <span class="keywordflow">switch</span>(<a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a>) {
<a name="l00101"></a>00101     <span class="keywordflow">case</span> <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683aa958b88033c4eabb9902aab89bb81dd7">CLFLAG_STRING</a>:
<a name="l00102"></a>00102       <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.s = <span class="keyword">new</span> std::string(*f.<a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.<a class="code" href="classCVC3_1_1CLFlag.html#a05dddada482ceb7a0d91f0d1d21870ce">s</a>); <span class="keywordflow">break</span>;
<a name="l00103"></a>00103     <span class="keywordflow">case</span> <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a0ab466a578e52835eafc8531da1eb2ae" title="Vector of pair&lt;string, bool&gt;">CLFLAG_STRVEC</a>:
<a name="l00104"></a>00104       <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.sv = <span class="keyword">new</span> std::vector&lt;std::pair&lt;std::string,bool&gt; &gt;(*f.<a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.<a class="code" href="classCVC3_1_1CLFlag.html#a42c3fdc4380930049d1dda63323e7791">sv</a>); <span class="keywordflow">break</span>;
<a name="l00105"></a>00105     <span class="keywordflow">default</span>: <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a> = f.<a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>;
<a name="l00106"></a>00106     }
<a name="l00107"></a>00107   }<span class="comment"></span>
<a name="l00108"></a>00108 <span class="comment">  //! Destructor</span>
<a name="l00109"></a><a class="code" href="classCVC3_1_1CLFlag.html#a0097cbcd2cbbd2fff72e0709b42485a0">00109</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1CLFlag.html#a0097cbcd2cbbd2fff72e0709b42485a0" title="Destructor.">~CLFlag</a>() {
<a name="l00110"></a>00110     <span class="keywordflow">switch</span>(<a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a>) {
<a name="l00111"></a>00111     <span class="keywordflow">case</span> <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683aa958b88033c4eabb9902aab89bb81dd7">CLFLAG_STRING</a>: <span class="keyword">delete</span> <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.s; <span class="keywordflow">break</span>;
<a name="l00112"></a>00112     <span class="keywordflow">case</span> <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a0ab466a578e52835eafc8531da1eb2ae" title="Vector of pair&lt;string, bool&gt;">CLFLAG_STRVEC</a>: <span class="keyword">delete</span> <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.sv; <span class="keywordflow">break</span>;
<a name="l00113"></a>00113     <span class="keywordflow">default</span>: <span class="keywordflow">break</span>;<span class="comment">// Nothing to do</span>
<a name="l00114"></a>00114     }
<a name="l00115"></a>00115   }<span class="comment"></span>
<a name="l00116"></a>00116 <span class="comment">  //! Assignment from another flag</span>
<a name="l00117"></a><a class="code" href="classCVC3_1_1CLFlag.html#ad279d7a2013abea0a3bb45ca4128db54">00117</a> <span class="comment"></span>  <a class="code" href="classCVC3_1_1CLFlag.html">CLFlag</a>&amp; <a class="code" href="classCVC3_1_1CLFlag.html#ad279d7a2013abea0a3bb45ca4128db54" title="Assignment from another flag.">operator=</a>(<span class="keyword">const</span> <a class="code" href="classCVC3_1_1CLFlag.html">CLFlag</a>&amp; f) {
<a name="l00118"></a>00118     <span class="keywordflow">if</span>(<span class="keyword">this</span> == &amp;f) <span class="keywordflow">return</span> *<span class="keyword">this</span>; <span class="comment">// Self-assignment</span>
<a name="l00119"></a>00119     <span class="comment">// Try to preserve the existing heap objects if possible</span>
<a name="l00120"></a>00120     <span class="keywordflow">if</span>(<a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a> == f.<a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a>) {
<a name="l00121"></a>00121       <span class="keywordflow">switch</span>(<a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a>) {
<a name="l00122"></a>00122       <span class="keywordflow">case</span> <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683aa958b88033c4eabb9902aab89bb81dd7">CLFLAG_STRING</a>: *<a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.s = *f.<a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.<a class="code" href="classCVC3_1_1CLFlag.html#a05dddada482ceb7a0d91f0d1d21870ce">s</a>; <span class="keywordflow">break</span>;
<a name="l00123"></a>00123       <span class="keywordflow">case</span> <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a0ab466a578e52835eafc8531da1eb2ae" title="Vector of pair&lt;string, bool&gt;">CLFLAG_STRVEC</a>: *<a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.sv = *f.<a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.<a class="code" href="classCVC3_1_1CLFlag.html#a42c3fdc4380930049d1dda63323e7791">sv</a>; <span class="keywordflow">break</span>;
<a name="l00124"></a>00124       <span class="keywordflow">default</span>: <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a> = f.<a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>;
<a name="l00125"></a>00125       }
<a name="l00126"></a>00126     } <span class="keywordflow">else</span> {
<a name="l00127"></a>00127       <span class="keywordflow">switch</span>(<a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a>) {
<a name="l00128"></a>00128       <span class="keywordflow">case</span> <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683aa958b88033c4eabb9902aab89bb81dd7">CLFLAG_STRING</a>: <span class="keyword">delete</span> <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.s; <span class="keywordflow">break</span>;
<a name="l00129"></a>00129       <span class="keywordflow">case</span> <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a0ab466a578e52835eafc8531da1eb2ae" title="Vector of pair&lt;string, bool&gt;">CLFLAG_STRVEC</a>: <span class="keyword">delete</span> <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.sv; <span class="keywordflow">break</span>;
<a name="l00130"></a>00130       <span class="keywordflow">default</span>: <span class="keywordflow">break</span>;
<a name="l00131"></a>00131       }
<a name="l00132"></a>00132       <span class="keywordflow">switch</span>(f.<a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a>) {
<a name="l00133"></a>00133       <span class="keywordflow">case</span> <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683aa958b88033c4eabb9902aab89bb81dd7">CLFLAG_STRING</a>: <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.s = <span class="keyword">new</span> std::string(*f.<a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.<a class="code" href="classCVC3_1_1CLFlag.html#a05dddada482ceb7a0d91f0d1d21870ce">s</a>); <span class="keywordflow">break</span>;
<a name="l00134"></a>00134       <span class="keywordflow">case</span> <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a0ab466a578e52835eafc8531da1eb2ae" title="Vector of pair&lt;string, bool&gt;">CLFLAG_STRVEC</a>:
<a name="l00135"></a>00135   <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.sv=<span class="keyword">new</span> std::vector&lt;std::pair&lt;std::string,bool&gt; &gt;(*f.<a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.<a class="code" href="classCVC3_1_1CLFlag.html#a42c3fdc4380930049d1dda63323e7791">sv</a>);
<a name="l00136"></a>00136   <span class="keywordflow">break</span>;
<a name="l00137"></a>00137       <span class="keywordflow">default</span>: <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a> = f.<a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>;
<a name="l00138"></a>00138       }
<a name="l00139"></a>00139     }
<a name="l00140"></a>00140     <a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a> = f.<a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a>;
<a name="l00141"></a>00141     <a class="code" href="classCVC3_1_1CLFlag.html#a90072b913bc3516a742d3592fe2de2db" title="This tag is set to true when the flag is assigned a new value.">d_modified</a> = f.<a class="code" href="classCVC3_1_1CLFlag.html#a90072b913bc3516a742d3592fe2de2db" title="This tag is set to true when the flag is assigned a new value.">d_modified</a>;
<a name="l00142"></a>00142     <a class="code" href="classCVC3_1_1CLFlag.html#a7be7b87ece4eae25051dcfdc99cc38f5" title="Help string.">d_help</a> = f.<a class="code" href="classCVC3_1_1CLFlag.html#a7be7b87ece4eae25051dcfdc99cc38f5" title="Help string.">d_help</a>;
<a name="l00143"></a>00143     <a class="code" href="classCVC3_1_1CLFlag.html#af1b23b62af56b8757fb895ecfd8aa31c" title="Whether to display this flag when user invokes cvc3 -h.">d_display</a> = f.<a class="code" href="classCVC3_1_1CLFlag.html#af1b23b62af56b8757fb895ecfd8aa31c" title="Whether to display this flag when user invokes cvc3 -h.">d_display</a>;
<a name="l00144"></a>00144     <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00145"></a>00145   }<span class="comment"></span>
<a name="l00146"></a>00146 <span class="comment">  //! Assignment of a boolean value</span>
<a name="l00147"></a>00147 <span class="comment"></span><span class="comment">  /*! The flag must already have the right type */</span>
<a name="l00148"></a><a class="code" href="classCVC3_1_1CLFlag.html#a1505c3d62aa68bcf247b9424f0e6c4ef">00148</a>   <a class="code" href="classCVC3_1_1CLFlag.html">CLFlag</a>&amp; <a class="code" href="classCVC3_1_1CLFlag.html#a1505c3d62aa68bcf247b9424f0e6c4ef" title="Assignment of a boolean value.">operator=</a>(<span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1CLFlag.html#a42e6e93d638393e6b3fdda87aca9720d">b</a>) {
<a name="l00149"></a>00149     <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a> == <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a911f121f0f78d0b13aa7a8facc2a6d02">CLFLAG_BOOL</a>, <span class="stringliteral">&quot;&quot;</span>);
<a name="l00150"></a>00150     <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.b = <a class="code" href="classCVC3_1_1CLFlag.html#a42e6e93d638393e6b3fdda87aca9720d">b</a>;
<a name="l00151"></a>00151     <a class="code" href="classCVC3_1_1CLFlag.html#a90072b913bc3516a742d3592fe2de2db" title="This tag is set to true when the flag is assigned a new value.">d_modified</a> = <span class="keyword">true</span>;
<a name="l00152"></a>00152     <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00153"></a>00153   }<span class="comment"></span>
<a name="l00154"></a>00154 <span class="comment">  //! Assignment of an integer value</span>
<a name="l00155"></a>00155 <span class="comment"></span><span class="comment">  /*! The flag must already have the right type */</span>
<a name="l00156"></a><a class="code" href="classCVC3_1_1CLFlag.html#ae34ebb5a5add6e0e41d04fa94606ae10">00156</a>   <a class="code" href="classCVC3_1_1CLFlag.html">CLFlag</a>&amp; <a class="code" href="classCVC3_1_1CLFlag.html#ae34ebb5a5add6e0e41d04fa94606ae10" title="Assignment of an integer value.">operator=</a>(<span class="keywordtype">int</span> <a class="code" href="classCVC3_1_1CLFlag.html#a69b3bea4e6e873ac8d5ee13c2550fa1f">i</a>) {
<a name="l00157"></a>00157     <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a> == <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a3a164f9a853c7a4741fcc0bd7f0379ed">CLFLAG_INT</a>, <span class="stringliteral">&quot;&quot;</span>);
<a name="l00158"></a>00158     <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.i = <a class="code" href="classCVC3_1_1CLFlag.html#a69b3bea4e6e873ac8d5ee13c2550fa1f">i</a>;
<a name="l00159"></a>00159     <a class="code" href="classCVC3_1_1CLFlag.html#a90072b913bc3516a742d3592fe2de2db" title="This tag is set to true when the flag is assigned a new value.">d_modified</a> = <span class="keyword">true</span>;
<a name="l00160"></a>00160     <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00161"></a>00161   }<span class="comment"></span>
<a name="l00162"></a>00162 <span class="comment">  //! Assignment of a string value</span>
<a name="l00163"></a>00163 <span class="comment"></span><span class="comment">  /*! The flag must already have a string type. */</span>
<a name="l00164"></a><a class="code" href="classCVC3_1_1CLFlag.html#ad19e4e889308fd9b3fa5c5fca5ea48a1">00164</a>   <a class="code" href="classCVC3_1_1CLFlag.html">CLFlag</a>&amp; <a class="code" href="classCVC3_1_1CLFlag.html#ad19e4e889308fd9b3fa5c5fca5ea48a1" title="Assignment of a string value.">operator=</a>(<span class="keyword">const</span> std::string&amp; <a class="code" href="classCVC3_1_1CLFlag.html#a05dddada482ceb7a0d91f0d1d21870ce">s</a>) {
<a name="l00165"></a>00165     <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a> == <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683aa958b88033c4eabb9902aab89bb81dd7">CLFLAG_STRING</a>, <span class="stringliteral">&quot;&quot;</span>);
<a name="l00166"></a>00166     *<a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.s = <a class="code" href="classCVC3_1_1CLFlag.html#a05dddada482ceb7a0d91f0d1d21870ce">s</a>;
<a name="l00167"></a>00167     <a class="code" href="classCVC3_1_1CLFlag.html#a90072b913bc3516a742d3592fe2de2db" title="This tag is set to true when the flag is assigned a new value.">d_modified</a> = <span class="keyword">true</span>;
<a name="l00168"></a>00168     <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00169"></a>00169   }<span class="comment"></span>
<a name="l00170"></a>00170 <span class="comment">  //! Assignment of an string value from char*</span>
<a name="l00171"></a>00171 <span class="comment"></span><span class="comment">  /*! The flag must already have a string type. */</span>
<a name="l00172"></a><a class="code" href="classCVC3_1_1CLFlag.html#afb69562cc00ff6f2918d38aace979a64">00172</a>   <a class="code" href="classCVC3_1_1CLFlag.html">CLFlag</a>&amp; <a class="code" href="classCVC3_1_1CLFlag.html#afb69562cc00ff6f2918d38aace979a64" title="Assignment of an string value from char*.">operator=</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classCVC3_1_1CLFlag.html#a05dddada482ceb7a0d91f0d1d21870ce">s</a>) {
<a name="l00173"></a>00173     <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a> == <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683aa958b88033c4eabb9902aab89bb81dd7">CLFLAG_STRING</a>, <span class="stringliteral">&quot;&quot;</span>);
<a name="l00174"></a>00174     *<a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.s = <a class="code" href="classCVC3_1_1CLFlag.html#a05dddada482ceb7a0d91f0d1d21870ce">s</a>;
<a name="l00175"></a>00175     <a class="code" href="classCVC3_1_1CLFlag.html#a90072b913bc3516a742d3592fe2de2db" title="This tag is set to true when the flag is assigned a new value.">d_modified</a> = <span class="keyword">true</span>;
<a name="l00176"></a>00176     <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00177"></a>00177   }<span class="comment"></span>
<a name="l00178"></a>00178 <span class="comment">  //! Assignment of a string value with a boolean tag to a vector flag</span>
<a name="l00179"></a>00179 <span class="comment"></span><span class="comment">  /*! The flag must already have a vector type.  The pair of</span>
<a name="l00180"></a>00180 <span class="comment">    &lt;string,bool&gt; will be appended to the vector. */</span>
<a name="l00181"></a><a class="code" href="classCVC3_1_1CLFlag.html#a83fa570a753d771fd29df4a05d4e3c47">00181</a>   <a class="code" href="classCVC3_1_1CLFlag.html">CLFlag</a>&amp; <a class="code" href="classCVC3_1_1CLFlag.html#a83fa570a753d771fd29df4a05d4e3c47" title="Assignment of a string value with a boolean tag to a vector flag.">operator=</a>(<span class="keyword">const</span> std::pair&lt;std::string,bool&gt;&amp; p) {
<a name="l00182"></a>00182     <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a> == <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a0ab466a578e52835eafc8531da1eb2ae" title="Vector of pair&lt;string, bool&gt;">CLFLAG_STRVEC</a>, <span class="stringliteral">&quot;&quot;</span>);
<a name="l00183"></a>00183     <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.sv-&gt;push_back(p);
<a name="l00184"></a>00184     <a class="code" href="classCVC3_1_1CLFlag.html#a90072b913bc3516a742d3592fe2de2db" title="This tag is set to true when the flag is assigned a new value.">d_modified</a> = <span class="keyword">true</span>;
<a name="l00185"></a>00185     <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00186"></a>00186   }<span class="comment"></span>
<a name="l00187"></a>00187 <span class="comment">  //! Assignment of a vector value</span>
<a name="l00188"></a>00188 <span class="comment"></span><span class="comment">  /*! The flag must already have a vector type. */</span>
<a name="l00189"></a><a class="code" href="classCVC3_1_1CLFlag.html#adf238074b9b3dadcb1464071c40da1ec">00189</a>   <a class="code" href="classCVC3_1_1CLFlag.html">CLFlag</a>&amp; <a class="code" href="classCVC3_1_1CLFlag.html#adf238074b9b3dadcb1464071c40da1ec" title="Assignment of a vector value.">operator=</a>(<span class="keyword">const</span> std::vector&lt;std::pair&lt;std::string,bool&gt; &gt;&amp; <a class="code" href="classCVC3_1_1CLFlag.html#a42c3fdc4380930049d1dda63323e7791">sv</a>) {
<a name="l00190"></a>00190     <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a> == <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a0ab466a578e52835eafc8531da1eb2ae" title="Vector of pair&lt;string, bool&gt;">CLFLAG_STRVEC</a>, <span class="stringliteral">&quot;&quot;</span>);
<a name="l00191"></a>00191     *<a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.sv = <a class="code" href="classCVC3_1_1CLFlag.html#a42c3fdc4380930049d1dda63323e7791">sv</a>;
<a name="l00192"></a>00192     <a class="code" href="classCVC3_1_1CLFlag.html#a90072b913bc3516a742d3592fe2de2db" title="This tag is set to true when the flag is assigned a new value.">d_modified</a> = <span class="keyword">true</span>;
<a name="l00193"></a>00193     <span class="keywordflow">return</span> *<span class="keyword">this</span>;
<a name="l00194"></a>00194   }
<a name="l00195"></a>00195   <span class="comment">// Accessor methods</span><span class="comment"></span>
<a name="l00196"></a>00196 <span class="comment">  //! Return the type of the flag</span>
<a name="l00197"></a><a class="code" href="classCVC3_1_1CLFlag.html#a5b69bc92a83154afcb2d05973a0bb6a1">00197</a> <span class="comment"></span>  <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683" title="Different types of command line flags.">CLFlagType</a> <a class="code" href="classCVC3_1_1CLFlag.html#a5b69bc92a83154afcb2d05973a0bb6a1" title="Return the type of the flag.">getType</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a>; }<span class="comment"></span>
<a name="l00198"></a>00198 <span class="comment">  /*! @brief Return true if the flag was modified from the default</span>
<a name="l00199"></a>00199 <span class="comment">    value (e.g. set on the command line) */</span>
<a name="l00200"></a><a class="code" href="classCVC3_1_1CLFlag.html#a75bcd631f1de487481c0a06c6f5db984">00200</a>   <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1CLFlag.html#a75bcd631f1de487481c0a06c6f5db984" title="Return true if the flag was modified from the default value (e.g. set on the command line)...">modified</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1CLFlag.html#a90072b913bc3516a742d3592fe2de2db" title="This tag is set to true when the flag is assigned a new value.">d_modified</a>; }<span class="comment"></span>
<a name="l00201"></a>00201 <span class="comment">  //! Return true if flag should be displayed in regular help</span>
<a name="l00202"></a><a class="code" href="classCVC3_1_1CLFlag.html#ae86a22aa89529dde24dac8a2bc942798">00202</a> <span class="comment"></span>  <span class="keywordtype">bool</span> <a class="code" href="classCVC3_1_1CLFlag.html#ae86a22aa89529dde24dac8a2bc942798" title="Return true if flag should be displayed in regular help.">display</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1CLFlag.html#af1b23b62af56b8757fb895ecfd8aa31c" title="Whether to display this flag when user invokes cvc3 -h.">d_display</a>; }
<a name="l00203"></a>00203 
<a name="l00204"></a>00204   <span class="comment">// The value accessors return a reference.  For the system-wide</span>
<a name="l00205"></a>00205   <span class="comment">// flags, this reference will remain valid throughout the run of the</span>
<a name="l00206"></a>00206   <span class="comment">// program, even if the flag&#39;s value changes.  So, the reference can</span>
<a name="l00207"></a>00207   <span class="comment">// be cached, and the value can be checked directly (which is more</span>
<a name="l00208"></a>00208   <span class="comment">// efficient).</span>
<a name="l00209"></a><a class="code" href="classCVC3_1_1CLFlag.html#a30fda6cd5b164cb30d9849db45d90773">00209</a>   <span class="keyword">const</span> <span class="keywordtype">bool</span>&amp; <a class="code" href="classCVC3_1_1CLFlag.html#a30fda6cd5b164cb30d9849db45d90773">getBool</a>()<span class="keyword"> const </span>{
<a name="l00210"></a>00210     <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a> == <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a911f121f0f78d0b13aa7a8facc2a6d02">CLFLAG_BOOL</a>, <span class="stringliteral">&quot;CLFlag::getBool: not a boolean flag&quot;</span>);
<a name="l00211"></a>00211     <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.b;
<a name="l00212"></a>00212   }
<a name="l00213"></a>00213 
<a name="l00214"></a><a class="code" href="classCVC3_1_1CLFlag.html#ae78fbec7197ac89368860d4b2c12138e">00214</a>   <span class="keyword">const</span> <span class="keywordtype">int</span>&amp; <a class="code" href="classCVC3_1_1CLFlag.html#ae78fbec7197ac89368860d4b2c12138e">getInt</a>()<span class="keyword"> const </span>{
<a name="l00215"></a>00215     <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a> == <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a3a164f9a853c7a4741fcc0bd7f0379ed">CLFLAG_INT</a>, <span class="stringliteral">&quot;CLFlag::getInt: not an integer flag&quot;</span>);
<a name="l00216"></a>00216     <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.i;
<a name="l00217"></a>00217   }
<a name="l00218"></a>00218 
<a name="l00219"></a><a class="code" href="classCVC3_1_1CLFlag.html#a7a291448efc533fe859771d2951e30b8">00219</a>   <span class="keyword">const</span> std::string&amp; <a class="code" href="classCVC3_1_1CLFlag.html#a7a291448efc533fe859771d2951e30b8">getString</a>()<span class="keyword"> const </span>{
<a name="l00220"></a>00220     <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a> == <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683aa958b88033c4eabb9902aab89bb81dd7">CLFLAG_STRING</a>,
<a name="l00221"></a>00221     <span class="stringliteral">&quot;CLFlag::getString: not a string flag&quot;</span>);
<a name="l00222"></a>00222     <span class="keywordflow">return</span> *<a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.s;
<a name="l00223"></a>00223   }
<a name="l00224"></a>00224 
<a name="l00225"></a><a class="code" href="classCVC3_1_1CLFlag.html#a8d31d925df04ede1f366f42c2cf8cef4">00225</a>   <span class="keyword">const</span> std::vector&lt;std::pair&lt;std::string,bool&gt; &gt;&amp; <a class="code" href="classCVC3_1_1CLFlag.html#a8d31d925df04ede1f366f42c2cf8cef4">getStrVec</a>()<span class="keyword"> const </span>{
<a name="l00226"></a>00226     <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="classCVC3_1_1CLFlag.html#a3c6092f0192a0280c1764c408db16e3a" title="Type of the argument.">d_tp</a> == <a class="code" href="namespaceCVC3.html#ad8e707d3b90ce7dcd048a5b651e0a683a0ab466a578e52835eafc8531da1eb2ae" title="Vector of pair&lt;string, bool&gt;">CLFLAG_STRVEC</a>,
<a name="l00227"></a>00227     <span class="stringliteral">&quot;CLFlag::getStrVec: not a string vector flag&quot;</span>);
<a name="l00228"></a>00228     <span class="keywordflow">return</span> *<a class="code" href="classCVC3_1_1CLFlag.html#aa1e81643df31fbc8e35aa85d49a4e6d0">d_data</a>.sv;
<a name="l00229"></a>00229   }
<a name="l00230"></a>00230 
<a name="l00231"></a><a class="code" href="classCVC3_1_1CLFlag.html#a7d495ea7fc3c8801595789136a88c795">00231</a>   <span class="keyword">const</span> std::string&amp; <a class="code" href="classCVC3_1_1CLFlag.html#a7d495ea7fc3c8801595789136a88c795">getHelp</a>()<span class="keyword"> const </span>{
<a name="l00232"></a>00232     <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1CLFlag.html#a7be7b87ece4eae25051dcfdc99cc38f5" title="Help string.">d_help</a>;
<a name="l00233"></a>00233   }
<a name="l00234"></a>00234 
<a name="l00235"></a>00235 }; <span class="comment">// end of class CLFlag</span>
<a name="l00236"></a>00236 <span class="comment"></span>
<a name="l00237"></a>00237 <span class="comment">///////////////////////////////////////////////////////////////////////</span>
<a name="l00238"></a>00238 <span class="comment"></span><span class="comment">// Class CLFlag (for Command Line Flag)</span>
<a name="l00239"></a>00239 <span class="comment">//</span>
<a name="l00240"></a>00240 <span class="comment">// Author: Sergey Berezin</span>
<a name="l00241"></a>00241 <span class="comment">// Date: Fri May 30 14:10:48 2003</span>
<a name="l00242"></a>00242 <span class="comment">//</span>
<a name="l00243"></a>00243 <span class="comment">// Database of command line flags.</span><span class="comment"></span>
<a name="l00244"></a>00244 <span class="comment">///////////////////////////////////////////////////////////////////////</span>
<a name="l00245"></a>00245 <span class="comment"></span>
<a name="l00246"></a><a class="code" href="classCVC3_1_1CLFlags.html">00246</a> <span class="keyword">class </span><a class="code" href="classCVC3_1_1CLFlags.html">CLFlags</a> {
<a name="l00247"></a>00247  <span class="keyword">private</span>:
<a name="l00248"></a><a class="code" href="classCVC3_1_1CLFlags.html#aa19d1678ba1ef4d6c418096cf96d692b">00248</a>   <span class="keyword">typedef</span> std::map&lt;std::string, CLFlag&gt; <a class="code" href="classCVC3_1_1CLFlags.html#aa19d1678ba1ef4d6c418096cf96d692b">CharMap</a>;
<a name="l00249"></a><a class="code" href="classCVC3_1_1CLFlags.html#aa86b7cb2d5c101faf7e7f24776a95de1">00249</a>   <a class="code" href="classCVC3_1_1CLFlags.html#aa19d1678ba1ef4d6c418096cf96d692b">CharMap</a> <a class="code" href="classCVC3_1_1CLFlags.html#aa86b7cb2d5c101faf7e7f24776a95de1">d_map</a>;
<a name="l00250"></a>00250 
<a name="l00251"></a>00251   <span class="comment">// Private methods</span>
<a name="l00252"></a>00252 
<a name="l00253"></a>00253   <span class="comment">// Retrieve an existing flag for modification.  The &#39;name&#39; must be a</span>
<a name="l00254"></a>00254   <span class="comment">// full name of an existing flag.</span>
<a name="l00255"></a><a class="code" href="classCVC3_1_1CLFlags.html#a8306bc2940da947eea4e81907d1b7d01">00255</a>   <a class="code" href="classCVC3_1_1CLFlag.html">CLFlag</a>&amp; <a class="code" href="classCVC3_1_1CLFlags.html#a8306bc2940da947eea4e81907d1b7d01">getFlag0</a>(<span class="keyword">const</span> std::string&amp; name) {
<a name="l00256"></a>00256     <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="classCVC3_1_1CLFlags.html#aa86b7cb2d5c101faf7e7f24776a95de1">d_map</a>.count(name) &gt; 0,
<a name="l00257"></a>00257     <span class="stringliteral">&quot;getFlag0(&quot;</span>+name+<span class="stringliteral">&quot;): there are no flags with this name&quot;</span>);
<a name="l00258"></a>00258     <span class="keywordflow">return</span> (*<a class="code" href="classCVC3_1_1CLFlags.html#aa86b7cb2d5c101faf7e7f24776a95de1">d_map</a>.find(name)).second;
<a name="l00259"></a>00259   }
<a name="l00260"></a>00260  <span class="keyword">public</span>:
<a name="l00261"></a>00261   <span class="comment">// Public methods</span>
<a name="l00262"></a>00262   <span class="comment">// Add a new flag.  The name must be a complete flag name.</span>
<a name="l00263"></a><a class="code" href="classCVC3_1_1CLFlags.html#a49982557d73f53b6dfb117846dde6656">00263</a>   <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1CLFlags.html#a49982557d73f53b6dfb117846dde6656">addFlag</a>(<span class="keyword">const</span> std::string&amp; name, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1CLFlag.html">CLFlag</a>&amp; f) {
<a name="l00264"></a>00264     <a class="code" href="classCVC3_1_1CLFlags.html#aa86b7cb2d5c101faf7e7f24776a95de1">d_map</a>[name] = f;
<a name="l00265"></a>00265   }
<a name="l00266"></a>00266   <span class="comment">// Count how many flags match the name prefix</span>
<a name="l00267"></a><a class="code" href="classCVC3_1_1CLFlags.html#af2ae348c56b88e203f5eade60946d217">00267</a>   <span class="keywordtype">size_t</span> <a class="code" href="classCVC3_1_1CLFlags.html#af2ae348c56b88e203f5eade60946d217">countFlags</a>(<span class="keyword">const</span> std::string&amp; name)<span class="keyword"> const </span>{
<a name="l00268"></a>00268     <span class="keywordtype">size_t</span> res(0), len(name.size());
<a name="l00269"></a>00269     <span class="keywordflow">for</span>(CharMap::const_iterator i=<a class="code" href="classCVC3_1_1CLFlags.html#aa86b7cb2d5c101faf7e7f24776a95de1">d_map</a>.begin(), iend=<a class="code" href="classCVC3_1_1CLFlags.html#aa86b7cb2d5c101faf7e7f24776a95de1">d_map</a>.end();
<a name="l00270"></a>00270   i!=iend; ++i) {
<a name="l00271"></a>00271       <span class="keywordflow">if</span>(std::strncmp(name.c_str(), (*i).first.c_str(), len) == 0) res++;
<a name="l00272"></a>00272     }
<a name="l00273"></a>00273     <span class="keywordflow">return</span> res;
<a name="l00274"></a>00274   }
<a name="l00275"></a>00275   <span class="comment">// Match the name prefix and add all the matching names to the vector</span>
<a name="l00276"></a><a class="code" href="classCVC3_1_1CLFlags.html#a6a9e49e4009b604eccd6e362cf2198a6">00276</a>   <span class="keywordtype">size_t</span> <a class="code" href="classCVC3_1_1CLFlags.html#af2ae348c56b88e203f5eade60946d217">countFlags</a>(<span class="keyword">const</span> std::string&amp; name,
<a name="l00277"></a>00277         std::vector&lt;std::string&gt;&amp; names)<span class="keyword"> const </span>{
<a name="l00278"></a>00278     <span class="keywordtype">size_t</span> res(0), len(name.size());
<a name="l00279"></a>00279     <span class="keywordflow">for</span>(CharMap::const_iterator i=<a class="code" href="classCVC3_1_1CLFlags.html#aa86b7cb2d5c101faf7e7f24776a95de1">d_map</a>.begin(), iend=<a class="code" href="classCVC3_1_1CLFlags.html#aa86b7cb2d5c101faf7e7f24776a95de1">d_map</a>.end();
<a name="l00280"></a>00280   i!=iend; ++i) {
<a name="l00281"></a>00281       <span class="keywordflow">if</span>(std::strncmp(name.c_str(), (*i).first.c_str(), len) == 0) {
<a name="l00282"></a>00282   names.push_back((*i).first);
<a name="l00283"></a>00283   res++;
<a name="l00284"></a>00284       }
<a name="l00285"></a>00285     }
<a name="l00286"></a>00286     <span class="keywordflow">return</span> res;
<a name="l00287"></a>00287   }
<a name="l00288"></a>00288   <span class="comment">// Retrieve an existing flag.  The &#39;name&#39; must be a full name of an</span>
<a name="l00289"></a>00289   <span class="comment">// existing flag.</span>
<a name="l00290"></a><a class="code" href="classCVC3_1_1CLFlags.html#ad65cf122deb406f876b7014d778d2dba">00290</a>   <span class="keyword">const</span> <a class="code" href="classCVC3_1_1CLFlag.html">CLFlag</a>&amp; <a class="code" href="classCVC3_1_1CLFlags.html#ad65cf122deb406f876b7014d778d2dba">getFlag</a>(<span class="keyword">const</span> std::string&amp; name)<span class="keyword"> const </span>{
<a name="l00291"></a>00291     <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(<a class="code" href="classCVC3_1_1CLFlags.html#aa86b7cb2d5c101faf7e7f24776a95de1">d_map</a>.count(name) &gt; 0,
<a name="l00292"></a>00292     <span class="stringliteral">&quot;getFlag(&quot;</span>+name+<span class="stringliteral">&quot;): there are no flags with this name&quot;</span>);
<a name="l00293"></a>00293     <span class="keywordflow">return</span> (*<a class="code" href="classCVC3_1_1CLFlags.html#aa86b7cb2d5c101faf7e7f24776a95de1">d_map</a>.find(name)).second;
<a name="l00294"></a>00294   }
<a name="l00295"></a>00295 
<a name="l00296"></a><a class="code" href="classCVC3_1_1CLFlags.html#af0c795218c6df26916c2f12a9d21bb45">00296</a>   <span class="keyword">const</span> <a class="code" href="classCVC3_1_1CLFlag.html">CLFlag</a>&amp; <a class="code" href="classCVC3_1_1CLFlags.html#af0c795218c6df26916c2f12a9d21bb45">operator[]</a>(<span class="keyword">const</span> std::string&amp; name)<span class="keyword"> const </span>{
<a name="l00297"></a>00297     <span class="keywordflow">return</span> <a class="code" href="classCVC3_1_1CLFlags.html#ad65cf122deb406f876b7014d778d2dba">getFlag</a>(name);
<a name="l00298"></a>00298   }
<a name="l00299"></a>00299 
<a name="l00300"></a>00300   <span class="comment">// Setting the flag to a new value, but preserving the help string.</span>
<a name="l00301"></a>00301   <span class="comment">// The &#39;name&#39; prefix must uniquely resolve to an existing flag.</span>
<a name="l00302"></a><a class="code" href="classCVC3_1_1CLFlags.html#a20dee56b9b946d73421253eb99e434e3">00302</a>   <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1CLFlags.html#a20dee56b9b946d73421253eb99e434e3">setFlag</a>(<span class="keyword">const</span> std::string&amp; name, <span class="keyword">const</span> <a class="code" href="classCVC3_1_1CLFlag.html">CLFlag</a>&amp; f) {
<a name="l00303"></a>00303     <a class="code" href="classCVC3_1_1CLFlag.html">CLFlag</a>&amp; oldF(<a class="code" href="classCVC3_1_1CLFlags.html#a8306bc2940da947eea4e81907d1b7d01">getFlag0</a>(name));
<a name="l00304"></a>00304     <a class="code" href="debug_8h.html#a40dac3bdb2166ffc852ee8b1489d2b56">DebugAssert</a>(oldF.<a class="code" href="classCVC3_1_1CLFlag.html#a5b69bc92a83154afcb2d05973a0bb6a1" title="Return the type of the flag.">getType</a>() == f.<a class="code" href="classCVC3_1_1CLFlag.html#a5b69bc92a83154afcb2d05973a0bb6a1" title="Return the type of the flag.">getType</a>(),
<a name="l00305"></a>00305     <span class="stringliteral">&quot;setFlag(&quot;</span>+name+<span class="stringliteral">&quot;): flag type doesn&#39;t match&quot;</span>);
<a name="l00306"></a>00306     oldF = f;
<a name="l00307"></a>00307   }
<a name="l00308"></a>00308 
<a name="l00309"></a>00309   <span class="comment">// Variants of setFlag for all the types</span>
<a name="l00310"></a><a class="code" href="classCVC3_1_1CLFlags.html#a8fb712b42c1d43a963aa4a6e3eae3b63">00310</a>   <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1CLFlags.html#a8fb712b42c1d43a963aa4a6e3eae3b63">setFlag</a>(<span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">bool</span> b) { <a class="code" href="classCVC3_1_1CLFlags.html#a8306bc2940da947eea4e81907d1b7d01">getFlag0</a>(name) = b; }
<a name="l00311"></a><a class="code" href="classCVC3_1_1CLFlags.html#afbc75093ba00ca2e5847465a74bcdaed">00311</a>   <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1CLFlags.html#afbc75093ba00ca2e5847465a74bcdaed">setFlag</a>(<span class="keyword">const</span> std::string&amp; name, <span class="keywordtype">int</span> i) { <a class="code" href="classCVC3_1_1CLFlags.html#a8306bc2940da947eea4e81907d1b7d01">getFlag0</a>(name) = i; }
<a name="l00312"></a><a class="code" href="classCVC3_1_1CLFlags.html#aeb42298a7b6acd67e4c7a7962dca40cc">00312</a>   <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1CLFlags.html#a20dee56b9b946d73421253eb99e434e3">setFlag</a>(<span class="keyword">const</span> std::string&amp; name, <span class="keyword">const</span> std::string&amp; s)
<a name="l00313"></a>00313     { <a class="code" href="classCVC3_1_1CLFlags.html#a8306bc2940da947eea4e81907d1b7d01">getFlag0</a>(name) = s; }
<a name="l00314"></a><a class="code" href="classCVC3_1_1CLFlags.html#ad134cd63c9eb8bc5421a406cae5e8143">00314</a>   <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1CLFlags.html#a20dee56b9b946d73421253eb99e434e3">setFlag</a>(<span class="keyword">const</span> std::string&amp; name, <span class="keyword">const</span> <span class="keywordtype">char</span>* s)
<a name="l00315"></a>00315     { <a class="code" href="classCVC3_1_1CLFlags.html#a8306bc2940da947eea4e81907d1b7d01">getFlag0</a>(name) = s; }
<a name="l00316"></a><a class="code" href="classCVC3_1_1CLFlags.html#a1531ceee509b17ce53aa55852817b080">00316</a>   <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1CLFlags.html#a20dee56b9b946d73421253eb99e434e3">setFlag</a>(<span class="keyword">const</span> std::string&amp; name, <span class="keyword">const</span> std::pair&lt;std::string,bool&gt;&amp; p)
<a name="l00317"></a>00317     { <a class="code" href="classCVC3_1_1CLFlags.html#a8306bc2940da947eea4e81907d1b7d01">getFlag0</a>(name) = p; }
<a name="l00318"></a><a class="code" href="classCVC3_1_1CLFlags.html#a4fab4fccca0cf31d3b0c916e6f461e52">00318</a>   <span class="keywordtype">void</span> <a class="code" href="classCVC3_1_1CLFlags.html#a20dee56b9b946d73421253eb99e434e3">setFlag</a>(<span class="keyword">const</span> std::string&amp; name,
<a name="l00319"></a>00319          <span class="keyword">const</span> std::vector&lt;std::pair&lt;std::string,bool&gt; &gt;&amp; sv)
<a name="l00320"></a>00320     { <a class="code" href="classCVC3_1_1CLFlags.html#a8306bc2940da947eea4e81907d1b7d01">getFlag0</a>(name) = sv; }
<a name="l00321"></a>00321 
<a name="l00322"></a>00322 }; <span class="comment">// end of class CLFlags</span>
<a name="l00323"></a>00323 
<a name="l00324"></a>00324 } <span class="comment">// end of namespace CVC3</span>
<a name="l00325"></a>00325 
<a name="l00326"></a>00326 <span class="preprocessor">#endif</span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Wed Sep 7 2011 for CVC3 by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </small></address>
</body>
</html>