Bladeren bron

Added a getter for the ModuleManager validation mode.

Sascha Zelzer 12 jaren geleden
bovenliggende
commit
7bfbbf5feb

+ 6 - 0
Libs/CommandLineModules/Core/ctkCmdLineModuleManager.cpp

@@ -96,6 +96,12 @@ ctkCmdLineModuleManager::~ctkCmdLineModuleManager()
 }
 
 //----------------------------------------------------------------------------
+ctkCmdLineModuleManager::ValidationMode ctkCmdLineModuleManager::validationMode() const
+{
+  return d->ValidationMode;
+}
+
+//----------------------------------------------------------------------------
 void ctkCmdLineModuleManager::registerBackend(ctkCmdLineModuleBackend *backend)
 {
   QMutexLocker lock(&d->Mutex);

+ 6 - 0
Libs/CommandLineModules/Core/ctkCmdLineModuleManager.h

@@ -100,6 +100,12 @@ public:
   ~ctkCmdLineModuleManager();
 
   /**
+   * @brief Get the validation mode.
+   * @return The validation mode.
+   */
+  ValidationMode validationMode() const;
+
+  /**
    * @brief Registers a new back-end.
    * @param backend The new back-end.
    * @throws ctkInvalidArgumentException if another back-end was already registered handling