]>
git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gprofng/src/DbeFile.h
1 /* Copyright (C) 2021-2024 Free Software Foundation, Inc.
4 This file is part of GNU Binutils.
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3, or (at your option)
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, 51 Franklin Street - Fifth Floor, Boston,
19 MA 02110-1301, USA. */
28 template <class ITEM
> class Vector
;
52 DbeFile (const char *filename
);
67 char *get_location (bool find_needed
= true);
68 char *getResolvedPath ();
69 char *get_location_info ();
70 dbe_stat_t
*get_stat ();
71 bool compare (DbeFile
*df
);
72 void set_need_refind (bool val
);
73 void set_location (const char *filename
);
74 int check_access (const char *filename
);
75 char *find_file (const char *filename
);
76 DbeFile
*getJarDbeFile (char *fnm
, int sym
);
77 char *find_in_jar_file (const char *filename
, DbeJarFile
*jfile
);
78 DbeJarFile
*get_jar_file ();
85 Experiment
*experiment
;
88 static bool isJarOrZip (const char *fnm
);
89 char *find_package_name (const char *filename
, const char *dirname
);
90 char *find_in_directory (const char *filename
, const char *dirname
);
91 bool find_in_pathmap (char *filename
);
92 void find_in_archives (char *filename
);
93 void find_in_setpath (char *filename
, Vector
<char*> *searchPath
);
94 void find_in_classpath (char *filename
, Vector
<DbeFile
*> *classPath
);
103 #endif /* _DBE_FILE_H */