gloox  1.0
Public Types | Public Member Functions | List of all members
SHIM Class Reference

#include <shim.h>

Inheritance diagram for SHIM:
Inheritance graph
[legend]

Public Types

typedef std::map< std::string,
std::string > 
HeaderList

Public Member Functions

 SHIM (const HeaderList &hl)
 SHIM (const Tag *tag=0)
const HeaderListheaders () const
virtual ~SHIM ()
virtual const std::string & filterString () const
virtual StanzaExtensionnewInstance (const Tag *tag) const
virtual Tagtag () const
virtual StanzaExtensionclone () const
- Public Member Functions inherited from StanzaExtension
 StanzaExtension (int type)
virtual ~StanzaExtension ()
int extensionType () const

Detailed Description

An implementation/abstraction of Stanza Headers and Internet Metadata (SHIM, XEP-0131).

XEP Version: 1.2

Author
Jakob Schroeter js@ca.nosp@m.maya.nosp@m..net
Since
1.0

Definition at line 35 of file shim.h.

Member Typedef Documentation

typedef std::map<std::string, std::string> HeaderList

A list of SHIM headers (name & value).

Definition at line 41 of file shim.h.

Constructor & Destructor Documentation

SHIM ( const HeaderList hl)

Creates a new SHIM object containing the given headers.

Parameters
hlThe list of headers.

Definition at line 19 of file shim.cpp.

SHIM ( const Tag tag = 0)

Creates a new SHIM object from the given Tag.

Parameters
tagThe Tag to parse.

Definition at line 24 of file shim.cpp.

~SHIM ( )
virtual

Virtual destructor.

Definition at line 41 of file shim.cpp.

Member Function Documentation

virtual StanzaExtension* clone ( ) const
inlinevirtual

Returns an identical copy of the current StanzaExtension.

Returns
An identical copy of the current StanzaExtension.

Implements StanzaExtension.

Definition at line 79 of file shim.h.

const std::string & filterString ( ) const
virtual

Returns an XPath expression that describes a path to child elements of a stanza that an extension handles.

Returns
The extension's filter string.

Implements StanzaExtension.

Definition at line 45 of file shim.cpp.

const HeaderList& headers ( ) const
inline

Returns the headers.

Returns
The headers.

Definition at line 59 of file shim.h.

virtual StanzaExtension* newInstance ( const Tag tag) const
inlinevirtual

Returns a new Instance of the derived type. Usually, for a derived class FooExtension, the implementation of this function looks like:

{
return new FooExtension( tag );
}
Returns
The derived extension's new instance.

Implements StanzaExtension.

Definition at line 70 of file shim.h.

Tag * tag ( ) const
virtual

Returns a Tag representation of the extension.

Returns
A Tag representation of the extension.

Implements StanzaExtension.

Definition at line 53 of file shim.cpp.


The documentation for this class was generated from the following files: