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

AAAAccountingXMLRecTransformer Class Reference

AAAMessage to XML Transformer definition. More...

#include <diameter_api.h>

Inheritance diagram for AAAAccountingXMLRecTransformer:

AAAAccountingRecTransformer List of all members.

Public Member Functions

 AAAAccountingXMLRecTransformer ()
 ~AAAAccountingXMLRecTransformer ()
virtual AAAReturnCode Convert (AAAMessage *msg)
virtual AAAReturnCode OutputRecord (AAAMessage *originalMsg)

Protected Attributes

AAASessionPayload record
ACE_UINT32 record_size

Detailed Description

AAAMessage to XML Transformer definition.

This is a default transfomer provided by the open diameter library. When used, with a session object, the transformer will convert AAAMessage to XML stream.

The following is the XML stream output format for a converted AAAMessage.

value value value value value <"avpname">value <"avpname"> <"avpname">value</"avpname"> <"avpname">value</"avpname"> <"avpname"> <"avpname">value</"avpname"> </"avpname"> </"avpname">


Constructor & Destructor Documentation

AAAAccountingXMLRecTransformer::AAAAccountingXMLRecTransformer  ) 
 

constructor

AAAAccountingXMLRecTransformer::~AAAAccountingXMLRecTransformer  ) 
 

destructor


Member Function Documentation

virtual AAAReturnCode AAAAccountingXMLRecTransformer::Convert AAAMessage msg  )  [virtual]
 

Converts AAAMessage to XML stream data.

Parameters:
msg Message to be converted

Implements AAAAccountingRecTransformer.

virtual AAAReturnCode AAAAccountingXMLRecTransformer::OutputRecord AAAMessage originalMsg  )  [virtual]
 

Must be implemented by the application to archive the XML stream data. The converted data MUST be stored in record and record_size.

IMPORTANT: Users MAY invoked this default implementation to automatically free the record. Otherwise it is the responsibility of the implementor to release this record pointer using "delete".

Parameters:
originalMsg Source message

Implements AAAAccountingRecTransformer.


Member Data Documentation

AAASessionPayload AAAAccountingXMLRecTransformer::record [protected]
 

Opaque pointer to XML stream

ACE_UINT32 AAAAccountingXMLRecTransformer::record_size [protected]
 

Size of record


The documentation for this class was generated from the following file:
Generated on Fri Jun 25 19:12:02 2004 for Open Diameter C++ API by doxygen 1.3.5