#include "stdafx.h" #include "common.h" CFileInfo::CFileInfo( const std::string &filepath, HTREEITEM hTreeItem ) : filepath( filepath ) , m_hTreeItem( hTreeItem ) { } void CFileInfo::GetFullPath(char *buffer){ lstrcpy(buffer,this->GetPath().c_str()); lstrcpy( buffer, projectInfo.GetWorkDir().GetFullPath( buffer ).c_str() ); } CDBFileInfo::CDBFileInfo(){ iNum=0; ppobj_FileInfo=(CFileInfo **)HeapAlloc(hHeap,0,1); } CDBFileInfo::~CDBFileInfo(){ int i; for(i=0;im_hTreeItem==hTreeItem) break; } if(i==iNum) return; delete ppobj_FileInfo[i]; iNum--; for(;im_hTreeItem==hTreeItem) { return ppobj_FileInfo[i]->GetPath(); } } _ASSERTE( false ); throw; } BOOL CDBFileInfo::IsMainFile(HTREEITEM hTreeItem){ int i; for(i=0;im_hTreeItem==hTreeItem) break; } if(i==0) return 1; return 0; } BOOL CDBFileInfo::dupli_check(char *path){ //重複チェック int i; for(i=0;iGetPath().c_str(),path)==0){ return 1; } } return 0; }