Logo Search packages:      
Sourcecode: poco version File versions  Download package

void Poco::Data::SessionFactory::remove ( const std::string &  key  ) 

Registers a Connector under the given key at the factory. If a registration for that key is already active, the first registration will be kept, only its reference count will be increased. Always takes ownership of parameter pIn.

Definition at line 73 of file SessionFactory.cpp.

Referenced by Poco::Data::Test::Connector::removeFromFactory(), Poco::Data::SQLite::Connector::unregisterConnector(), Poco::Data::ODBC::Connector::unregisterConnector(), and Poco::Data::MySQL::Connector::unregisterConnector().

      Poco::FastMutex::ScopedLock lock(_mutex);
      Connectors::iterator it = _connectors.find(key);
      poco_assert (_connectors.end() != it);

      if (it->second.cnt == 0)

Generated by  Doxygen 1.6.0   Back to index