{
}
-QString SalomeApp_Module::engineIOR() const
-{
- // Return an empty string by default, to avoid any "default behavior".
- // It means that SALOMEDS persistence is not used by a module by default.
- // Each module can override this method to return either its actual engine's IOR,
- // or simple the result returned by SalomeApp_Application::defaultEngineIOR()
- return QString( "" );
-}
-
SalomeApp_Application* SalomeApp_Module::getApp() const
{
return (SalomeApp_Application*)application();
virtual void initialize( CAM_Application* );
virtual void windows( QMap<int, int>& ) const;
virtual void viewManagers( QStringList& ) const;
- virtual QString engineIOR() const;
+
+ // engineIOR() should be a pure virtual method, to avoid logical errors!
+ //
+ // Implementation in derived classes can return the following values:
+ // "" (empty string) - means that this is a light module, default engine should be used for interaction with SALOMEDS persistence
+ // "-1" - means that this is a light module, SALOMEDS persistence is not used at all
+ // module`s engine IOR - means that this is a standard SALOME module with a CORBA engine
+ //
+ virtual QString engineIOR() const = 0;
virtual void contextMenuPopup( const QString&, QPopupMenu*, QString& );