<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>MPQC: keyval.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.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</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 class="tabs"> <ul> <li><a href="files.html"><span>File List</span></a></li> </ul> </div> <h1>keyval.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//</span> <a name="l00002"></a>00002 <span class="comment">// keyval.h</span> <a name="l00003"></a>00003 <span class="comment">//</span> <a name="l00004"></a>00004 <span class="comment">// Copyright (C) 1996 Limit Point Systems, Inc.</span> <a name="l00005"></a>00005 <span class="comment">//</span> <a name="l00006"></a>00006 <span class="comment">// Author: Curtis Janssen <cljanss@limitpt.com></span> <a name="l00007"></a>00007 <span class="comment">// Maintainer: LPS</span> <a name="l00008"></a>00008 <span class="comment">//</span> <a name="l00009"></a>00009 <span class="comment">// This file is part of the SC Toolkit.</span> <a name="l00010"></a>00010 <span class="comment">//</span> <a name="l00011"></a>00011 <span class="comment">// The SC Toolkit is free software; you can redistribute it and/or modify</span> <a name="l00012"></a>00012 <span class="comment">// it under the terms of the GNU Library General Public License as published by</span> <a name="l00013"></a>00013 <span class="comment">// the Free Software Foundation; either version 2, or (at your option)</span> <a name="l00014"></a>00014 <span class="comment">// any later version.</span> <a name="l00015"></a>00015 <span class="comment">//</span> <a name="l00016"></a>00016 <span class="comment">// The SC Toolkit is distributed in the hope that it will be useful,</span> <a name="l00017"></a>00017 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span> <a name="l00018"></a>00018 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span> <a name="l00019"></a>00019 <span class="comment">// GNU Library General Public License for more details.</span> <a name="l00020"></a>00020 <span class="comment">//</span> <a name="l00021"></a>00021 <span class="comment">// You should have received a copy of the GNU Library General Public License</span> <a name="l00022"></a>00022 <span class="comment">// along with the SC Toolkit; see the file COPYING.LIB. If not, write to</span> <a name="l00023"></a>00023 <span class="comment">// the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.</span> <a name="l00024"></a>00024 <span class="comment">//</span> <a name="l00025"></a>00025 <span class="comment">// The U.S. Government is granted a limited license as per AL 91-7.</span> <a name="l00026"></a>00026 <span class="comment">//</span> <a name="l00027"></a>00027 <a name="l00028"></a>00028 <span class="preprocessor">#ifndef _util_keyval_keyval_h</span> <a name="l00029"></a>00029 <span class="preprocessor"></span><span class="preprocessor">#define _util_keyval_keyval_h</span> <a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#ifdef __GNUG__</span> <a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span> <a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#endif</span> <a name="l00033"></a>00033 <span class="preprocessor"></span> <a name="l00034"></a>00034 <span class="preprocessor">#include <iostream></span> <a name="l00035"></a>00035 <span class="preprocessor">#include <string></span> <a name="l00036"></a>00036 <span class="preprocessor">#include <map></span> <a name="l00037"></a>00037 <a name="l00038"></a>00038 <span class="preprocessor">#include <string.h></span> <a name="l00039"></a>00039 <span class="preprocessor">#include <stdlib.h></span> <a name="l00040"></a>00040 <span class="preprocessor">#include <stdarg.h></span> <a name="l00041"></a>00041 <a name="l00042"></a>00042 <span class="preprocessor">#include <util/class/class.h></span> <a name="l00043"></a>00043 <span class="preprocessor">#include <util/keyval/keyvalval.h></span> <a name="l00044"></a>00044 <a name="l00045"></a>00045 <span class="keyword">namespace </span>sc { <a name="l00046"></a>00046 <a name="l00069"></a><a class="code" href="classsc_1_1KeyVal.html">00069</a> <span class="keyword">class </span><a class="code" href="classsc_1_1KeyVal.html" title="The KeyVal class is designed to simplify the process of allowing a user to specify...">KeyVal</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1RefCount.html" title="The base class for all reference counted objects.">RefCount</a> { <a name="l00070"></a>00070 <span class="comment">// these classes need to directly access the key_value member</span> <a name="l00071"></a>00071 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classsc_1_1AggregateKeyVal.html" title="This takes several KeyVal objects and makes them look like one KeyVal object.">AggregateKeyVal</a>; <a name="l00072"></a>00072 <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classsc_1_1PrefixKeyVal.html" title="PrefixKeyVal is a KeyVal that searches a different KeyVal using modified keys.">PrefixKeyVal</a>; <a name="l00073"></a>00073 <span class="keyword">public</span>: <a name="l00074"></a>00074 <span class="keyword">enum</span> {MaxKeywordLength = 256}; <a name="l00075"></a>00075 <span class="keyword">enum</span> KeyValError { OK, HasNoValue, WrongType, <a name="l00076"></a>00076 UnknownKeyword, OperationFailed }; <a name="l00077"></a>00077 <span class="keyword">private</span>: <a name="l00078"></a>00078 KeyValError errcod; <a name="l00079"></a>00079 <span class="comment">// do not allow a copy constructor or assignment</span> <a name="l00080"></a>00080 <a class="code" href="classsc_1_1KeyVal.html" title="The KeyVal class is designed to simplify the process of allowing a user to specify...">KeyVal</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1KeyVal.html" title="The KeyVal class is designed to simplify the process of allowing a user to specify...">KeyVal</a>&); <a name="l00081"></a>00081 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="classsc_1_1KeyVal.html" title="The KeyVal class is designed to simplify the process of allowing a user to specify...">KeyVal</a>&); <a name="l00082"></a>00082 <span class="keyword">protected</span>: <a name="l00083"></a>00083 <span class="keywordtype">int</span> verbose_; <a name="l00084"></a>00084 <a name="l00085"></a>00085 <a class="code" href="classsc_1_1KeyVal.html" title="The KeyVal class is designed to simplify the process of allowing a user to specify...">KeyVal</a>(); <a name="l00086"></a>00086 <a name="l00088"></a>00088 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1KeyVal.html#fdae222e3c6aad7e7454b1bb00c546d9" title="Set the current error condition.">seterror</a>(KeyValError err); <a name="l00090"></a>00090 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1KeyVal.html#fdae222e3c6aad7e7454b1bb00c546d9" title="Set the current error condition.">seterror</a>(KeyValValue::KeyValValueError err); <a name="l00091"></a>00091 <a name="l00093"></a>00093 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#f69e8436bf1172569b7bc8dabbb8c857" title="Ultimately called by exists.">key_exists</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*) = 0; <a name="l00095"></a>00095 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#f11007c878be0672e26b35505522a913" title="Ultimately called by count.">key_count</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* =0); <a name="l00097"></a>00097 <span class="keyword">virtual</span> <a class="code" href="classsc_1_1Ref.html" title="A template class that maintains references counts.">Ref<KeyValValue></a> <a class="code" href="classsc_1_1KeyVal.html#ca5526cda0765f32141f09c1c6c9b780" title="Ultimately called by value.">key_value</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*, <a name="l00098"></a>00098 <span class="keyword">const</span> KeyValValue& def) = 0; <a name="l00100"></a>00100 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#1991140c16245ed308f4e77e26539173" title="Ultimately called by booleanvalue.">key_booleanvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*,<span class="keyword">const</span> KeyValValue& def); <a name="l00102"></a>00102 <span class="keyword">virtual</span> <span class="keywordtype">double</span> <a class="code" href="classsc_1_1KeyVal.html#e0b6637323d5b517eb2b0b8d8fd76ecb" title="Ultimately called by doublevalue.">key_doublevalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keyword">const</span> KeyValValue& def); <a name="l00104"></a>00104 <span class="keyword">virtual</span> <span class="keywordtype">float</span> <a class="code" href="classsc_1_1KeyVal.html#0b496cef54772ff81f51adcf2ea232f5" title="Ultimately called by floatvalue.">key_floatvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keyword">const</span> KeyValValue& def); <a name="l00106"></a>00106 <span class="keyword">virtual</span> <span class="keywordtype">char</span> <a class="code" href="classsc_1_1KeyVal.html#1b264b4453a7125bf013b9af8c61f328" title="Ultimately called by charvalue.">key_charvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keyword">const</span> KeyValValue& def); <a name="l00108"></a>00108 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#5d6567a0d36d84b99d60ffcf10363e77" title="Ultimately called by intvalue.">key_intvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keyword">const</span> KeyValValue& def); <a name="l00110"></a>00110 <span class="keyword">virtual</span> <span class="keywordtype">size_t</span> <a class="code" href="classsc_1_1KeyVal.html#4c2585fde3130301985f5b0d5288bb72" title="Ultimately called by sizevalue.">key_sizevalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keyword">const</span> KeyValValue& def); <a name="l00112"></a>00112 <span class="keyword">virtual</span> <span class="keywordtype">char</span>* <a class="code" href="classsc_1_1KeyVal.html#d4ad667c33dd895a94cd5259c15bac63" title="Ultimately called by pcharvalue.">key_pcharvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keyword">const</span> KeyValValue& def); <a name="l00114"></a>00114 <span class="keyword">virtual</span> std::string <a class="code" href="classsc_1_1KeyVal.html#b3ac58d85a56b69e848800530f40a2a2" title="Ultimately called by stringvalue.">key_stringvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key, <a name="l00115"></a>00115 <span class="keyword">const</span> KeyValValue& def); <a name="l00117"></a>00117 <span class="keyword">virtual</span> <a class="code" href="classsc_1_1Ref.html">Ref<DescribedClass></a> <a class="code" href="classsc_1_1KeyVal.html#00fcd993beb2ab4dacf1fad27c614436" title="Ultimately called by describedclassvalue.">key_describedclassvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key, <a name="l00118"></a>00118 <span class="keyword">const</span> KeyValValue& def); <a name="l00119"></a>00119 <a name="l00120"></a>00120 <span class="keyword">public</span>: <a name="l00121"></a>00121 <span class="keyword">virtual</span> ~<a class="code" href="classsc_1_1KeyVal.html" title="The KeyVal class is designed to simplify the process of allowing a user to specify...">KeyVal</a>(); <a name="l00122"></a>00122 <a name="l00123"></a>00123 <span class="comment">// For nonindexed things. If a subclass defines one of these,</span> <a name="l00124"></a>00124 <span class="comment">// then the overloaded functions will be hidden. The key_... functions</span> <a name="l00125"></a>00125 <span class="comment">// should be overridden instead.</span> <a name="l00126"></a>00126 <a name="l00129"></a>00129 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#c602e085a0dca6a6664e828a8d5451e4" title="This takes as its only argument a keyword.">exists</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*); <a name="l00134"></a>00134 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#8d1863c3792363f8d066433014c864ef" title="If the value of a keyword is an array, then return its length.">count</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* =0); <a name="l00136"></a>00136 <a class="code" href="classsc_1_1Ref.html" title="A template class that maintains references counts.">Ref<KeyValValue></a> <a class="code" href="classsc_1_1KeyVal.html#23ac1915d1b584fb6fb0465485b90abc" title="Return the value associated with the keyword.">value</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* = 0, <a name="l00137"></a>00137 <span class="keyword">const</span> KeyValValue& def=KeyValValue()); <a name="l00139"></a>00139 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#e4f3cbc3a3cd27d4709aafcd8ae7bc0d" title="Returns the boolean value (0 = false, 1 = true) of key.">booleanvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key = 0, <a name="l00140"></a>00140 <span class="keyword">const</span> KeyValValue& def=KeyValValueboolean()); <a name="l00142"></a>00142 <span class="keywordtype">double</span> <a class="code" href="classsc_1_1KeyVal.html#f3636a9ab8bf041efe790791a54bb254" title="Returns the double value of key.">doublevalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key = 0, <a name="l00143"></a>00143 <span class="keyword">const</span> KeyValValue& def=KeyValValuedouble()); <a name="l00145"></a>00145 <span class="keywordtype">float</span> <a class="code" href="classsc_1_1KeyVal.html#69cb553778778fbde683117b062ff0a9" title="Returns the float value of key.">floatvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key = 0, <a name="l00146"></a>00146 <span class="keyword">const</span> KeyValValue& def=KeyValValuefloat()); <a name="l00148"></a>00148 <span class="keywordtype">char</span> <a class="code" href="classsc_1_1KeyVal.html#04dfcf5e3e5cd03e063d522e04b2e5e7" title="Returns the char value of key.">charvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key = 0, <a name="l00149"></a>00149 <span class="keyword">const</span> KeyValValue& def=KeyValValuechar()); <a name="l00151"></a>00151 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#0b42dde8fd148dd29c79b290feffeae1" title="Returns the int value of key.">intvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key = 0, <a name="l00152"></a>00152 <span class="keyword">const</span> KeyValValue& def=KeyValValueint()); <a name="l00154"></a>00154 <span class="keywordtype">size_t</span> <a class="code" href="classsc_1_1KeyVal.html#fcf6de8585827c64eecd8db20066d36c" title="Returns the size_t value of key.">sizevalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key = 0, <a name="l00155"></a>00155 <span class="keyword">const</span> KeyValValue& def=KeyValValuesize()); <a name="l00158"></a>00158 <span class="keywordtype">char</span>* <a class="code" href="classsc_1_1KeyVal.html#0325c6d2339297855774f2c1e94a763d" title="Returns a copy of the string representation of the key&#39;s value.">pcharvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key = 0, <a name="l00159"></a>00159 <span class="keyword">const</span> KeyValValue& def=KeyValValuepchar()); <a name="l00161"></a>00161 std::string <a class="code" href="classsc_1_1KeyVal.html#338379539d44edbce4ee7312bf691d03" title="Returns a string representation of the key&#39;s value.">stringvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key = 0, <a name="l00162"></a>00162 <span class="keyword">const</span> KeyValValue& def=KeyValValuestring()); <a name="l00164"></a>00164 <a class="code" href="classsc_1_1Ref.html">Ref<DescribedClass></a> <a class="code" href="classsc_1_1KeyVal.html#1a53bd0f1706a9a54fd9d898a610ab51" title="Returns a reference to an object of type DescribedClass.">describedclassvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key = 0, <a name="l00165"></a>00165 <span class="keyword">const</span> KeyValValue& def=KeyValValueRefDescribedClass()); <a name="l00166"></a>00166 <a name="l00175"></a>00175 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#c602e085a0dca6a6664e828a8d5451e4" title="This takes as its only argument a keyword.">exists</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> i); <a name="l00176"></a>00176 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#8d1863c3792363f8d066433014c864ef" title="If the value of a keyword is an array, then return its length.">count</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> i); <a name="l00177"></a>00177 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#e4f3cbc3a3cd27d4709aafcd8ae7bc0d" title="Returns the boolean value (0 = false, 1 = true) of key.">booleanvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> i, <a name="l00178"></a>00178 <span class="keyword">const</span> KeyValValue& def=KeyValValueboolean()); <a name="l00179"></a>00179 <span class="keywordtype">double</span> <a class="code" href="classsc_1_1KeyVal.html#f3636a9ab8bf041efe790791a54bb254" title="Returns the double value of key.">doublevalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> i, <a name="l00180"></a>00180 <span class="keyword">const</span> KeyValValue& def=KeyValValuedouble()); <a name="l00181"></a>00181 <span class="keywordtype">float</span> <a class="code" href="classsc_1_1KeyVal.html#69cb553778778fbde683117b062ff0a9" title="Returns the float value of key.">floatvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> i, <a name="l00182"></a>00182 <span class="keyword">const</span> KeyValValue& def=KeyValValuefloat()); <a name="l00183"></a>00183 <span class="keywordtype">char</span> <a class="code" href="classsc_1_1KeyVal.html#04dfcf5e3e5cd03e063d522e04b2e5e7" title="Returns the char value of key.">charvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> i, <a name="l00184"></a>00184 <span class="keyword">const</span> KeyValValue& def=KeyValValuechar()); <a name="l00185"></a>00185 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#0b42dde8fd148dd29c79b290feffeae1" title="Returns the int value of key.">intvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> i, <a name="l00186"></a>00186 <span class="keyword">const</span> KeyValValue& def=KeyValValueint()); <a name="l00187"></a>00187 <span class="keywordtype">size_t</span> <a class="code" href="classsc_1_1KeyVal.html#fcf6de8585827c64eecd8db20066d36c" title="Returns the size_t value of key.">sizevalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> i, <a name="l00188"></a>00188 <span class="keyword">const</span> KeyValValue& def=KeyValValuesize()); <a name="l00189"></a>00189 <span class="keywordtype">char</span>* <a class="code" href="classsc_1_1KeyVal.html#0325c6d2339297855774f2c1e94a763d" title="Returns a copy of the string representation of the key&#39;s value.">pcharvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> i, <a name="l00190"></a>00190 <span class="keyword">const</span> KeyValValue& def=KeyValValuepchar()); <a name="l00191"></a>00191 std::string <a class="code" href="classsc_1_1KeyVal.html#338379539d44edbce4ee7312bf691d03" title="Returns a string representation of the key&#39;s value.">stringvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> i, <a name="l00192"></a>00192 <span class="keyword">const</span> KeyValValue& def=KeyValValuestring()); <a name="l00193"></a>00193 <a class="code" href="classsc_1_1Ref.html">Ref<DescribedClass></a> <a class="code" href="classsc_1_1KeyVal.html#1a53bd0f1706a9a54fd9d898a610ab51" title="Returns a reference to an object of type DescribedClass.">describedclassvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span>, <a name="l00194"></a>00194 <span class="keyword">const</span> KeyValValue& def=KeyValValueRefDescribedClass()); <a name="l00195"></a>00195 <a name="l00196"></a>00196 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#c602e085a0dca6a6664e828a8d5451e4" title="This takes as its only argument a keyword.">exists</a>(<span class="keywordtype">int</span> i); <a name="l00197"></a>00197 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#8d1863c3792363f8d066433014c864ef" title="If the value of a keyword is an array, then return its length.">count</a>(<span class="keywordtype">int</span> i); <a name="l00198"></a>00198 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#e4f3cbc3a3cd27d4709aafcd8ae7bc0d" title="Returns the boolean value (0 = false, 1 = true) of key.">booleanvalue</a>(<span class="keywordtype">int</span> i, <a name="l00199"></a>00199 <span class="keyword">const</span> KeyValValue& def=KeyValValueboolean()); <a name="l00200"></a>00200 <span class="keywordtype">double</span> <a class="code" href="classsc_1_1KeyVal.html#f3636a9ab8bf041efe790791a54bb254" title="Returns the double value of key.">doublevalue</a>(<span class="keywordtype">int</span> i, <a name="l00201"></a>00201 <span class="keyword">const</span> KeyValValue& def=KeyValValuedouble()); <a name="l00202"></a>00202 <span class="keywordtype">float</span> <a class="code" href="classsc_1_1KeyVal.html#69cb553778778fbde683117b062ff0a9" title="Returns the float value of key.">floatvalue</a>(<span class="keywordtype">int</span> i, <a name="l00203"></a>00203 <span class="keyword">const</span> KeyValValue& def=KeyValValuefloat()); <a name="l00204"></a>00204 <span class="keywordtype">char</span> <a class="code" href="classsc_1_1KeyVal.html#04dfcf5e3e5cd03e063d522e04b2e5e7" title="Returns the char value of key.">charvalue</a>(<span class="keywordtype">int</span> i, <a name="l00205"></a>00205 <span class="keyword">const</span> KeyValValue& def=KeyValValuechar()); <a name="l00206"></a>00206 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#0b42dde8fd148dd29c79b290feffeae1" title="Returns the int value of key.">intvalue</a>(<span class="keywordtype">int</span> i, <a name="l00207"></a>00207 <span class="keyword">const</span> KeyValValue& def=KeyValValueint()); <a name="l00208"></a>00208 <span class="keywordtype">size_t</span> <a class="code" href="classsc_1_1KeyVal.html#fcf6de8585827c64eecd8db20066d36c" title="Returns the size_t value of key.">sizevalue</a>(<span class="keywordtype">int</span> i, <a name="l00209"></a>00209 <span class="keyword">const</span> KeyValValue& def=KeyValValuesize()); <a name="l00210"></a>00210 <span class="keywordtype">char</span>* <a class="code" href="classsc_1_1KeyVal.html#0325c6d2339297855774f2c1e94a763d" title="Returns a copy of the string representation of the key&#39;s value.">pcharvalue</a>(<span class="keywordtype">int</span> i, <a name="l00211"></a>00211 <span class="keyword">const</span> KeyValValue& def=KeyValValuepchar()); <a name="l00212"></a>00212 std::string <a class="code" href="classsc_1_1KeyVal.html#338379539d44edbce4ee7312bf691d03" title="Returns a string representation of the key&#39;s value.">stringvalue</a>(<span class="keywordtype">int</span> i, <a name="l00213"></a>00213 <span class="keyword">const</span> KeyValValue& def=KeyValValuestring()); <a name="l00214"></a>00214 <a class="code" href="classsc_1_1Ref.html">Ref<DescribedClass></a> <a class="code" href="classsc_1_1KeyVal.html#1a53bd0f1706a9a54fd9d898a610ab51" title="Returns a reference to an object of type DescribedClass.">describedclassvalue</a>(<span class="keywordtype">int</span> i, <a name="l00215"></a>00215 <span class="keyword">const</span> KeyValValue& def=KeyValValueRefDescribedClass()); <a name="l00217"></a>00217 <a name="l00225"></a>00225 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#c602e085a0dca6a6664e828a8d5451e4" title="This takes as its only argument a keyword.">exists</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>); <a name="l00226"></a>00226 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#8d1863c3792363f8d066433014c864ef" title="If the value of a keyword is an array, then return its length.">count</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>); <a name="l00227"></a>00227 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#e4f3cbc3a3cd27d4709aafcd8ae7bc0d" title="Returns the boolean value (0 = false, 1 = true) of key.">booleanvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>, <a name="l00228"></a>00228 <span class="keyword">const</span> KeyValValue& def=KeyValValueboolean()); <a name="l00229"></a>00229 <span class="keywordtype">double</span> <a class="code" href="classsc_1_1KeyVal.html#f3636a9ab8bf041efe790791a54bb254" title="Returns the double value of key.">doublevalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>, <a name="l00230"></a>00230 <span class="keyword">const</span> KeyValValue& def=KeyValValuedouble()); <a name="l00231"></a>00231 <span class="keywordtype">float</span> <a class="code" href="classsc_1_1KeyVal.html#69cb553778778fbde683117b062ff0a9" title="Returns the float value of key.">floatvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>, <a name="l00232"></a>00232 <span class="keyword">const</span> KeyValValue& def=KeyValValuefloat()); <a name="l00233"></a>00233 <span class="keywordtype">char</span> <a class="code" href="classsc_1_1KeyVal.html#04dfcf5e3e5cd03e063d522e04b2e5e7" title="Returns the char value of key.">charvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>, <a name="l00234"></a>00234 <span class="keyword">const</span> KeyValValue& def=KeyValValuechar()); <a name="l00235"></a>00235 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#0b42dde8fd148dd29c79b290feffeae1" title="Returns the int value of key.">intvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>, <a name="l00236"></a>00236 <span class="keyword">const</span> KeyValValue& def=KeyValValueint()); <a name="l00237"></a>00237 <span class="keywordtype">size_t</span> <a class="code" href="classsc_1_1KeyVal.html#fcf6de8585827c64eecd8db20066d36c" title="Returns the size_t value of key.">sizevalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>, <a name="l00238"></a>00238 <span class="keyword">const</span> KeyValValue& def=KeyValValuesize()); <a name="l00239"></a>00239 <span class="keywordtype">char</span>* <a class="code" href="classsc_1_1KeyVal.html#0325c6d2339297855774f2c1e94a763d" title="Returns a copy of the string representation of the key&#39;s value.">pcharvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>, <a name="l00240"></a>00240 <span class="keyword">const</span> KeyValValue& def=KeyValValuepchar()); <a name="l00241"></a>00241 std::string <a class="code" href="classsc_1_1KeyVal.html#338379539d44edbce4ee7312bf691d03" title="Returns a string representation of the key&#39;s value.">stringvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>, <a name="l00242"></a>00242 <span class="keyword">const</span> KeyValValue& def=KeyValValuestring()); <a name="l00243"></a>00243 <a class="code" href="classsc_1_1Ref.html">Ref<DescribedClass></a> <a class="code" href="classsc_1_1KeyVal.html#1a53bd0f1706a9a54fd9d898a610ab51" title="Returns a reference to an object of type DescribedClass.">describedclassvalue</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>, <a name="l00244"></a>00244 <span class="keyword">const</span> KeyValValue& def=KeyValValueRefDescribedClass()); <a name="l00245"></a>00245 <a name="l00246"></a>00246 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#c602e085a0dca6a6664e828a8d5451e4" title="This takes as its only argument a keyword.">exists</a>(<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j); <a name="l00247"></a>00247 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#8d1863c3792363f8d066433014c864ef" title="If the value of a keyword is an array, then return its length.">count</a>(<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j); <a name="l00248"></a>00248 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#e4f3cbc3a3cd27d4709aafcd8ae7bc0d" title="Returns the boolean value (0 = false, 1 = true) of key.">booleanvalue</a>(<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j, <a name="l00249"></a>00249 <span class="keyword">const</span> KeyValValue& def=KeyValValueboolean()); <a name="l00250"></a>00250 <span class="keywordtype">double</span> <a class="code" href="classsc_1_1KeyVal.html#f3636a9ab8bf041efe790791a54bb254" title="Returns the double value of key.">doublevalue</a>(<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j, <a name="l00251"></a>00251 <span class="keyword">const</span> KeyValValue& def=KeyValValuedouble()); <a name="l00252"></a>00252 <span class="keywordtype">float</span> <a class="code" href="classsc_1_1KeyVal.html#69cb553778778fbde683117b062ff0a9" title="Returns the float value of key.">floatvalue</a>(<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j, <a name="l00253"></a>00253 <span class="keyword">const</span> KeyValValue& def=KeyValValuefloat()); <a name="l00254"></a>00254 <span class="keywordtype">char</span> <a class="code" href="classsc_1_1KeyVal.html#04dfcf5e3e5cd03e063d522e04b2e5e7" title="Returns the char value of key.">charvalue</a>(<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j, <a name="l00255"></a>00255 <span class="keyword">const</span> KeyValValue& def=KeyValValuechar()); <a name="l00256"></a>00256 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#0b42dde8fd148dd29c79b290feffeae1" title="Returns the int value of key.">intvalue</a>(<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j, <a name="l00257"></a>00257 <span class="keyword">const</span> KeyValValue& def=KeyValValueint()); <a name="l00258"></a>00258 <span class="keywordtype">size_t</span> <a class="code" href="classsc_1_1KeyVal.html#fcf6de8585827c64eecd8db20066d36c" title="Returns the size_t value of key.">sizevalue</a>(<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j, <a name="l00259"></a>00259 <span class="keyword">const</span> KeyValValue& def=KeyValValuesize()); <a name="l00260"></a>00260 <span class="keywordtype">char</span>* <a class="code" href="classsc_1_1KeyVal.html#0325c6d2339297855774f2c1e94a763d" title="Returns a copy of the string representation of the key&#39;s value.">pcharvalue</a>(<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j, <a name="l00261"></a>00261 <span class="keyword">const</span> KeyValValue& def=KeyValValuepchar()); <a name="l00262"></a>00262 std::string <a class="code" href="classsc_1_1KeyVal.html#338379539d44edbce4ee7312bf691d03" title="Returns a string representation of the key&#39;s value.">stringvalue</a>(<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j, <a name="l00263"></a>00263 <span class="keyword">const</span> KeyValValue& def=KeyValValuestring()); <a name="l00264"></a>00264 <a class="code" href="classsc_1_1Ref.html">Ref<DescribedClass></a> <a class="code" href="classsc_1_1KeyVal.html#1a53bd0f1706a9a54fd9d898a610ab51" title="Returns a reference to an object of type DescribedClass.">describedclassvalue</a>(<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j, <a name="l00265"></a>00265 <span class="keyword">const</span> KeyValValue& def=KeyValValueRefDescribedClass()); <a name="l00267"></a>00267 <a name="l00274"></a>00274 <span class="keywordtype">int</span> Va_exists(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> nindex,...); <a name="l00275"></a>00275 <span class="keywordtype">int</span> Va_count(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> nindex,...); <a name="l00276"></a>00276 <span class="keywordtype">int</span> Va_booleanvalue(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> nindex,...); <a name="l00277"></a>00277 <span class="keywordtype">double</span> Va_doublevalue(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> nindex,...); <a name="l00278"></a>00278 <span class="keywordtype">float</span> Va_floatvalue(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> nindex,...); <a name="l00279"></a>00279 <span class="keywordtype">char</span> Va_charvalue(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> nindex,...); <a name="l00280"></a>00280 <span class="keywordtype">int</span> Va_intvalue(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> nindex,...); <a name="l00281"></a>00281 <span class="keywordtype">size_t</span> Va_sizevalue(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> nindex,...); <a name="l00282"></a>00282 <span class="keywordtype">char</span>* Va_pcharvalue(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> nindex,...); <a name="l00283"></a>00283 std::string Va_stringvalue(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> nindex,...); <a name="l00284"></a>00284 <a class="code" href="classsc_1_1Ref.html">Ref<DescribedClass></a> Va_describedclassvalue(<span class="keyword">const</span> <span class="keywordtype">char</span>* key,<span class="keywordtype">int</span> nindex,...); <a name="l00286"></a>00286 <a name="l00288"></a>00288 KeyValError <a class="code" href="classsc_1_1KeyVal.html#8384938eb338ae0700d64aefac98b57e" title="Return the current error condition.">error</a>(); <a name="l00290"></a>00290 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classsc_1_1KeyVal.html#ff711fc212ca75782174570704a7ef23" title="Return a textual representation of the current error.">errormsg</a>(KeyValError err); <a name="l00292"></a>00292 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classsc_1_1KeyVal.html#ff711fc212ca75782174570704a7ef23" title="Return a textual representation of the current error.">errormsg</a>(); <a name="l00294"></a>00294 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1KeyVal.html#93bab8c95c32d62806d506eefb2875a8" title="Write a message to fp describing the error.">errortrace</a>(std::ostream&fp=<a class="code" href="classsc_1_1ExEnv.html#cd7bd179f669d37fc7f142f336f70d79" title="Return an ostream for error messages that writes from node 0.">ExEnv::err0</a>()); <a name="l00296"></a>00296 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1KeyVal.html#6b9aa300a532cdf2023b408c10dbdb68" title="Write a message to fp describing the error.">dump</a>(std::ostream&fp=<a class="code" href="classsc_1_1ExEnv.html#cd7bd179f669d37fc7f142f336f70d79" title="Return an ostream for error messages that writes from node 0.">ExEnv::err0</a>()); <a name="l00297"></a>00297 <a name="l00299"></a>00299 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1KeyVal.html#8eb8fbf83c686fc32d31e0d39b1e9f5b" title="Print keywords that were never looked at, if possible.">print_unseen</a>(std::ostream&fp=<a class="code" href="classsc_1_1ExEnv.html#360216acd1f990e999c0ed46cb350b1f" title="Return an ostream that writes from node 0.">ExEnv::out0</a>()); <a name="l00303"></a>00303 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#122aa2819d8d4448fb20bc5851da157e" title="Return 1 if there were unseen keywords, 0 if there are none, or -1 this keyval doesn&#39;t...">have_unseen</a>(); <a name="l00304"></a>00304 <a name="l00306"></a><a class="code" href="classsc_1_1KeyVal.html#bd9eb50defddf32cd2f2bbb76e9300c7">00306</a> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1KeyVal.html#bd9eb50defddf32cd2f2bbb76e9300c7" title="Control printing of assignments.">verbose</a>(<span class="keywordtype">int</span> v) { verbose_ = v; } <a name="l00308"></a><a class="code" href="classsc_1_1KeyVal.html#5a52db028d7c9997eef2fc8faf8f4fdd">00308</a> <span class="keywordtype">int</span> <a class="code" href="classsc_1_1KeyVal.html#5a52db028d7c9997eef2fc8faf8f4fdd" title="Returns nonzero if assignments are printed.">verbose</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> verbose_; } <a name="l00309"></a>00309 }; <a name="l00310"></a>00310 <a name="l00311"></a>00311 <a name="l00312"></a>00312 <a name="l00315"></a><a class="code" href="classsc_1_1AssignedKeyVal.html">00315</a> <span class="keyword">class </span><a class="code" href="classsc_1_1AssignedKeyVal.html" title="This class allows keyval associations to be set up by the program, rather than determined...">AssignedKeyVal</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1KeyVal.html" title="The KeyVal class is designed to simplify the process of allowing a user to specify...">KeyVal</a> { <a name="l00316"></a>00316 <span class="keyword">private</span>: <a name="l00317"></a>00317 std::map<std::string,Ref<KeyValValue> > _map; <a name="l00318"></a>00318 <span class="comment">// do not allow a copy constructor or assignment</span> <a name="l00319"></a>00319 <a class="code" href="classsc_1_1AssignedKeyVal.html" title="This class allows keyval associations to be set up by the program, rather than determined...">AssignedKeyVal</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1AssignedKeyVal.html" title="This class allows keyval associations to be set up by the program, rather than determined...">AssignedKeyVal</a>&); <a name="l00320"></a>00320 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="classsc_1_1AssignedKeyVal.html" title="This class allows keyval associations to be set up by the program, rather than determined...">AssignedKeyVal</a>&); <a name="l00321"></a>00321 <span class="keyword">protected</span>: <a name="l00322"></a>00322 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1AssignedKeyVal.html#983a17b587b20f28088ac7108dc2d25e" title="Ultimately called by exists.">key_exists</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*); <a name="l00323"></a>00323 <a class="code" href="classsc_1_1Ref.html" title="A template class that maintains references counts.">Ref<KeyValValue></a> <a class="code" href="classsc_1_1AssignedKeyVal.html#f35b3ff639e269ecc188091f495e9a73" title="Ultimately called by value.">key_value</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*, <a name="l00324"></a>00324 <span class="keyword">const</span> KeyValValue& def); <a name="l00325"></a>00325 <span class="keyword">public</span>: <a name="l00326"></a>00326 <a class="code" href="classsc_1_1AssignedKeyVal.html" title="This class allows keyval associations to be set up by the program, rather than determined...">AssignedKeyVal</a>(); <a name="l00327"></a>00327 ~<a class="code" href="classsc_1_1AssignedKeyVal.html" title="This class allows keyval associations to be set up by the program, rather than determined...">AssignedKeyVal</a>(); <a name="l00328"></a>00328 <a name="l00332"></a>00332 <span class="keywordtype">void</span> assign(<span class="keyword">const</span> <span class="keywordtype">char</span>* key, <span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html" title="A template class that maintains references counts.">Ref<KeyValValue></a>& val); <a name="l00333"></a>00333 <span class="keywordtype">void</span> assign(<span class="keyword">const</span> <span class="keywordtype">char</span>* key, <span class="keywordtype">double</span> val); <a name="l00334"></a>00334 <span class="keywordtype">void</span> assignboolean(<span class="keyword">const</span> <span class="keywordtype">char</span>* key, <span class="keywordtype">int</span> val); <a name="l00335"></a>00335 <span class="keywordtype">void</span> assign(<span class="keyword">const</span> <span class="keywordtype">char</span>* key, <span class="keywordtype">float</span> val); <a name="l00336"></a>00336 <span class="keywordtype">void</span> assign(<span class="keyword">const</span> <span class="keywordtype">char</span>* key, <span class="keywordtype">char</span> val); <a name="l00337"></a>00337 <span class="keywordtype">void</span> assign(<span class="keyword">const</span> <span class="keywordtype">char</span>* key, <span class="keywordtype">int</span> val); <a name="l00338"></a>00338 <span class="keywordtype">void</span> assign(<span class="keyword">const</span> <span class="keywordtype">char</span>* key, <span class="keyword">const</span> <span class="keywordtype">char</span>* val); <a name="l00339"></a>00339 <span class="keywordtype">void</span> assign(<span class="keyword">const</span> <span class="keywordtype">char</span>* key, <span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<DescribedClass></a>& val); <a name="l00341"></a>00341 <a name="l00343"></a>00343 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1AssignedKeyVal.html#76617d7aa00f4b4ed8f5e184b4f9bafe" title="Erase all of the stored assignments.">clear</a>(); <a name="l00344"></a>00344 }; <a name="l00345"></a>00345 <a name="l00346"></a>00346 <a name="l00347"></a>00347 <a name="l00352"></a><a class="code" href="classsc_1_1StringKeyVal.html">00352</a> <span class="keyword">class </span><a class="code" href="classsc_1_1StringKeyVal.html" title="StringKeyVal is a base class for KeyVal implementations that store all values in...">StringKeyVal</a>: <span class="keyword">public</span> <a class="code" href="classsc_1_1KeyVal.html" title="The KeyVal class is designed to simplify the process of allowing a user to specify...">KeyVal</a> { <a name="l00353"></a>00353 <span class="keyword">private</span>: <a name="l00354"></a>00354 <span class="comment">// once a described class is found it is kept here so</span> <a name="l00355"></a>00355 <span class="comment">// multiple references to it return the same instance</span> <a name="l00356"></a>00356 std::map<std::string,Ref<KeyValValue> > _map; <a name="l00357"></a>00357 <span class="comment">// do not allow a copy constructor or assignment</span> <a name="l00358"></a>00358 <a class="code" href="classsc_1_1StringKeyVal.html" title="StringKeyVal is a base class for KeyVal implementations that store all values in...">StringKeyVal</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1StringKeyVal.html" title="StringKeyVal is a base class for KeyVal implementations that store all values in...">StringKeyVal</a>&); <a name="l00359"></a>00359 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="classsc_1_1StringKeyVal.html" title="StringKeyVal is a base class for KeyVal implementations that store all values in...">StringKeyVal</a>&); <a name="l00360"></a>00360 <span class="keyword">protected</span>: <a name="l00361"></a>00361 <a class="code" href="classsc_1_1StringKeyVal.html" title="StringKeyVal is a base class for KeyVal implementations that store all values in...">StringKeyVal</a>(); <a name="l00362"></a>00362 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1StringKeyVal.html#c46b628bf4f8c893ee98735488c6820c" title="Ultimately called by exists.">key_exists</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*); <a name="l00363"></a>00363 <a class="code" href="classsc_1_1Ref.html" title="A template class that maintains references counts.">Ref<KeyValValue></a> <a class="code" href="classsc_1_1StringKeyVal.html#d45e463541cdc75c37213a7888d2da88" title="Ultimately called by value.">key_value</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*, <a name="l00364"></a>00364 <span class="keyword">const</span> KeyValValue& def); <a name="l00365"></a>00365 <span class="keyword">public</span>: <a name="l00366"></a>00366 <span class="keyword">virtual</span> ~<a class="code" href="classsc_1_1StringKeyVal.html" title="StringKeyVal is a base class for KeyVal implementations that store all values in...">StringKeyVal</a>(); <a name="l00368"></a>00368 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classsc_1_1StringKeyVal.html#d25f77186f19d64a8afae8d6e4fe2cf2" title="Returns the string representation of the value assigned to key.">stringrep</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *key) = 0; <a name="l00371"></a>00371 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classsc_1_1StringKeyVal.html#fb9a4aed8a075fb6107401b9911d763a" title="Returns the name of the exact class of the object at the keyword.">classname</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*); <a name="l00375"></a>00375 <span class="keyword">virtual</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classsc_1_1StringKeyVal.html#36d1d26e0370f92907745990834e447b" title="Returns a string which is the actual keyword if some sort of variable substitution...">truekeyword</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*); <a name="l00376"></a>00376 <a name="l00381"></a>00381 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1StringKeyVal.html#49bf120d3bac62ea257dd680c038e5bb" title="Write a message to fp describing the error.">errortrace</a>(std::ostream&fp=<a class="code" href="classsc_1_1ExEnv.html#cd7bd179f669d37fc7f142f336f70d79" title="Return an ostream for error messages that writes from node 0.">ExEnv::err0</a>()); <a name="l00382"></a>00382 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1StringKeyVal.html#36635c3aaf294a5b16ad08e56d14f586" title="Write a message to fp describing the error.">dump</a>(std::ostream&fp=<a class="code" href="classsc_1_1ExEnv.html#cd7bd179f669d37fc7f142f336f70d79" title="Return an ostream for error messages that writes from node 0.">ExEnv::err0</a>()); <a name="l00384"></a>00384 }; <a name="l00385"></a>00385 <a name="l00390"></a><a class="code" href="classsc_1_1AggregateKeyVal.html">00390</a> <span class="keyword">class </span><a class="code" href="classsc_1_1AggregateKeyVal.html" title="This takes several KeyVal objects and makes them look like one KeyVal object.">AggregateKeyVal</a> : <span class="keyword">public</span> <a class="code" href="classsc_1_1KeyVal.html" title="The KeyVal class is designed to simplify the process of allowing a user to specify...">KeyVal</a> { <a name="l00391"></a>00391 <span class="keyword">private</span>: <a name="l00392"></a>00392 <span class="keyword">enum</span> { MaxKeyVal = 4 }; <a name="l00393"></a>00393 <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a> kv[MaxKeyVal]; <a name="l00394"></a>00394 <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a> getkeyval(<span class="keyword">const</span> <span class="keywordtype">char</span>*key); <a name="l00395"></a>00395 <span class="comment">// do not allow a copy constructor or assignment</span> <a name="l00396"></a>00396 <a class="code" href="classsc_1_1AggregateKeyVal.html" title="This takes several KeyVal objects and makes them look like one KeyVal object.">AggregateKeyVal</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1AggregateKeyVal.html" title="This takes several KeyVal objects and makes them look like one KeyVal object.">AggregateKeyVal</a>&); <a name="l00397"></a>00397 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="classsc_1_1AggregateKeyVal.html" title="This takes several KeyVal objects and makes them look like one KeyVal object.">AggregateKeyVal</a>&); <a name="l00398"></a>00398 <span class="keyword">protected</span>: <a name="l00399"></a>00399 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1AggregateKeyVal.html#5860d4a82b7e0b5eb2897e61efc47139" title="Ultimately called by exists.">key_exists</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*); <a name="l00400"></a>00400 <a class="code" href="classsc_1_1Ref.html" title="A template class that maintains references counts.">Ref<KeyValValue></a> <a class="code" href="classsc_1_1AggregateKeyVal.html#f70f54e0048a1baf146fefa165d28cbf" title="Ultimately called by value.">key_value</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*, <a name="l00401"></a>00401 <span class="keyword">const</span> KeyValValue& def); <a name="l00402"></a>00402 <span class="keyword">public</span>: <a name="l00410"></a>00410 <a class="code" href="classsc_1_1AggregateKeyVal.html" title="This takes several KeyVal objects and makes them look like one KeyVal object.">AggregateKeyVal</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>& keyval1); <a name="l00411"></a>00411 <a class="code" href="classsc_1_1AggregateKeyVal.html" title="This takes several KeyVal objects and makes them look like one KeyVal object.">AggregateKeyVal</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>& keyval1,<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>& keyval2); <a name="l00412"></a>00412 <a class="code" href="classsc_1_1AggregateKeyVal.html" title="This takes several KeyVal objects and makes them look like one KeyVal object.">AggregateKeyVal</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>& keyval1,<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>& keyval2, <a name="l00413"></a>00413 <span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>& keyval3); <a name="l00414"></a>00414 <a class="code" href="classsc_1_1AggregateKeyVal.html" title="This takes several KeyVal objects and makes them look like one KeyVal object.">AggregateKeyVal</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>& keyval1,<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>& keyval2, <a name="l00415"></a>00415 <span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>& keyval3, <span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>& keyval4); <a name="l00417"></a>00417 ~<a class="code" href="classsc_1_1AggregateKeyVal.html" title="This takes several KeyVal objects and makes them look like one KeyVal object.">AggregateKeyVal</a>(); <a name="l00418"></a>00418 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1AggregateKeyVal.html#8f02bff031d129cbccd586f1faeab6bd" title="Write a message to fp describing the error.">errortrace</a>(std::ostream&fp=<a class="code" href="classsc_1_1ExEnv.html#cd7bd179f669d37fc7f142f336f70d79" title="Return an ostream for error messages that writes from node 0.">ExEnv::err0</a>()); <a name="l00419"></a>00419 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1AggregateKeyVal.html#dad650c6e487343c2b3c3f5b31188643" title="Write a message to fp describing the error.">dump</a>(std::ostream&fp=<a class="code" href="classsc_1_1ExEnv.html#cd7bd179f669d37fc7f142f336f70d79" title="Return an ostream for error messages that writes from node 0.">ExEnv::err0</a>()); <a name="l00420"></a>00420 }; <a name="l00421"></a>00421 <a name="l00464"></a><a class="code" href="classsc_1_1PrefixKeyVal.html">00464</a> <span class="keyword">class </span><a class="code" href="classsc_1_1PrefixKeyVal.html" title="PrefixKeyVal is a KeyVal that searches a different KeyVal using modified keys.">PrefixKeyVal</a> : <span class="keyword">public</span> <a class="code" href="classsc_1_1KeyVal.html" title="The KeyVal class is designed to simplify the process of allowing a user to specify...">KeyVal</a> { <a name="l00465"></a>00465 <span class="keyword">private</span>: <a name="l00466"></a>00466 <span class="keywordtype">char</span>* prefix; <a name="l00467"></a>00467 <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a> keyval; <a name="l00468"></a>00468 <span class="keywordtype">void</span> setup(<span class="keyword">const</span> <span class="keywordtype">char</span>*,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>,<span class="keywordtype">int</span>); <a name="l00469"></a>00469 <span class="keywordtype">int</span> getnewprefixkey(<span class="keyword">const</span> <span class="keywordtype">char</span>*key,<span class="keywordtype">char</span>*newkey); <a name="l00470"></a>00470 <span class="comment">// do not allow a copy constructor or assignment</span> <a name="l00471"></a>00471 <a class="code" href="classsc_1_1PrefixKeyVal.html" title="PrefixKeyVal is a KeyVal that searches a different KeyVal using modified keys.">PrefixKeyVal</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1PrefixKeyVal.html" title="PrefixKeyVal is a KeyVal that searches a different KeyVal using modified keys.">PrefixKeyVal</a>&); <a name="l00472"></a>00472 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="classsc_1_1PrefixKeyVal.html" title="PrefixKeyVal is a KeyVal that searches a different KeyVal using modified keys.">PrefixKeyVal</a>&); <a name="l00473"></a>00473 <span class="keywordtype">int</span> key_exists(<span class="keyword">const</span> <span class="keywordtype">char</span>*); <a name="l00474"></a>00474 <a class="code" href="classsc_1_1Ref.html" title="A template class that maintains references counts.">Ref<KeyValValue></a> key_value(<span class="keyword">const</span> <span class="keywordtype">char</span>*, <a name="l00475"></a>00475 <span class="keyword">const</span> KeyValValue& def); <a name="l00476"></a>00476 <span class="keyword">public</span>: <a name="l00480"></a>00480 <a class="code" href="classsc_1_1PrefixKeyVal.html" title="PrefixKeyVal is a KeyVal that searches a different KeyVal using modified keys.">PrefixKeyVal</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>&,<span class="keywordtype">int</span> i); <a name="l00481"></a>00481 <a class="code" href="classsc_1_1PrefixKeyVal.html" title="PrefixKeyVal is a KeyVal that searches a different KeyVal using modified keys.">PrefixKeyVal</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>&,<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j); <a name="l00482"></a>00482 <a class="code" href="classsc_1_1PrefixKeyVal.html" title="PrefixKeyVal is a KeyVal that searches a different KeyVal using modified keys.">PrefixKeyVal</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>&,<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j,<span class="keywordtype">int</span> k); <a name="l00483"></a>00483 <a class="code" href="classsc_1_1PrefixKeyVal.html" title="PrefixKeyVal is a KeyVal that searches a different KeyVal using modified keys.">PrefixKeyVal</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>&,<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j,<span class="keywordtype">int</span> k,<span class="keywordtype">int</span> l); <a name="l00484"></a>00484 <a class="code" href="classsc_1_1PrefixKeyVal.html" title="PrefixKeyVal is a KeyVal that searches a different KeyVal using modified keys.">PrefixKeyVal</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>&,<span class="keyword">const</span> <span class="keywordtype">char</span>*prefix); <a name="l00485"></a>00485 <a class="code" href="classsc_1_1PrefixKeyVal.html" title="PrefixKeyVal is a KeyVal that searches a different KeyVal using modified keys.">PrefixKeyVal</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>&,<span class="keyword">const</span> <span class="keywordtype">char</span>*prefix,<span class="keywordtype">int</span> i); <a name="l00486"></a>00486 <a class="code" href="classsc_1_1PrefixKeyVal.html" title="PrefixKeyVal is a KeyVal that searches a different KeyVal using modified keys.">PrefixKeyVal</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>&,<span class="keyword">const</span> <span class="keywordtype">char</span>*prefix,<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j); <a name="l00487"></a>00487 <a class="code" href="classsc_1_1PrefixKeyVal.html" title="PrefixKeyVal is a KeyVal that searches a different KeyVal using modified keys.">PrefixKeyVal</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>&,<span class="keyword">const</span> <span class="keywordtype">char</span>*prefix,<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j,<span class="keywordtype">int</span> k); <a name="l00488"></a>00488 <a class="code" href="classsc_1_1PrefixKeyVal.html" title="PrefixKeyVal is a KeyVal that searches a different KeyVal using modified keys.">PrefixKeyVal</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>&,<span class="keyword">const</span> <span class="keywordtype">char</span>*prefix,<span class="keywordtype">int</span> i,<span class="keywordtype">int</span> j,<span class="keywordtype">int</span> k,<span class="keywordtype">int</span> l); <a name="l00490"></a>00490 ~<a class="code" href="classsc_1_1PrefixKeyVal.html" title="PrefixKeyVal is a KeyVal that searches a different KeyVal using modified keys.">PrefixKeyVal</a>(); <a name="l00491"></a>00491 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1PrefixKeyVal.html#24ed4010b9da6a21044a83c6cf530e99" title="Write a message to fp describing the error.">errortrace</a>(std::ostream&fp=<a class="code" href="classsc_1_1ExEnv.html#cd7bd179f669d37fc7f142f336f70d79" title="Return an ostream for error messages that writes from node 0.">ExEnv::err0</a>()); <a name="l00492"></a>00492 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1PrefixKeyVal.html#883c4179bfb8f78289f12bf73e9946c9" title="Write a message to fp describing the error.">dump</a>(std::ostream&fp=<a class="code" href="classsc_1_1ExEnv.html#cd7bd179f669d37fc7f142f336f70d79" title="Return an ostream for error messages that writes from node 0.">ExEnv::err0</a>()); <a name="l00493"></a>00493 }; <a name="l00494"></a>00494 <a name="l00495"></a>00495 <span class="keyword">class </span>IPV2; <a name="l00499"></a><a class="code" href="classsc_1_1ParsedKeyVal.html">00499</a> <span class="keyword">class </span><a class="code" href="classsc_1_1ParsedKeyVal.html" title="Converts textual information into keyword/value assocations.">ParsedKeyVal</a> : <span class="keyword">public</span> <a class="code" href="classsc_1_1StringKeyVal.html" title="StringKeyVal is a base class for KeyVal implementations that store all values in...">StringKeyVal</a> { <a name="l00500"></a>00500 <span class="keyword">private</span>: <a name="l00501"></a>00501 <span class="keywordtype">int</span> nfile; <a name="l00502"></a>00502 <span class="keywordtype">char</span>**file; <a name="l00503"></a>00503 <span class="keywordtype">int</span> nfp; <a name="l00504"></a>00504 IPV2* ipv2; <a name="l00505"></a>00505 <span class="comment">// do not allow a copy constructor or assignment</span> <a name="l00506"></a>00506 <a class="code" href="classsc_1_1ParsedKeyVal.html#4b807271d474ee79ac4810c2b315d684" title="Create an empty ParsedKeyVal.">ParsedKeyVal</a>(<span class="keyword">const</span> <a class="code" href="classsc_1_1ParsedKeyVal.html" title="Converts textual information into keyword/value assocations.">ParsedKeyVal</a>&); <a name="l00507"></a>00507 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="classsc_1_1ParsedKeyVal.html" title="Converts textual information into keyword/value assocations.">ParsedKeyVal</a>&); <a name="l00508"></a>00508 <span class="keyword">public</span>: <a name="l00510"></a>00510 <a class="code" href="classsc_1_1ParsedKeyVal.html#4b807271d474ee79ac4810c2b315d684" title="Create an empty ParsedKeyVal.">ParsedKeyVal</a>(); <a name="l00512"></a>00512 <a class="code" href="classsc_1_1ParsedKeyVal.html#4b807271d474ee79ac4810c2b315d684" title="Create an empty ParsedKeyVal.">ParsedKeyVal</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*file); <a name="l00514"></a>00514 <a class="code" href="classsc_1_1ParsedKeyVal.html#4b807271d474ee79ac4810c2b315d684" title="Create an empty ParsedKeyVal.">ParsedKeyVal</a>(std::istream&s); <a name="l00517"></a>00517 <a class="code" href="classsc_1_1ParsedKeyVal.html#4b807271d474ee79ac4810c2b315d684" title="Create an empty ParsedKeyVal.">ParsedKeyVal</a>(IPV2*); <a name="l00523"></a>00523 <a class="code" href="classsc_1_1ParsedKeyVal.html#4b807271d474ee79ac4810c2b315d684" title="Create an empty ParsedKeyVal.">ParsedKeyVal</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*,<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>&); <a name="l00525"></a>00525 <a class="code" href="classsc_1_1ParsedKeyVal.html#bbe2e773986a4fc19239b363efd88cbe" title="Cleanup, deleting the IPV2 object.">~ParsedKeyVal</a>(); <a name="l00526"></a>00526 <a name="l00529"></a>00529 <span class="keyword">static</span> <span class="keywordtype">void</span> <a class="code" href="classsc_1_1ParsedKeyVal.html#c4c11fefd0dfcabce31f78a26760b5ca" title="This is like the ParsedKeyVal(const char*,const Ref&lt;KeyVal&gt;&amp;) ctor, but...">cat_files</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*,<span class="keyword">const</span> <a class="code" href="classsc_1_1Ref.html">Ref<KeyVal></a>&,std::ostream &o); <a name="l00530"></a>00530 <a name="l00532"></a>00532 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1ParsedKeyVal.html#12e6b605e9b5f0b013ea1caad3b704a2" title="Read input data from the given filename.">read</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*); <a name="l00534"></a>00534 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1ParsedKeyVal.html#12e6b605e9b5f0b013ea1caad3b704a2" title="Read input data from the given filename.">read</a>(std::istream&); <a name="l00536"></a>00536 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1ParsedKeyVal.html#0a760c90709a1ea5fcbf528d932925c1" title="Read input data from the given string.">parse_string</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *); <a name="l00537"></a>00537 <a name="l00541"></a>00541 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classsc_1_1ParsedKeyVal.html#196ef947a2c170b8652f6acda00727b7" title="Returns the string representation of the value assigned to key.">stringrep</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*); <a name="l00542"></a>00542 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classsc_1_1ParsedKeyVal.html#94e1c024959a746195dbd4c4563c25e3" title="Returns the name of the exact class of the object at the keyword.">classname</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*); <a name="l00543"></a>00543 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="classsc_1_1ParsedKeyVal.html#9b5e45f75930e29755f0e166a390efbe" title="Returns a string which is the actual keyword if some sort of variable substitution...">truekeyword</a>(<span class="keyword">const</span> <span class="keywordtype">char</span>*); <a name="l00544"></a>00544 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1ParsedKeyVal.html#7eaeb7398109a5ce7c4842505a42e30c" title="Write a message to fp describing the error.">errortrace</a>(std::ostream&fp=<a class="code" href="classsc_1_1ExEnv.html#cd7bd179f669d37fc7f142f336f70d79" title="Return an ostream for error messages that writes from node 0.">ExEnv::err0</a>()); <a name="l00545"></a>00545 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1ParsedKeyVal.html#5a80e3848210832498deb68191aa9aae" title="Write a message to fp describing the error.">dump</a>(std::ostream&fp=<a class="code" href="classsc_1_1ExEnv.html#cd7bd179f669d37fc7f142f336f70d79" title="Return an ostream for error messages that writes from node 0.">ExEnv::err0</a>()); <a name="l00546"></a>00546 <span class="keywordtype">void</span> <a class="code" href="classsc_1_1ParsedKeyVal.html#78a58ce5cf3421c6a4daab0203a9be27" title="Print keywords that were never looked at, if possible.">print_unseen</a>(std::ostream&fp=<a class="code" href="classsc_1_1ExEnv.html#360216acd1f990e999c0ed46cb350b1f" title="Return an ostream that writes from node 0.">ExEnv::out0</a>()); <a name="l00547"></a>00547 <span class="keywordtype">int</span> <a class="code" href="classsc_1_1ParsedKeyVal.html#314417b41c1a1ca4d55c4a55c192764a" title="Return 1 if there were unseen keywords, 0 if there are none, or -1 this keyval doesn&#39;t...">have_unseen</a>(); <a name="l00549"></a>00549 }; <a name="l00550"></a>00550 <a name="l00551"></a>00551 } <a name="l00552"></a>00552 <a name="l00553"></a>00553 <span class="preprocessor">#endif </span><span class="comment">/* _KeyVal_h */</span> <a name="l00554"></a>00554 <a name="l00555"></a>00555 <span class="comment">// Local Variables:</span> <a name="l00556"></a>00556 <span class="comment">// mode: c++</span> <a name="l00557"></a>00557 <span class="comment">// c-file-style: "CLJ"</span> <a name="l00558"></a>00558 <span class="comment">// End:</span> </pre></div></div> <hr> <address> <small> Generated at Wed Oct 14 14:12:10 2009 for <a href="http://www.mpqc.org">MPQC</a> 2.3.1 using the documentation package <a href="http://www.doxygen.org">Doxygen</a> 1.5.9. </small> </address> </body> </html>