00001 #include "stdafx.h" 00002 00003 #include "RootFolder.h" 00004 #include "Any.h" 00005 00006 #include "algorithm" 00007 00008 extern int ind; 00009 00010 void RootFolder::addRootElement( FCO * ptr) 00011 { 00012 m_fcoList.push_back( ptr); 00013 } 00014 00015 00016 bool RootFolder::isInRoot( FCO * ptr) const 00017 { 00018 FCO_ConstIterator fco_it = std::find( m_fcoList.begin(), m_fcoList.end(), ptr); 00019 return fco_it != m_fcoList.end(); 00020 } 00021 00022 00023 void RootFolder::addSubFolder( FolderRep *ptr) 00024 { 00025 m_subFolderList.push_back( ptr); 00026 } 00027 00028