10#include <boost/python/class.hpp>
11#include <boost/python/def.hpp>
12#include <boost/python/list.hpp>
13#include <boost/python/register_ptr_to_python.hpp>
23 boost::python::list sessions;
24 const auto vecSessions = self.getActiveSessions();
25 for (
const auto &vecSession : vecSessions) {
26 sessions.append(vecSession);
32 register_ptr_to_python<CatalogManagerImpl *>();
34 class_<CatalogManagerImpl, boost::noncopyable>(
"CatalogManagerImpl", no_init)
38 "Returns a reference to the CatalogManger singleton")
39 .staticmethod(
"Instance");
#define GET_POINTER_SPECIALIZATION(TYPE)
boost::python::list getActiveSessionsAsList(CatalogManagerImpl &self)
void export_CatalogManager()
This class is a singleton and is responsible for creating, destroying, and managing catalogs.
size_t numberActiveSessions() const
Returns the number of active sessions.
static T & Instance()
Return a reference to the Singleton instance, creating it if it does not already exist Creation is do...