5 #ifndef CRYPTOPP_IMPORTS 14 if (strcmp(name,
"ValueNames") == 0)
15 return m_pairs1.
GetVoidValue(name, valueType, pValue) && m_pairs2.GetVoidValue(name, valueType, pValue);
17 return m_pairs1.GetVoidValue(name, valueType, pValue) || m_pairs2.GetVoidValue(name, valueType, pValue);
26 bool AlgorithmParametersBase::GetVoidValue(
const char *name,
const std::type_info &valueType,
void *pValue)
const 28 if (strcmp(name,
"ValueNames") == 0)
32 m_next->GetVoidValue(name, valueType, pValue);
33 (*
reinterpret_cast<std::string *
>(pValue) += m_name) +=
";";
36 else if (strcmp(name, m_name) == 0)
38 AssignValue(name, valueType, pValue);
42 else if (m_next.get())
43 return m_next->GetVoidValue(name, valueType, pValue);
49 : m_defaultThrowIfNotUsed(true)
54 : m_defaultThrowIfNotUsed(x.m_defaultThrowIfNotUsed)
56 m_next.reset(const_cast<AlgorithmParameters &>(x).m_next.release());
61 m_next.reset(const_cast<AlgorithmParameters &>(x).m_next.release());
68 return m_next->GetVoidValue(name, valueType, pValue);
bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const
Get a named value.
Classes for working with NameValuePairs.
Base class for AlgorithmParameters.
AlgorithmParameters()
Construct a AlgorithmParameters.
bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const
Get a named value.
Combines two sets of NameValuePairs.
#define CRYPTOPP_ASSERT(exp)
Debugging and diagnostic assertion.
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.
Multiple precision integer with arithmetic operations.
Crypto++ library namespace.