#else
(long)getpid();
#endif
- cout << "$$$ GEOM_Client::GEOM_Client() pid_client = " << pid_client << endl;
}
//=======================================================================
GEOM_Client::GEOM_Client(Engines::Container_ptr client)
{
pid_client = client->getPID();
- cout << "$$$ GEOM_Client::GEOM_Client(client) pid_client = " << pid_client << endl;
}
//=======================================================================
//=======================================================================
Standard_Integer GEOM_Client::Find( const TCollection_AsciiString& IOR, TopoDS_Shape& S )
{
- cout << "$$$ GEOM_Client::Find BEGIN this = " << this << ", _myIndexes.size() = " << _myIndexes.size() << endl;
if (_myIndexes.count(IOR) != 0)
{
Standard_Integer i = _myIndexes[IOR];
S = myShapes.Value(i);
- cout << "$$$ GEOM_Client::Find i = " << i << endl;
return i;
}
- cout << "$$$ GEOM_Client::Find END" << endl;
return 0;
}
myIORs.Append(IOR);
myShapes.Append(S);
_myIndexes[IOR] = myIORs.Length();
- cout << "$$$ !!! GEOM_Client::Bind this = " << this << ", _myIndexes.size() = " << _myIndexes.size() << endl;
- cout << "$$$ !!! GEOM_Client::Bind len = " << myIORs.Length() << ", IOR = " << IOR.ToCString() << endl;
}
//=======================================================================
//=======================================================================
void GEOM_Client::RemoveShapeFromBuffer( const TCollection_AsciiString& IOR)
{
- cout << "$$$ GEOM_Client::RemoveShapeFromBuffer BEGIN" << endl;
- cout << "$$$ GEOM_Client::RemoveShapeFromBuffer myIORs.Length() = " << myIORs.Length() << ", _myIndexes.size() = " << _myIndexes.size() << endl;
if( myIORs.IsEmpty() )
return;
- cout << "$$$ GEOM_Client::RemoveShapeFromBuffer 1" << endl;
TopoDS_Shape S;
Standard_Integer anIndex = Find( IOR, S );
if( anIndex != 0 ) {
- cout << "$$$ GEOM_Client::RemoveShapeFromBuffer anIndex = " << anIndex << endl;
myIORs.Remove(anIndex);
myShapes.Remove(anIndex);
_myIndexes.erase(IOR);
_mySubShapes.erase(IOR);
}
- cout << "$$$ GEOM_Client::RemoveShapeFromBuffer END" << endl;
}
//=======================================================================