Update CommandLine library to use the factory available in CTKCore #194

Open
jcfr opened this Issue Jul 12, 2012 · 1 comment

2 participants

@jcfr
CTK: The Common Toolkit member

@saschazelzer
It could probably make sens to leverage the mechanism allowing to discover and instantiate module that have been added to the core.
See https://github.com/Slicer/Slicer/blob/master/Base/QTCLI/qSlicerCLIExecutableModuleFactory.h to see how the ctkAbstractFileBasedFactory is used.

@pieper and @finetjul I guess that would be helpful to integrate it within Slicer ?

@saschazelzer saschazelzer was assigned Jul 15, 2012
@saschazelzer
CTK: The Common Toolkit member

I would definitely use the factory mechanism from the Core but I cannot yet see how to put it to good use. There is no default command line module discovery mechanism in the CTK implementation. Only a "directory watcher" is provided as a high-level convenience class which tries to register all executables from a given list of directories with the ctkCmdLineModuleManager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment