Code::Blocks  SVN r11506
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
GDBWatch Class Reference

#include <debugger_defs.h>

Inheritance diagram for GDBWatch:
Collaboration diagram for GDBWatch:

Public Member Functions

 GDBWatch (wxString const &symbol)
 
virtual ~GDBWatch ()
 
virtual void GetSymbol (wxString &symbol) const
 
virtual void GetValue (wxString &value) const
 
virtual bool SetValue (const wxString &value)
 
virtual void GetFullWatchString (wxString &full_watch) const
 
virtual void GetType (wxString &type) const
 
virtual void SetType (const wxString &type)
 
virtual wxString const & GetDebugString () const
 
wxString MakeSymbolToAddress () const override
 This should return a string that when passed to the debugger will return the address of the variable. More...
 
bool IsPointerType () const override
 Tells us if the watch is for pointer variable. More...
 
void SetDebugValue (wxString const &value)
 
void SetSymbol (const wxString &symbol)
 
void SetFormat (WatchFormat format)
 
WatchFormat GetFormat () const
 
void SetArray (bool flag)
 
bool IsArray () const
 
void SetArrayParams (int start, int count)
 
int GetArrayStart () const
 
int GetArrayCount () const
 
void SetForTooltip (bool flag=true)
 
bool GetForTooltip () const
 
- Public Member Functions inherited from cbWatch
 cbWatch ()
 
void RemoveChild (int index)
 
void RemoveChildren ()
 
bool RemoveMarkedChildren ()
 
int GetChildCount () const
 
cb::shared_ptr< cbWatchGetChild (int index)
 
cb::shared_ptr< const cbWatchGetChild (int index) const
 
cb::shared_ptr< cbWatchFindChild (const wxString &name)
 
int FindChildIndex (const wxString &symbol) const
 
cb::shared_ptr< const cbWatchGetParent () const
 
cb::shared_ptr< cbWatchGetParent ()
 
bool IsRemoved () const
 
bool IsChanged () const
 
void MarkAsRemoved (bool flag)
 
void MarkChildsAsRemoved ()
 
void MarkAsChanged (bool flag)
 
void MarkAsChangedRecursive (bool flag)
 
bool IsExpanded () const
 
void Expand (bool expand)
 
bool IsAutoUpdateEnabled () const
 
void AutoUpdate (bool enabled)
 

Protected Member Functions

virtual void DoDestroy ()
 
- Protected Member Functions inherited from cbWatch
virtual ~cbWatch ()
 

Private Attributes

wxString m_symbol
 
wxString m_type
 
wxString m_raw_value
 
wxString m_debug_value
 
WatchFormat m_format
 
int m_array_start
 
int m_array_count
 
bool m_is_array
 
bool m_forTooltip
 

Additional Inherited Members

- Static Public Member Functions inherited from cbWatch
static void AddChild (cb::shared_ptr< cbWatch > parent, cb::shared_ptr< cbWatch > watch)
 

Detailed Description

Definition at line 212 of file debugger_defs.h.

Constructor & Destructor Documentation

◆ GDBWatch()

GDBWatch::GDBWatch ( wxString const &  symbol)

Definition at line 183 of file debugger_defs.cpp.

◆ ~GDBWatch()

GDBWatch::~GDBWatch ( )
virtual

Definition at line 192 of file debugger_defs.cpp.

Member Function Documentation

◆ DoDestroy()

void GDBWatch::DoDestroy ( )
protectedvirtual

Definition at line 258 of file debugger_defs.cpp.

◆ GetArrayCount()

int GDBWatch::GetArrayCount ( ) const

Definition at line 294 of file debugger_defs.cpp.

References m_array_count.

◆ GetArrayStart()

int GDBWatch::GetArrayStart ( ) const

Definition at line 289 of file debugger_defs.cpp.

References m_array_start.

◆ GetDebugString()

wxString const & GDBWatch::GetDebugString ( ) const
virtual

Implements cbWatch.

Definition at line 233 of file debugger_defs.cpp.

References m_debug_value.

◆ GetFormat()

WatchFormat GDBWatch::GetFormat ( ) const

Definition at line 268 of file debugger_defs.cpp.

References m_format.

◆ GetForTooltip()

bool GDBWatch::GetForTooltip ( ) const

Definition at line 304 of file debugger_defs.cpp.

References m_forTooltip.

◆ GetFullWatchString()

void GDBWatch::GetFullWatchString ( wxString full_watch) const
virtual

Implements cbWatch.

Definition at line 212 of file debugger_defs.cpp.

References cbWatch::GetParent(), m_symbol, and wxT.

◆ GetSymbol()

void GDBWatch::GetSymbol ( wxString symbol) const
virtual

Implements cbWatch.

Definition at line 195 of file debugger_defs.cpp.

References m_symbol.

◆ GetType()

void GDBWatch::GetType ( wxString type) const
virtual

Implements cbWatch.

Definition at line 224 of file debugger_defs.cpp.

References m_type.

◆ GetValue()

void GDBWatch::GetValue ( wxString value) const
virtual

Implements cbWatch.

Definition at line 199 of file debugger_defs.cpp.

References m_raw_value.

◆ IsArray()

bool GDBWatch::IsArray ( ) const

Definition at line 278 of file debugger_defs.cpp.

References m_is_array.

◆ IsPointerType()

bool GDBWatch::IsPointerType ( ) const
overridevirtual

Tells us if the watch is for pointer variable.

Reimplemented from cbWatch.

Definition at line 243 of file debugger_defs.cpp.

References IsPointerType(), and m_type.

◆ MakeSymbolToAddress()

wxString GDBWatch::MakeSymbolToAddress ( ) const
overridevirtual

This should return a string that when passed to the debugger will return the address of the variable.

For example for C/C++ languages for myVar this function will return &myVar.

Reimplemented from cbWatch.

Definition at line 238 of file debugger_defs.cpp.

References m_symbol, and wxT.

◆ SetArray()

void GDBWatch::SetArray ( bool  flag)

Definition at line 273 of file debugger_defs.cpp.

References m_is_array.

◆ SetArrayParams()

void GDBWatch::SetArrayParams ( int  start,
int  count 
)

Definition at line 283 of file debugger_defs.cpp.

References m_array_count, and m_array_start.

◆ SetDebugValue()

void GDBWatch::SetDebugValue ( wxString const &  value)

Definition at line 248 of file debugger_defs.cpp.

References m_debug_value.

◆ SetFormat()

void GDBWatch::SetFormat ( WatchFormat  format)

Definition at line 263 of file debugger_defs.cpp.

References m_format.

◆ SetForTooltip()

void GDBWatch::SetForTooltip ( bool  flag = true)

Definition at line 299 of file debugger_defs.cpp.

References m_forTooltip.

◆ SetSymbol()

void GDBWatch::SetSymbol ( const wxString symbol)

Definition at line 253 of file debugger_defs.cpp.

References m_symbol.

◆ SetType()

void GDBWatch::SetType ( const wxString type)
virtual

Implements cbWatch.

Definition at line 228 of file debugger_defs.cpp.

References m_type.

◆ SetValue()

bool GDBWatch::SetValue ( const wxString value)
virtual

Implements cbWatch.

Definition at line 203 of file debugger_defs.cpp.

References m_raw_value, and cbWatch::MarkAsChanged().

Referenced by SUITE().

Member Data Documentation

◆ m_array_count

int GDBWatch::m_array_count
private

Definition at line 256 of file debugger_defs.h.

Referenced by GetArrayCount(), and SetArrayParams().

◆ m_array_start

int GDBWatch::m_array_start
private

Definition at line 255 of file debugger_defs.h.

Referenced by GetArrayStart(), and SetArrayParams().

◆ m_debug_value

wxString GDBWatch::m_debug_value
private

Definition at line 253 of file debugger_defs.h.

Referenced by GetDebugString(), and SetDebugValue().

◆ m_format

WatchFormat GDBWatch::m_format
private

Definition at line 254 of file debugger_defs.h.

Referenced by GetFormat(), and SetFormat().

◆ m_forTooltip

bool GDBWatch::m_forTooltip
private

Definition at line 258 of file debugger_defs.h.

Referenced by GetForTooltip(), and SetForTooltip().

◆ m_is_array

bool GDBWatch::m_is_array
private

Definition at line 257 of file debugger_defs.h.

Referenced by IsArray(), and SetArray().

◆ m_raw_value

wxString GDBWatch::m_raw_value
private

Definition at line 252 of file debugger_defs.h.

Referenced by GetValue(), and SetValue().

◆ m_symbol

wxString GDBWatch::m_symbol
private

Definition at line 250 of file debugger_defs.h.

Referenced by GetFullWatchString(), GetSymbol(), MakeSymbolToAddress(), and SetSymbol().

◆ m_type

wxString GDBWatch::m_type
private

Definition at line 251 of file debugger_defs.h.

Referenced by GetType(), IsPointerType(), and SetType().


The documentation for this class was generated from the following files: