60 #ifndef PathFindMgr_hpp 61 #define PathFindMgr_hpp 129 pathfind(
const char* pathList,
const char* name,
const char* mode);
144 dump(std::ostream& os,
uint flags = 0,
const char* pfx =
"")
const;
196 find(std::string& filePath);
206 insert(
const std::string& path);
234 scan(std::string& path, std::set<std::string>& seenPaths,
235 std::vector<std::string>* recursionStack =
NULL);
256 pathfind_slow(
const char* pathList,
const char* name,
const char* mode,
257 std::set<std::string>& seenPaths);
275 typedef std::map<std::string, std::vector<std::string> >
PathMap;
bool find(std::string &filePath)
static int isRecursivePath(const char *path)
static PathFindMgr & singleton()
std::string toString(uint flags=0) const
const char * pathfind(const char *pathList, const char *name, const char *mode)
std::string scan(std::string &path, std::set< std::string > &seenPaths, std::vector< std::string > *recursionStack=NULL)
std::string m_pathfind_ans
std::map< std::string, std::vector< std::string > > PathMap
int resolve(std::string &path)
void ddump(uint flags=0) const
static const int RecursivePathSfxLn
static const uint64_t s_sizeMax
const char * pathfind_slow(const char *pathList, const char *name, const char *mode, std::set< std::string > &seenPaths)
std::ostream & dump(std::ostream &os, uint flags=0, const char *pfx="") const
void insert(const std::string &path)