FindEquivalentObjects Method

WRAPPER_API void FindEquivalentObjects(const Serializable& obj, std::list<const Serializable*>& returnList) const;

Description

Searches the DataSource for all objects equivalent to the input Serializable object. Names and other string values are ignored, but parameter values are checked for near equivalence. A slight tolerance is built in to compensate for floating point and rounding errors.

 

Example

void DataSource_FindEquivalentObjects()

{

GeodeticCoordSys *wgs84Sys = m_DataSource->GetGeodeticCoordSys(BMG_T("BMG"), BMG_T("WGS84_coordinate_system"));

GeodeticCoordSys *newSys = (GeodeticCoordSys *)wgs84Sys->CloneCoordSys();

newSys->get_Identifiers().Clear();

std::list<const Serializable*> theList;

std::list<const Serializable*>::iterator iter;

m_DataSource->FindEquivalentObjects(*newSys,theList);

for(iter = theList.begin(); iter != theList.end();iter++)

{

wprintf(((GeodeticCoordSys*)(*iter))->get_Name();

}

 

}