Commit e84385e6 authored by David Thompson's avatar David Thompson
Browse files

WIP: Debug printouts.

parent c1789c77
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include "smtk/extension/paraview/appcomponents/smtkPQComponentsExtModule.h" #include "smtk/extension/paraview/appcomponents/smtkPQComponentsExtModule.h"
#include "smtk/common/Managers.h" #include "smtk/common/Managers.h"
#include "smtk/geometry/Manager.h"
#include "smtk/resource/query/Manager.h" #include "smtk/resource/query/Manager.h"
#include "smtk/view/Manager.h" #include "smtk/view/Manager.h"
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include "smtk/operation/Manager.h" #include "smtk/operation/Manager.h"
#include "smtk/operation/Registrar.h" #include "smtk/operation/Registrar.h"
#include "smtk/resource/Manager.h" #include "smtk/resource/Manager.h"
#include "smtk/view/Manager.h"
namespace smtk namespace smtk
{ {
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include "smtk/operation/Manager.h" #include "smtk/operation/Manager.h"
#include "smtk/operation/Registrar.h" #include "smtk/operation/Registrar.h"
#include "smtk/resource/Manager.h" #include "smtk/resource/Manager.h"
#include "smtk/view/Manager.h"
namespace smtk namespace smtk
{ {
......
...@@ -22,6 +22,9 @@ ...@@ -22,6 +22,9 @@
#include "smtk/plugin/Sentinel.h" #include "smtk/plugin/Sentinel.h"
#endif #endif
#include "smtk/common/TypeName.h"
#include <iostream>
namespace smtk namespace smtk
{ {
namespace plugin namespace plugin
...@@ -184,6 +187,10 @@ bool Client<Registrar, Manager>::registerPluginTo(const std::shared_ptr<Manager> ...@@ -184,6 +187,10 @@ bool Client<Registrar, Manager>::registerPluginTo(const std::shared_ptr<Manager>
{ {
auto val = ClientFor<Manager>::m_registries.insert( auto val = ClientFor<Manager>::m_registries.insert(
new smtk::plugin::Registry<Registrar, Manager>(manager)); new smtk::plugin::Registry<Registrar, Manager>(manager));
std::cout
<< "Register " << smtk::common::typeName<Registrar>()
<< " to " << smtk::common::typeName<Manager>()
<< " " << manager << "\n";
return val.second; return val.second;
} }
return false; return false;
......
...@@ -15,6 +15,9 @@ ...@@ -15,6 +15,9 @@
#include "smtk/plugin/ClientBase.h" #include "smtk/plugin/ClientBase.h"
#include "smtk/plugin/Manager.h" #include "smtk/plugin/Manager.h"
#include "smtk/common/TypeName.h"
#include <iostream>
namespace smtk namespace smtk
{ {
namespace plugin namespace plugin
...@@ -24,6 +27,9 @@ std::shared_ptr<ClientBase> Client<Registrar_t, Manager_t, T...>::create() ...@@ -24,6 +27,9 @@ std::shared_ptr<ClientBase> Client<Registrar_t, Manager_t, T...>::create()
{ {
std::shared_ptr<Client<Registrar_t, Manager_t, T...>> shared( std::shared_ptr<Client<Registrar_t, Manager_t, T...>> shared(
new Client<Registrar_t, Manager_t, T...>); new Client<Registrar_t, Manager_t, T...>);
std::cout
<< "Create client for registrar " << smtk::common::typeName<Registrar_t>()
<< " manager " << smtk::common::typeName<Manager_t>() << "\n";
smtk::plugin::Manager::instance()->addClient( smtk::plugin::Manager::instance()->addClient(
std::static_pointer_cast<ClientBase>(shared->ClientBase::shared_from_this())); std::static_pointer_cast<ClientBase>(shared->ClientBase::shared_from_this()));
return std::static_pointer_cast<ClientBase>(shared); return std::static_pointer_cast<ClientBase>(shared);
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include "smtk/operation/Manager.h" #include "smtk/operation/Manager.h"
#include "smtk/operation/Registrar.h" #include "smtk/operation/Registrar.h"
#include "smtk/resource/Manager.h" #include "smtk/resource/Manager.h"
#include "smtk/view/Manager.h"
namespace smtk namespace smtk
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment