dtn::SchemeTable Class Reference

#include <SchemeTable.h>

List of all members.


Detailed Description

The table of registered endpoint id schemes.

Definition at line 51 of file SchemeTable.h.

Public Member Functions

Schemelookup (const std::string &scheme_str)
 Find the appropriate Scheme instance based on the URI scheme of the endpoint id scheme.

Protected Types

typedef oasys::StringHashMap<
Scheme * > 
SchemeMap

Protected Attributes

SchemeMap table_

Static Protected Attributes

static SchemeTableinstance_

Private Member Functions

 SchemeTable ()
 Constructor -- instantiates and registers all known schemes.

Friends

class oasys::Singleton< SchemeTable >


Member Typedef Documentation

typedef oasys::StringHashMap<Scheme*> dtn::SchemeTable::SchemeMap [protected]

Definition at line 73 of file SchemeTable.h.


Constructor & Destructor Documentation

dtn::SchemeTable::SchemeTable (  )  [private]

Constructor -- instantiates and registers all known schemes.

Called from the singleton instance() method the first time the table is accessed.

Definition at line 56 of file SchemeTable.cc.

References table_.


Member Function Documentation

Scheme * dtn::SchemeTable::lookup ( const std::string &  scheme_str  ) 

Find the appropriate Scheme instance based on the URI scheme of the endpoint id scheme.

Returns:
the instance if it exists or NULL if there's no match

Definition at line 74 of file SchemeTable.cc.

References table_.


Friends And Related Function Documentation

friend class oasys::Singleton< SchemeTable > [friend]

Definition at line 53 of file SchemeTable.h.


Member Data Documentation

SchemeTable* dtn::SchemeTable::instance_ [static, protected]

Definition at line 72 of file SchemeTable.h.

SchemeMap dtn::SchemeTable::table_ [protected]

Definition at line 74 of file SchemeTable.h.

Referenced by lookup(), and SchemeTable().


The documentation for this class was generated from the following files:
Generated on Fri Dec 22 14:48:04 2006 for DTN Reference Implementation by  doxygen 1.5.1