Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages

SHIM Class Reference

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

#include <shim.h>

Inherits StanzaExtension.

Inheritance diagram for SHIM:

Inheritance graph
[legend]
List of all members.

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

Detailed Description

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

XEP Version: 1.2

Author:
Jakob Schroeter <js@camaya.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:
hl The 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:
tag The 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 [inline, virtual]
 

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 [inline, virtual]
 

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

 StanzaExtension* FooExtension::newInstance( const Tag* tag ) const
 {
   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:
Generated on Sat Oct 31 19:54:40 2009 for gloox by  doxygen 1.4.1