OSG::ConnectionFactory Class Reference


Detailed Description

The ConnectionFactory knows all types of connections by name. A new connection object could be crated by calling
 Connection *c = ConnectionFactory::the().create("Multicast");
 if(!c)
 {
     SLOG << "Unknown connection:";
 }
 

Each connection type must be registered to the factory. This is done by static initialisation. The following example shows registration of the Multicast connection.

 ConnectionType MulticastConnection::_type(&MulticastConnection::create,
                                             "Multicast");
 


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