shithub: aacenc

ref: 1368f4dad39f86ee1183d8d6227eb04e9ac1dd2d
dir: /wingui/FileMaskAssembler.cpp/

View raw version
// FileMaskAssembler.cpp: implementation of the CFileMaskAssembler class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "faac_wingui.h"
#include "FileMaskAssembler.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CFileMaskAssembler::CFileMaskAssembler()
{

}

CFileMaskAssembler::~CFileMaskAssembler()
{

}

CString CFileMaskAssembler::GetFileMask(TItemList<int> &oFilterStringEntries)
{
	// assemble the filter string
	CString oFilter;
	long lCurIndex=1;
	int iCurItem;
	while (oFilterStringEntries.GetElemContent(lCurIndex++, iCurItem))
	{
		// accept aac files
		CString oBuf;
		oBuf.LoadString(iCurItem);
		oFilter+=oBuf+"|";
	}
	oFilter+="||";
	return oFilter;
}