get_SubFolderIDs Method

WRAPPER_API std::list<long> get_SubFolderIDs()

 

Description

Retrieves a list of all sub-folder ids.

 

Example

void DisplayFolder_Sample()

{

const GEOCALCPBW_NAMESPACE::DisplayFolder* pcsFolder = m_DataSource->get_DefaultView().GetFolder(

m_DataView->DataView::GetFolderIDByObjectType(GEOCALCPBW_NAMESPACE::GeoBase::ProjectedCoordSysType));

 

if (pcsFolder->HasSubFolders())

{

vector<long> subFolders = pcsFolder->get_SubFolderIDs();

}

 

if (pcsFolder->HasChildObjects())

{

vector<DisplayObject*> childObjects = pcsFolder->get_AllChildObjects();

}

}