Click here to Skip to main content
12,548,119 members (47,966 online)
Click here to Skip to main content

Tagged as


48 bookmarked

CEnum - File Enumeration and File Globbing Class

, 6 Dec 2008 CPOL
CEnum is used for enumeration of files and directories using wildcard matching (globbing)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>CEnum1: What CEnum is?</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
<!-- Generated by Doxygen -->
<script type="text/javascript">
function changeDisplayState (e){
  var button=this.firstChild;
  var sectionDiv=document.getElementById('dynsection'+num);
  if ('none'||''){'block';
function initDynSections(){
  var divs=document.getElementsByTagName('div');
  var sectionCounter=1;
  for(var i=0;i<divs.length-1;i++){
      var header=divs[i];
      var section=divs[i+1];
      var button=header.firstChild;
      if (button!='IMG'){
        divs[i].insertBefore(document.createTextNode(' '),divs[i].firstChild);
window.onload = initDynSections;
<div class="navigation" id="top">
  <div class="tabs">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
  <div class="navpath"><a class="el" href="index.html">A simple manual</a>
<div class="contents">
<h1><a class="anchor" name="intro1">What <a class="el" href="class_c_enum.html" title="CEnum - File Enumeration and File Globbing Class.">CEnum</a> is? </a></h1><a class="el" href="class_c_enum.html" title="CEnum - File Enumeration and File Globbing Class.">CEnum</a> is a file enumeration class.<br>
 It enumerates (i.e. makes a list of) files (and directories) based on file name. <br>
 It supports:<ul>
<li>the use of wild card characters * and ? (i.e. its a file globbing class too)</li><li>separate enumeration of files and subdirectories</li><li>separate include list, exclude list and ignore case option for both files and directories</li><li>recursive search (i.e. it can enumerate contest of subdirectories too)</li><li>enumeration either using file's full path or just file name</li><li>written in STL, but it optionally supports MFC collection classes</li><li>UNICODE aware (in MS world UNICODE stands for UTF-16 little-endian)</li><li>works as a wrapper around FindFirstFile and FindNextFile</li></ul>
Next section <a class="el" href="intro2.html">What CEnum isn't?</a> </div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Dec 3 12:45:12 2008 for CEnum1 by&nbsp;
<a href="">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> </small></address>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Croatia Croatia
Nothing to brag about.
Just another engineer who works as a software developer last couple of years.

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.161021.1 | Last Updated 6 Dec 2008
Article Copyright 2008 by Loreia
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid