Classes for working with NameValuePairs.
More...
#include "config.h"
#include "cryptlib.h"
#include "smartptr.h"
#include "secblock.h"
#include "integer.h"
#include "misc.h"
#include <string>
#include <typeinfo>
#include <exception>
Go to the source code of this file.
|
template<class BASE , class T > |
GetValueHelperClass< T, BASE > | GetValueHelper (const T *pObject, const char *name, const std::type_info &valueType, void *pValue, const NameValuePairs *searchFirst=NULLPTR) |
|
template<class T > |
GetValueHelperClass< T, T > | GetValueHelper (const T *pObject, const char *name, const std::type_info &valueType, void *pValue, const NameValuePairs *searchFirst=NULLPTR) |
|
template<class BASE , class T > |
AssignFromHelperClass< T, BASE > | AssignFromHelper (T *pObject, const NameValuePairs &source) |
|
template<class T > |
AssignFromHelperClass< T, T > | AssignFromHelper (T *pObject, const NameValuePairs &source) |
|
CRYPTOPP_DLL bool | AssignIntToInteger (const std::type_info &valueType, void *pInteger, const void *pInt) |
|
CRYPTOPP_DLL const std::type_info &CRYPTOPP_API | IntegerTypeId () |
|
template<class T > |
AlgorithmParameters | MakeParameters (const char *name, const T &value, bool throwIfNotUsed=true) |
| Create an object that implements NameValuePairs.
|
|
Classes for working with NameValuePairs.
Definition in file algparam.h.
◆ CRYPTOPP_GET_FUNCTION_ENTRY
#define CRYPTOPP_GET_FUNCTION_ENTRY |
( |
|
name | ) |
(Name::name(), &ThisClass::Get##name) |
◆ CRYPTOPP_SET_FUNCTION_ENTRY
#define CRYPTOPP_SET_FUNCTION_ENTRY |
( |
|
name | ) |
(Name::name(), &ThisClass::Set##name) |
◆ CRYPTOPP_SET_FUNCTION_ENTRY2
#define CRYPTOPP_SET_FUNCTION_ENTRY2 |
( |
|
name1, |
|
|
|
name2 |
|
) |
| (Name::name1(), Name::name2(), &ThisClass::Set##name1##And##name2) |
◆ AssignFromHelper() [1/2]
template<class BASE , class T >
◆ AssignFromHelper() [2/2]
◆ AssignIntToInteger()
CRYPTOPP_DLL bool AssignIntToInteger |
( |
const std::type_info & |
valueType, |
|
|
void * |
pInteger, |
|
|
const void * |
pInt |
|
) |
| |
◆ GetValueHelper() [1/2]
template<class BASE , class T >
GetValueHelperClass< T, BASE > GetValueHelper |
( |
const T * |
pObject, |
|
|
const char * |
name, |
|
|
const std::type_info & |
valueType, |
|
|
void * |
pValue, |
|
|
const NameValuePairs * |
searchFirst = NULLPTR |
|
) |
| |
◆ GetValueHelper() [2/2]
template<class T >
GetValueHelperClass< T, T > GetValueHelper |
( |
const T * |
pObject, |
|
|
const char * |
name, |
|
|
const std::type_info & |
valueType, |
|
|
void * |
pValue, |
|
|
const NameValuePairs * |
searchFirst = NULLPTR |
|
) |
| |
◆ MakeParameters()
template<class T >
AlgorithmParameters MakeParameters |
( |
const char * |
name, |
|
|
const T & |
value, |
|
|
bool |
throwIfNotUsed = true |
|
) |
| |
Create an object that implements NameValuePairs.
- Template Parameters
-
- Parameters
-
name | the name of the object or value to retrieve |
value | reference to a variable that receives the value |
throwIfNotUsed | if true, the object will throw an exception if the value is not accessed |
- Note
- throwIfNotUsed is ignored if using a compiler that does not support std::uncaught_exception(), such as MSVC 7.0 and earlier.
-
A NameValuePairs object containing an arbitrary number of name value pairs may be constructed by repeatedly using
operator()
on the object returned by MakeParameters
, for example:
AlgorithmParameters parameters = MakeParameters(name1, value1)(name2, value2)(name3, value3);
Definition at line 508 of file algparam.h.
◆ AlgorithmParametersTemplate< bool >
◆ AlgorithmParametersTemplate< ConstByteArrayParameter >
◆ AlgorithmParametersTemplate< int >