9#include "../core_export.h"
10#include "../iequatable.h"
14#define __XTD_CORE_INTERNAL__
15#include "../internal/__string_definitions.h"
16#undef __XTD_CORE_INTERNAL__
22 namespace diagnostics {
120 static constexpr
xtd::
size OFFSET_UNKNOWN = std::numeric_limits<
xtd::
size>::max();
126 using
object::equals;
147 virtual
xtd::
size get_file_column_number() const noexcept;
164 virtual
xtd::
size get_file_line_number() const noexcept;
181 virtual const
xtd::
string& get_file_name() const noexcept;
198 virtual const
xtd::
string& get_method() const noexcept;
215 virtual
xtd::
size get_native_offset() const noexcept;
232 virtual
xtd::
size get_offset() const noexcept;
236 xtd::
string to_string() const noexcept override;
256 static std::vector<
stack_frame> get_stack_frames(const
xtd::
string& str,
xtd::
size skip_frames,
bool need_file_info) noexcept;
Represents text as a sequence of character units.
Definition basic_string.h:79
Provides information about a xtd::diagnostics::stack_frame, which represents a function call on the c...
Definition stack_frame.h:47
stack_frame(const xtd::string &file_name, xtd::size line_number)
Initializes a new instance of the xtd::diagnostics::stack_frame class that contains only the given fi...
stack_frame()
Initializes a new instance of the xtd::diagnostics::stack_frame class.
stack_frame(xtd::size skip_frame)
Initializes a new instance of the xtd::diagnostics::stack_frame class that corresponds to a frame abo...
stack_frame(const xtd::string &file_name, xtd::size line_number, const xtd::string &method_name)
Initializes a new instance of the xtd::diagnostics::stack_frame class that contains only the given fi...
stack_frame(xtd::null_ptr frame)
Initializes a new empty instance of the xtd::diagnostics::stack_frame.
static stack_frame empty() noexcept
Return an empty stack frame.
stack_frame(xtd::size skip_frame, bool need_file_info)
Initializes a new instance of the xtd::diagnostics::stack_frame class that corresponds to a frame abo...
stack_frame(const xtd::string &file_name, xtd::size line_number, xtd::size column_number)
Initializes a new instance of the xtd::diagnostics::stack_frame class that contains only the given fi...
stack_frame(const xtd::source_location &source_location, xtd::size offset)
Initializes a new instance of the xtd::diagnostics::stack_frame class that contains only the given gi...
stack_frame(bool need_file_info)
Initializes a new instance of the xtd::diagnostics::stack_frame class, optionally capturing source in...
stack_frame(const xtd::string &file_name, xtd::size line_number, const xtd::string &method_name, xtd::size column_number, xtd::size offset)
Initializes a new instance of the xtd::diagnostics::stack_frame class that contains only the given fi...
stack_frame(const xtd::string &file_name, xtd::size line_number, const xtd::string &method_name, xtd::size column_number)
Initializes a new instance of the xtd::diagnostics::stack_frame class that contains only the given fi...
stack_frame(const xtd::source_location &source_location)
Initializes a new instance of the xtd::diagnostics::stack_frame class that contains only the given so...
Represents a stack trace, which is an ordered collection of one or more stack frames.
Definition stack_trace.h:40
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.h:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:42
The xtd::source_location class represents certain information about the source code,...
Definition source_location.h:30
#define core_export_
Define shared library export.
Definition core_export.h:13
xtd::sptr< type_t > ptr
The xtd::ptr object is a shared pointer.
Definition ptr.h:27
size_t size
Represents a size of any object in bytes.
Definition size.h:23
std::nullptr_t null_ptr
Represents the null_opt alias on std::nullptr_t.
Definition null_ptr.h:19
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::source_location method.