xtd 0.2.0
Loading...
Searching...
No Matches
source_location.h
Go to the documentation of this file.
1
4#pragma once
5#define __XTD_CORE_INTERNAL__
7#undef __XTD_CORE_INTERNAL__
8#include "object.h"
9#include "ptr.h"
10#include "size.h"
12namespace xtd {
31 public:
33
38
41 source_location(const source_location& other);
42 source_location& operator =(source_location&& other);
43 source_location& operator =(const source_location& other);
45
47
52 xtd::size column() const noexcept;
56 const xtd::string& file_name() const noexcept;
59 const xtd::string& function_name() const noexcept;
63 xtd::size line() const noexcept;
65
67
69 xtd::string to_string() const noexcept override;
71
73
82 static source_location current(const __xtd_source_location__& value = __xtd_source_location__::current()) noexcept;
84
85 private:
86 source_location(const xtd::string& file, xtd::size line, const xtd::string& func, xtd::size column);
87 struct data;
88 xtd::ptr<data> data_;
89 };
90}
Contains __xtd_debugbreak definition.
Represents a delegate, which is a data structure that refers to a static method or to a class instanc...
Definition delegate.h:370
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
xtd::size column() const noexcept
Gets the column number represented by this object.
source_location()
Initializes a new instance of the xtd::source_location class.
#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
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::object class.
Contains xtd::ptr type.
Contains xtd::drawing::size class.