XII Release 0.1.0
Loading...
Searching...
No Matches
xiiAddObjectCommand Class Reference

Copyright (c) Theophilus Eriata. All Rights Reserved. More...

#include <TreeCommands.h>

Inheritance diagram for xiiAddObjectCommand:
[legend]

Public Member Functions

void SetType (xiiStringView sType)
xiiStringView GetType () const
Public Member Functions inherited from xiiCommand
bool IsUndoable () const
bool HasChildActions () const
bool HasModifiedDocument () const
Public Member Functions inherited from xiiReflectedClass
virtual const xiiRTTI * GetDynamicRTTI () const
bool IsInstanceOf (const xiiRTTI *pType) const
 Returns whether the type of this instance is of the given type or derived from it.
template<typename T>
XII_ALWAYS_INLINE bool IsInstanceOf () const
 Returns whether the type of this instance is of the given type or derived from it.

Public Attributes

const xiiRTTI * m_pType = nullptr
xiiUuid m_Parent
xiiString m_sParentProperty
xiiVariant m_Index
xiiUuid m_NewObjectGuid
 This is optional. If not filled out, a new guid is assigned automatically.

Additional Inherited Members

Public Types inherited from xiiCommand
enum class  CommandState { WasDone , WasUndone }
Static Public Member Functions inherited from xiiNoBase
static const xiiRTTI * GetStaticRTTI ()
Protected Member Functions inherited from xiiCommand
xiiStatus Do (bool bRedo)
xiiStatus Undo (bool bFireEvents)
void Cleanup (CommandState state)
xiiStatus AddSubCommand (xiiCommand &command)
xiiDocument * GetDocument ()
Protected Attributes inherited from xiiCommand
xiiString m_sDescription
bool m_bUndoable = true
bool m_bModifiedDocument = true
xiiHybridArray< xiiCommand *, 8 > m_ChildActions
xiiDocument * m_pDocument = nullptr

Detailed Description

Copyright (c) Theophilus Eriata. All Rights Reserved.

Member Function Documentation

◆ CleanupInternal()

void xiiAddObjectCommand::CleanupInternal ( CommandState state)
overrideprivatevirtual

Implements xiiCommand.

◆ DoInternal()

xiiStatus xiiAddObjectCommand::DoInternal ( bool bRedo)
overrideprivatevirtual

Implements xiiCommand.

◆ HasReturnValues()

virtual bool xiiAddObjectCommand::HasReturnValues ( ) const
inlineoverrideprivatevirtual

Reimplemented from xiiCommand.

◆ UndoInternal()

xiiStatus xiiAddObjectCommand::UndoInternal ( bool bFireEvents)
overrideprivatevirtual

Implements xiiCommand.


The documentation for this class was generated from the following files:
  • /home/runner/work/XII/XII/Source/Tools/Libs/ToolsFoundation/Command/TreeCommands.h
  • /home/runner/work/XII/XII/Source/Tools/Libs/ToolsFoundation/Command/Implementation/TreeCommands.cpp