CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
stack_frame.h
1
2#ifndef _aspose_system_diagnostics_stack_frame_h_
3#define _aspose_system_diagnostics_stack_frame_h_
4
5#include <system/object.h>
6#include <system/shared_ptr.h>
7#include <system/string.h>
8
9//fw
10namespace System {
11class String;
12
13namespace Reflection {
14 class MethodBase;
15}
16}
17
18namespace System { namespace Diagnostics {
19
20namespace _StackFrame_private {
22 class Pimpl;
23}
24
25namespace _StackTrace_private {
27 class Pimpl;
28}
29
35class ASPOSECPP_SHARED_CLASS StackFrame : public System::Object
36{
37 friend class _StackTrace_private::Pimpl;
38
39public:
42 ASPOSECPP_SHARED_API StackFrame(int skip_frames);
43
45 StackFrame(const StackFrame&) = delete;
47 const StackFrame& operator=(const StackFrame&) const = delete;
49 virtual ASPOSECPP_SHARED_API ~StackFrame();
55 virtual ASPOSECPP_SHARED_API System::String GetFileName();
58 virtual ASPOSECPP_SHARED_API int GetFileLineNumber();
61 virtual ASPOSECPP_SHARED_API int GetFileColumnNumber();
62private:
65 ASPOSECPP_SHARED_API StackFrame(const System::String &name);
66 MEMBER_FUNCTION_MAKE_OBJECT(StackFrame, CODEPORTING_ARGS(const System::String &name), CODEPORTING_ARGS(name));
68 _StackFrame_private::Pimpl *m_pimpl;
69};
70
71}}
72
73#endif
Gets information on single stack frame. MSVS only. Objects of this class should only be allocated usi...
Definition: stack_frame.h:36
const StackFrame & operator=(const StackFrame &) const =delete
No changing.
virtual int GetFileLineNumber()
Gets the line number.
virtual int GetFileColumnNumber()
Gets the colnum number.
StackFrame(const StackFrame &)=delete
No copying.
System::SharedPtr< System::Reflection::MethodBase > GetMethod()
Gets method information.
virtual ~StackFrame()
Destructor.
StackFrame(int skip_frames)
Creates stack frame on current stack offset.
virtual System::String GetFileName()
Gets the file name.
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Base information on method. Objects of this class should only be allocated using System::MakeObject()...
Definition: method_base.h:19
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
Definition: db_command.h:9