FBB::Glob(3bobcat)

Files matching a pattern
(libbobcat-dev_4.08.03-x.tar.gz)

2005-2018

NAME

FBB::Glob - Wrapper around glob(3) to find files matching a pattern

SYNOPSIS

#include <bobcat/glob>
Linking option: -lbobcat

DESCRIPTION

The FBB::Glob class is a wrapper around the C function glob(3). It returns a list of files matching a certain pattern provided to FBB::Glob's constructors or members.

NAMESPACE

FBB
All constructors, members, operators and manipulators, mentioned in this man-page, are defined in the namespace FBB.

INHERITS FROM

-

ENUMERATIONS

Glob::Type:
This enumeration, which is identical to the stat(3bobcat) Type enumeration, defines the following values:

Glob::Flags:

Glob::Dots:

CONSTRUCTORS

Glob provides copy and move constructors.

OVERLOADED OPERATORS

MEMBER FUNCTIONS

EXAMPLES


    int main(int argc, char **argv)
    {
        if (argc == 1)
        {
            cout << "Provide glob-expression as 1st arg\n";
            return 1;
        }
    
        cout << "General:\n";
    
        Glob general;
    
        for (size_t idx = 0; idx < general.size(); idx++)
            cout << idx << ": " << general[idx] << endl;
    
        cout << "Pattern: " << argv[1] << "\n";
    
        Glob pattern(argv[1], Glob::PERIOD, Glob::DEFAULT);
    
        for (size_t idx = 0; idx < pattern.size(); idx++)
            cout << idx << ": " << pattern[idx] << endl;
    
        return 0;
    }
        

FILES

bobcat/glob - defines the class interface

SEE ALSO

bobcat(7), stat(3bobcat), glob(3)

BUGS

No Reported Bugs.

DISTRIBUTION FILES

BOBCAT

Bobcat is an acronym of `Brokken's Own Base Classes And Templates'.

COPYRIGHT

This is free software, distributed under the terms of the GNU General Public License (GPL).

AUTHOR

Frank B. Brokken (f.b.brokken@rug.nl).