xtd 0.2.0
Loading...
Searching...
No Matches
source_location.hpp
Go to the documentation of this file.
1
4#pragma once
5#define __XTD_CORE_INTERNAL__
6#include "../internal/__xtd_source_location.hpp"
7#undef __XTD_CORE_INTERNAL__
8#include "../object.hpp"
9#include "../ptr.hpp"
10#include "../size.hpp"
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}
Represents a delegate, which is a data structure that refers to a static method or to a class instanc...
Definition delegate.hpp:370
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:42
The xtd::source_location class represents certain information about the source code,...
Definition source_location.hpp: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.hpp:13
xtd::sptr< type_t > ptr
The xtd::ptr object is a shared pointer.
Definition ptr.hpp:27
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10