Main Page | Class Hierarchy | Class List | File List | Class Members

AvpTypeList_S Class Reference

AVP Type List Class Definition. Every AVP type MUST have an instance for this singleton class with specifying an appropriate function used for creating the AVP value parser. This class is also used for adding user-defined AVP types and parsers. More...

#include <diameter_parser_api.h>

List of all members.

Public Member Functions

AvpTypesearch (ACE_UINT32 type)
AvpTypesearch (const char *name)
void add (AvpType *avpType)

Friends

class ACE_Singleton<AvpTypeList_S, ACE_Recursive_Thread_Mutex>


Detailed Description

AVP Type List Class Definition. Every AVP type MUST have an instance for this singleton class with specifying an appropriate function used for creating the AVP value parser. This class is also used for adding user-defined AVP types and parsers.

Example usage:

#include "diameter_api.h" #define AAA_AVP_MYDATA_TYPE 10000 static AvpValueParserCreator<MyParser> myValueParserCreator; static AvpContainerEntryCreator<MyAvpContainerEntry> myContainerEntryCreator; AvpTypeList::instance()->add(new AvpType("MyAvp", AAA_AVP_MYDATA_TYPE, 0, myParserCreator, myContainerEntryCreator));

MyAvpParser and MyAvpContainerEntry classes will need to be defined.


Member Function Documentation

void AvpTypeList_S::add AvpType avpType  )  [inline]
 

Adds an AVP type instance to the list

Parameters:
avpType instance of an AVP type

AvpType* AvpTypeList_S::search const char *  name  )  [inline]
 

Returns a pointer to the AVP type instance

Parameters:
name AVP name

AvpType* AvpTypeList_S::search ACE_UINT32  type  )  [inline]
 

Returns a pointer to the AVP type instance

Parameters:
type AVP type


Friends And Related Function Documentation

friend class ACE_Singleton<AvpTypeList_S, ACE_Recursive_Thread_Mutex> [friend]
 

type list


The documentation for this class was generated from the following file:
Generated on Mon Jan 10 20:16:51 2005 for Open Diameter C++ API by  doxygen 1.3.9.1