Class FSIndexer

Synopsis

#include <include/fsindexer.hpp>

class FSIndexer

Description

No description yet.

Methods

indexDirectory
indexPaths
indexPathsMap

Source

Lines 34-54 in include/fsindexer.hpp.

class FSIndexer {
    public:
        static vector< FSItem > indexDirectory( const wstring& in_dir,
                                                const wstring& filter = L"",
                                                bool recursive = true );
        static vector< FSItem > indexPaths( const vector< wstring >& in_paths, bool ignore_dirs = false );
        static vector< FSItem > indexPathsMap( const map< wstring, wstring >& in_paths,
                                               bool ignore_dirs = false );
    private:
        FSItem mDirItem;
        wstring mFilter;
        explicit FSIndexer( const FSItem& directory, const wstring& filter = L"" );
        void listDirectoryItems( vector< FSItem >& result, bool recursive, const wstring& prefix = L"" );
        static void indexItem( const FSItem& item, bool ignore_dirs, vector< FSItem >& result );
};





Add Discussion as Guest

Log in