-bool Config_ModuleReader::isAvaliableOnThisPlatform(const std::string& thePluginPlatform)
-{
- bool result = true;
- PluginPlatform aPlatform = All;
- std::string aPlatformName = normalize(thePluginPlatform) ;
- if (aPlatformName == PLUGIN_PLATFORM_SALOME) {
- aPlatform = Salome;
- } else if (aPlatformName == PLUGIN_PLATFORM_NEWGEOM) {
- aPlatform = OpenParts;
- } else if (!thePluginPlatform.empty()) {
- Events_Error::send("Unknown platform: " + thePluginPlatform);
- }
- if (aPlatform == All) {
- result = true;
- } else if (myHaveSalome) {
- result = aPlatform == Salome;
- } else {
- result = aPlatform == OpenParts;
- }
- return result;
-
-}
-
-void Config_ModuleReader::loadScript(const std::string theFileName)