void SALOME_Fake_NamingService::Destroy_Name(const char* Path)
{
+ std::lock_guard<std::mutex> g(_mutex);
+ std::string pathCpp(Path);
+ auto it = _map.find(pathCpp);
+ if(it!=_map.end())
+ _map.erase(it);
}
void SALOME_Fake_NamingService::Destroy_Directory(const char* Path)
bool SALOME_Fake_NamingService::Change_Directory(const char* Path)
{
+ std::lock_guard<std::mutex> g(_mutex);
_current_dir = Path;
return true;
}
std::vector<std::string> SALOME_Fake_NamingService::list_directory()
{
+ std::lock_guard<std::mutex> g(_mutex);
std::vector<std::string> ret;
std::vector<std::string> splitCWD(SplitDir(_current_dir));
auto len = _current_dir.length();