5 #ifndef CRYPTOPP_IMPORTS 12 PAssignIntToInteger g_pAssignIntToInteger = NULL;
16 if (strcmp(name,
"ValueNames") == 0)
17 return m_pairs1.
GetVoidValue(name, valueType, pValue) && m_pairs2.GetVoidValue(name, valueType, pValue);
19 return m_pairs1.GetVoidValue(name, valueType, pValue) || m_pairs2.GetVoidValue(name, valueType, pValue);
28 bool AlgorithmParametersBase::GetVoidValue(
const char *name,
const std::type_info &valueType,
void *pValue)
const 30 if (strcmp(name,
"ValueNames") == 0)
34 m_next->GetVoidValue(name, valueType, pValue);
35 (*
reinterpret_cast<std::string *
>(pValue) += m_name) +=
";";
38 else if (strcmp(name, m_name) == 0)
40 AssignValue(name, valueType, pValue);
44 else if (m_next.get())
45 return m_next->GetVoidValue(name, valueType, pValue);
50 AlgorithmParameters::AlgorithmParameters()
51 : m_defaultThrowIfNotUsed(
true)
56 : m_defaultThrowIfNotUsed(x.m_defaultThrowIfNotUsed)
58 m_next.reset(const_cast<AlgorithmParameters &>(x).m_next.release());
63 m_next.reset(const_cast<AlgorithmParameters &>(x).m_next.release());
70 return m_next->GetVoidValue(name, valueType, pValue);
Classes for working with NameValuePairs.
bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const
Get a named value.
bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const
Get a named value.
static void ThrowIfTypeMismatch(const char *name, const std::type_info &stored, const std::type_info &retrieving)
Ensures an expected name and type is present.
An object that implements NameValuePairs.
Crypto++ library namespace.