📄 class_name_value_pairs.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"><title>Crypto++: NameValuePairs Class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"><link href="tabs.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.5.2 --><div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul></div><div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul></div><h1>NameValuePairs Class Reference</h1><!-- doxytag: class="NameValuePairs" --><code>#include <<a class="el" href="cryptlib_8h-source.html">cryptlib.h</a>></code><p><p>Inheritance diagram for NameValuePairs:<p><center><img src="class_name_value_pairs.png" usemap="#NameValuePairs_map" border="0" alt=""></center><map name="NameValuePairs_map"><area href="class_algorithm_parameters_base.html" alt="AlgorithmParametersBase" shape="rect" coords="0,56,405,80"><area href="class_combined_name_value_pairs.html" alt="CombinedNameValuePairs" shape="rect" coords="415,56,820,80"><area href="class_crypto_material.html" alt="CryptoMaterial" shape="rect" coords="1971,56,2376,80"><area href="class_null_name_value_pairs.html" alt="NullNameValuePairs" shape="rect" coords="2386,56,2791,80"><area href="class_test_data_name_value_pairs.html" alt="TestDataNameValuePairs" shape="rect" coords="2801,56,3206,80"><area href="class_algorithm_parameters_base2.html" alt="AlgorithmParametersBase2< T >" shape="rect" coords="0,112,405,136"><area href="class_generatable_crypto_material.html" alt="GeneratableCryptoMaterial" shape="rect" coords="830,112,1235,136"><area href="class_public_key.html" alt="PublicKey" shape="rect" coords="3112,112,3517,136"><area href="class_algorithm_parameters.html" alt="AlgorithmParameters< PARENT, T >" shape="rect" coords="0,168,405,192"><area href="class_crypto_parameters.html" alt="CryptoParameters" shape="rect" coords="415,168,820,192"><area href="class_private_key.html" alt="PrivateKey" shape="rect" coords="1245,168,1650,192"><area href="class_a_s_n1_crypto_material.html" alt="ASN1CryptoMaterial< PublicKey >" shape="rect" coords="2075,168,2480,192"><area href="class_l_u_c_function.html" alt="LUCFunction" shape="rect" coords="2905,168,3310,192"><area href="class_rabin_function.html" alt="RabinFunction" shape="rect" coords="3320,168,3725,192"><area href="class_r_w_function.html" alt="RWFunction" shape="rect" coords="3735,168,4140,192"><area href="class_d_l___group_parameters.html" alt="DL_GroupParameters< T >" shape="rect" coords="830,224,1235,248"><area href="class_d_l___group_parameters.html" alt="DL_GroupParameters< Integer >" shape="rect" coords="830,280,1235,304"><area href="class_d_l___group_parameters.html" alt="DL_GroupParameters< typenameEcPrecomputation< EC >::Element >" shape="rect" coords="830,336,1235,360"><area href="class_x_t_r___d_h.html" alt="XTR_DH" shape="rect" coords="830,392,1235,416"><area href="class_a_s_n1_crypto_material.html" alt="ASN1CryptoMaterial< PrivateKey >" shape="rect" coords="1660,224,2065,248"><area href="class_invertible_e_s_i_g_n_function.html" alt="InvertibleESIGNFunction" shape="rect" coords="1660,280,2065,304"><area href="class_invertible_l_u_c_function.html" alt="InvertibleLUCFunction" shape="rect" coords="1660,336,2065,360"><area href="class_invertible_rabin_function.html" alt="InvertibleRabinFunction" shape="rect" coords="1660,392,2065,416"><area href="class_invertible_r_w_function.html" alt="InvertibleRWFunction" shape="rect" coords="1660,448,2065,472"><area href="class_e_s_i_g_n_function.html" alt="ESIGNFunction" shape="rect" coords="2490,224,2895,248"><area href="class_x509_public_key.html" alt="X509PublicKey" shape="rect" coords="2490,280,2895,304"><area href="class_invertible_l_u_c_function.html" alt="InvertibleLUCFunction" shape="rect" coords="2905,224,3310,248"><area href="class_invertible_rabin_function.html" alt="InvertibleRabinFunction" shape="rect" coords="3320,224,3725,248"><area href="class_invertible_r_w_function.html" alt="InvertibleRWFunction" shape="rect" coords="3735,224,4140,248"></map><a href="class_name_value_pairs-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>interface for retrieving values given their names <p><dl class="note" compact><dt><b>Note:</b></dt><dd>This class is used to safely pass a variable number of arbitrarily typed arguments to functions and to read values from keys and crypto parameters. <p>To obtain an object that implements <a class="el" href="class_name_value_pairs.html" title="interface for retrieving values given their names">NameValuePairs</a> for the purpose of parameter passing, use the MakeParameters() function. <p>To get a value from <a class="el" href="class_name_value_pairs.html" title="interface for retrieving values given their names">NameValuePairs</a>, you need to know the name and the type of the value. Call <a class="el" href="class_name_value_pairs.html#13faea827ee047cd58557282806ed2e1" title="get a list of value names that can be retrieved">GetValueNames()</a> on a <a class="el" href="class_name_value_pairs.html" title="interface for retrieving values given their names">NameValuePairs</a> object to obtain a list of value names that it supports. Then look at the <a class="el" href="namespace_name.html" title="namespace containing value name definitions">Name</a> namespace documentation to see what the type of each value is, or alternatively, call <a class="el" href="class_name_value_pairs.html#39b6daefcabcdd07f5ae482a075e1728" title="get a named value with type int">GetIntValue()</a> with the value name, and if the type is not int, a <a class="el" href="class_name_value_pairs_1_1_value_type_mismatch.html" title="exception thrown when trying to retrieve a value using a different type than expected...">ValueTypeMismatch</a> exception will be thrown and you can get the actual type from the exception object. </dd></dl><p><p>Definition at line <a class="el" href="cryptlib_8h-source.html#l00223">223</a> of file <a class="el" href="cryptlib_8h-source.html">cryptlib.h</a>.<table border="0" cellpadding="0" cellspacing="0"><tr><td></td></tr><tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7ab9b908bbcf110bef6c441122696be2"></a><!-- doxytag: member="NameValuePairs::~NameValuePairs" ref="7ab9b908bbcf110bef6c441122696be2" args="()" -->virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#7ab9b908bbcf110bef6c441122696be2">~NameValuePairs</a> ()</td></tr><tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="16d9f1685fbb1be3f29a22dbba911142"></a><!-- doxytag: member="NameValuePairs::GetThisObject" ref="16d9f1685fbb1be3f29a22dbba911142" args="(T &object) const" -->template<class T> </td></tr><tr><td class="memTemplItemLeft" nowrap align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#16d9f1685fbb1be3f29a22dbba911142">GetThisObject</a> (T &object) const</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">get a copy of this object or a subobject of it <br></td></tr><tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="01c64a1e0a5f667898b4c1968a853c0f"></a><!-- doxytag: member="NameValuePairs::GetThisPointer" ref="01c64a1e0a5f667898b4c1968a853c0f" args="(T *&p) const " -->template<class T> </td></tr><tr><td class="memTemplItemLeft" nowrap align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_name_value_pairs.html#01c64a1e0a5f667898b4c1968a853c0f">GetThisPointer</a> (T *&p) const </td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">get a pointer to this object, as a pointer to T <br></td></tr><tr><td class="memTemplParams" nowrap colspan="2"><a class="anchor" name="96686e9f8d6ce3ab870e516fb72b608e"></a><!-- doxytag: member="NameValuePairs::GetValue" ref="96686e9f8d6ce3ab870e516fb72b608e" args="(const char *name, T &value) const " -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -