Bayonne2 / Common C++ 2 Framework
|
EnumBase provides methods to store and access algorithm enumerations of a specific algorithm type. More...
#include <ZrtpConfigure.h>
Public Member Functions | |
AlgorithmEnum & | getByName (const char *name) |
Get an AlgorithmEnum by its name. More... | |
std::list< std::string > * | getAllNames () |
Return all names of all currently stored AlgorithmEnums. More... | |
int | getSize () |
Get the number of currently stored AlgorithmEnums. More... | |
AlgoTypes | getAlgoType () |
Get the AlgoTypes to which this EnumBase belongs. More... | |
AlgorithmEnum & | getByOrdinal (int ord) |
Return the AlgorithmEnum by its ordinal number. More... | |
int | getOrdinal (AlgorithmEnum &algo) |
Get the ordinal number of an AlgorithmEnum. More... | |
Protected Member Functions | |
EnumBase (AlgoTypes algo) | |
~EnumBase () | |
void | insert (const char *name) |
void | insert (const char *name, int32_t klen, const char *ra, encrypt_t en, decrypt_t de, SrtpAlgorithms alId) |
Private Attributes | |
AlgoTypes | algoType |
std::vector< AlgorithmEnum * > | algos |
EnumBase provides methods to store and access algorithm enumerations of a specific algorithm type.
An application shall use the get / check methods to retrieve information from the preset Algorithm Enumerations.
Definition at line 185 of file ZrtpConfigure.h.
|
protected |
|
protected |
AlgoTypes EnumBase::getAlgoType | ( | ) |
std::list<std::string>* EnumBase::getAllNames | ( | ) |
Return all names of all currently stored AlgorithmEnums.
AlgorithmEnum& EnumBase::getByName | ( | const char * | name | ) |
Get an AlgorithmEnum by its name.
name | The name of the AlgorithmEnum to search. |
AlgorithmEnum& EnumBase::getByOrdinal | ( | int | ord | ) |
Return the AlgorithmEnum by its ordinal number.
ord | The ordinal number of the AlgorithmEnum. |
int EnumBase::getOrdinal | ( | AlgorithmEnum & | algo | ) |
Get the ordinal number of an AlgorithmEnum.
algo | Return toe ordinal numer of this AlgorithmEnum. |
int EnumBase::getSize | ( | ) |
Get the number of currently stored AlgorithmEnums.
|
protected |
|
protected |
|
private |
Definition at line 254 of file ZrtpConfigure.h.
|
private |
Definition at line 253 of file ZrtpConfigure.h.