00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00018 #ifndef LIBCWD_CLASS_OBJECT_FILE_H
00019 #define LIBCWD_CLASS_OBJECT_FILE_H
00020
00021 #ifndef LIBCW_STRING
00022 #define LIBCW_STRING
00023 #include <string>
00024 #endif
00025
00026 namespace libcwd {
00027
00028
00029 #if CWDEBUG_ALLOC
00030 class ooam_filter_ct;
00031 #endif
00032 namespace cwbfd {
00033 class bfile_ct;
00034 }
00035
00043 class object_file_ct {
00044 private:
00045 char const* M_filepath;
00046 char const* M_filename;
00047 #if CWDEBUG_ALLOC
00048 friend class ooam_filter_ct;
00049 #endif
00050 bool M_hide;
00051 mutable bool M_no_debug_line_sections;
00052
00053 protected:
00054 friend class cwbfd::bfile_ct;
00055 object_file_ct(char const* filepath);
00056
00057 public:
00059 char const* filepath(void) const { return M_filepath; }
00061 char const* filename(void) const { return M_filename; }
00062
00063
00064 bool hide_from_alloc_list() const { return M_hide; }
00065 void set_has_no_debug_line_sections(void) const { M_no_debug_line_sections = true; }
00066 bool has_no_debug_line_sections(void) const { return M_no_debug_line_sections; }
00067 };
00068
00070
00071 }
00072
00073 #endif // LIBCWD_CLASS_OBJECT_FILE_H