#include <SchemeTable.h>
Definition at line 30 of file SchemeTable.h.
Public Member Functions | |
Scheme * | lookup (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 SchemeTable * | instance_ |
Private Member Functions | |
SchemeTable () | |
Constructor -- instantiates and registers all known schemes. | |
virtual | ~SchemeTable () |
Destructor cleans up the known schemes and is called at shutdown time. | |
Friends | |
class | oasys::Singleton< SchemeTable > |
typedef oasys::StringHashMap<Scheme*> dtn::SchemeTable::SchemeMap [protected] |
Definition at line 58 of file SchemeTable.h.
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 31 of file SchemeTable.cc.
References table_.
dtn::SchemeTable::~SchemeTable | ( | ) | [private, virtual] |
Destructor cleans up the known schemes and is called at shutdown time.
Definition at line 43 of file SchemeTable.cc.
References table_.
Scheme * dtn::SchemeTable::lookup | ( | const std::string & | scheme_str | ) |
Find the appropriate Scheme instance based on the URI scheme of the endpoint id scheme.
Definition at line 50 of file SchemeTable.cc.
References table_.
friend class oasys::Singleton< SchemeTable > [friend] |
Definition at line 32 of file SchemeTable.h.
SchemeTable* dtn::SchemeTable::instance_ [static, protected] |
Definition at line 57 of file SchemeTable.h.
SchemeMap dtn::SchemeTable::table_ [protected] |
Definition at line 59 of file SchemeTable.h.
Referenced by lookup(), SchemeTable(), and ~SchemeTable().