dtn::DiscoveryTable Class Reference

#include <DiscoveryTable.h>

Inheritance diagram for dtn::DiscoveryTable:

oasys::Logger List of all members.

Detailed Description

Definition at line 31 of file DiscoveryTable.h.

Public Member Functions

virtual ~DiscoveryTable ()
bool add (const std::string &name, const char *addr_family, int argc, const char *argv[])
bool del (const std::string &name)
void dump (oasys::StringBuffer *buf)
void shutdown ()

Static Public Member Functions

static void init ()

Protected Member Functions

 DiscoveryTable ()
bool find (const std::string &name, DiscoveryList::iterator *iter)

Protected Attributes

DiscoveryList dlist_

Friends

class DiscoveryCommand
class oasys::Singleton< DiscoveryTable >


Constructor & Destructor Documentation

dtn::DiscoveryTable::~DiscoveryTable (  )  [virtual]

Definition at line 31 of file DiscoveryTable.cc.

dtn::DiscoveryTable::DiscoveryTable (  )  [protected]

Definition at line 26 of file DiscoveryTable.cc.

Referenced by init().


Member Function Documentation

static void dtn::DiscoveryTable::init (  )  [inline, static]

Definition at line 37 of file DiscoveryTable.h.

References DiscoveryTable().

Referenced by dtn::DTNServer::init_components().

bool dtn::DiscoveryTable::add ( const std::string &  name,
const char *  addr_family,
int  argc,
const char *  argv[] 
)

Definition at line 64 of file DiscoveryTable.cc.

References dtn::Discovery::create_discovery(), dlist_, find(), log_err, and log_info.

bool dtn::DiscoveryTable::del ( const std::string &  name  ) 

Definition at line 89 of file DiscoveryTable.cc.

References dlist_, find(), log_err, log_info, and dtn::Discovery::shutdown().

void dtn::DiscoveryTable::dump ( oasys::StringBuffer buf  ) 

Definition at line 111 of file DiscoveryTable.cc.

References oasys::StringBuffer::appendf(), dlist_, and dtn::Discovery::dump().

void dtn::DiscoveryTable::shutdown (  ) 

Definition at line 36 of file DiscoveryTable.cc.

References dlist_.

bool dtn::DiscoveryTable::find ( const std::string &  name,
DiscoveryList::iterator *  iter 
) [protected]

Definition at line 50 of file DiscoveryTable.cc.

References dlist_, and dtn::Discovery::name().

Referenced by add(), and del().


Friends And Related Function Documentation

friend class DiscoveryCommand [friend]

Definition at line 56 of file DiscoveryTable.h.

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

Definition at line 57 of file DiscoveryTable.h.


Member Data Documentation

DiscoveryList dtn::DiscoveryTable::dlist_ [protected]

Definition at line 63 of file DiscoveryTable.h.

Referenced by add(), del(), dump(), find(), and shutdown().


The documentation for this class was generated from the following files:
Generated on Thu Jun 7 16:56:57 2007 for DTN Reference Implementation by  doxygen 1.5.1