-// Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2010 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
+
#ifndef __RESOURCESMANAGER_HXX__
#define __RESOURCESMANAGER_HXX__
#include <unistd.h>
#endif
+#ifdef WNT
+#pragma warning(disable:4251) // Warning DLL Interface ...
+#pragma warning(disable:4290) // Warning Exception ...
+#endif
+
// --- WARNING ---
// The call of BuildTempFileToLaunchRemoteContainer and RmTmpFile must be done
// in a critical section to be sure to be clean.
GetFittingResources(const resourceParams& params) throw(ResourcesException);
std::string Find(const std::string& policy,
- const std::vector<std::string>& listOfResources);
+ const std::vector<std::string>& listOfResources);
- int AddResourceInCatalog (const resourceParams& paramsOfNewResources,
- const std::vector<std::string>& componentsOnNewResources,
- const char *userName,
- AccessModeType mode,
- AccessProtocolType prot,
- AccessProtocolType iprot) throw(ResourcesException);
+ void AddResourceInCatalog (const ParserResourcesType & new_resource) throw(ResourcesException);
void DeleteResourceInCatalog(const char * name);
- void WriteInXmlFile(std::string & xml_file);
+ void WriteInXmlFile(std::string xml_file);
const MapOfParserResourcesType& ParseXmlFiles();
void SelectOnlyResourcesWithOS(std::vector<std::string>& resources, std::string OS);
void KeepOnlyResourcesWithComponent(std::vector<std::string>& resources,
- const std::vector<std::string>& componentList);
+ const std::vector<std::string>& componentList);
//! will contain the path to the ressources catalog
std::list<std::string> _path_resources;