AAO DRAMA/DRAMA2 C++ Interface
DRAMA C++11 and later interface

◆ FindFile()

std::string drama::FindFile ( const std::string &  spec,
bool  impdir = false 
)

Find a file using DulFindFile() specifications.


Throws a drama::Exception if the file cannot be found

Parameters
specThe file name specification. See DulFindFile() for details, but of particular interest, it allows you to specify a search path
impdirIf is true, then and we if a directory is found using the "<name>:" logical name translation format, then return in that format rather translated. This is useful if the name is to be used to load tasks via IMP (DRAMA) where the limit is 63 characters.
Returns
The full name of the first file which meets the specification.