www.pudn.com > ManualCameraCalibrationSourceCode_v1.0.rar > KBasicStructures.cpp


// KBasicStructures.cpp: implementation of the KBasicStructures class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#include "stdafx.h" 
#include "ZhangImplementation_1.h" 
#include "KBasicStructures.h" 
 
#ifdef _DEBUG 
#undef THIS_FILE 
static char THIS_FILE[]=__FILE__; 
#define new DEBUG_NEW 
#endif 
 
////////////////////////////////////////////////////////////////////// 
// Construction/Destruction 
////////////////////////////////////////////////////////////////////// 
 
KBasicStructures::KBasicStructures() 
{ 
 
} 
 
KBasicStructures::~KBasicStructures() 
{ 
 
} 
 
void KBasicStructures::FileProp::GenerateFileProps() 
{ 
 
	CString temp;  
 
 
	int t,e,size; 
	 
	size = path.GetLength(); 
	e	 = path.ReverseFind('.'); 
	extension = path.Right(size-e-1); 
 
	t    = path.ReverseFind('\\'); 
	name = path.Right(size-t-1); 
	 
	size = name.GetLength(); 
	e    = name.ReverseFind('.'); 
	title= name.Left(e); 
 
	folderPath = path.Left(t); 
		 
 
} 
 
KBasicStructures::FileProp::FileProp() 
{ 
}