ProteoWizard
Public Member Functions | List of all members
Is_T2D_Directory Struct Reference
Inheritance diagram for Is_T2D_Directory:
pwiz::util::TestPathPredicate

Public Member Functions

bool operator() (const string &datapath) const
 returns true iff the given rawpath is a real path to test/generate More...
 
- Public Member Functions inherited from pwiz::util::TestPathPredicate
virtual ~TestPathPredicate ()
 

Detailed Description

Definition at line 29 of file Reader_ABI_T2D_Test.cpp.

Member Function Documentation

§ operator()()

bool Is_T2D_Directory::operator() ( const string &  rawpath) const
inlinevirtual

returns true iff the given rawpath is a real path to test/generate

Implements pwiz::util::TestPathPredicate.

Definition at line 31 of file Reader_ABI_T2D_Test.cpp.

References pwiz::util::expand_pathmask().

32  {
33  vector<bfs::path> t2d_filepaths;
34  pwiz::util::expand_pathmask(bfs::path(datapath) / "*.t2d", t2d_filepaths);
35  return !t2d_filepaths.empty();
36  }
PWIZ_API_DECL int expand_pathmask(const bfs::path &pathmask, vector< bfs::path > &matchingPaths)
expands (aka globs) a pathmask to zero or more matching paths and returns the number of matching path...

The documentation for this struct was generated from the following file: