7 #include "../iequatable.h" 9 #include "../ustring.h" 14 namespace diagnostics {
54 stack_frame(
size_t skip_frame,
bool need_file_info);
98 static constexpr
uint32 OFFSET_UNKNOWN = std::numeric_limits<uint32>::max();
104 bool equals(
const stack_frame& sf)
const noexcept
override;
121 virtual uint32 get_file_column_number() const noexcept;
138 virtual
uint32 get_file_line_number() const noexcept;
155 virtual const
xtd::
ustring& get_file_name() const noexcept;
172 virtual const
xtd::
ustring& get_method() const noexcept;
189 virtual
uint32 get_offset() const noexcept;
197 static std::vector<
stack_frame> get_stack_frames(const
xtd::
ustring& str,
size_t skip_frames,
bool need_file_info) noexcept;
200 uint32 file_line_number_ = 0;
202 uint32 file_column_number_ = 0;
203 uint32 offset_ = OFFSET_UNKNOWN;
208 #include "current_stack_frame.h" The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents a stack trace, which is an ordered collection of one or more stack frames.
Definition: stack_trace.h:39
Represents text as a sequence of UTF-8 code units.
Definition: ustring.h:46
std::string to_string(const date_time &value, const std::string &fmt, const std::locale &loc)
Convert a specified value into a string with specified format and locale.
Definition: date_time.h:1063
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition: stack_frame.h:37
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
uint_least32_t uint32
Represents a 32-bit unsigned integer.
Definition: types.h:239