SDFormat Editor
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CreateFileCommand Class Reference

Create file command implementation of CommandI. More...

#include <CreateFileCommand.h>

Inheritance diagram for CreateFileCommand:
Inheritance graph
Collaboration diagram for CreateFileCommand:
Collaboration graph

Public Member Functions

 CreateFileCommand (std::shared_ptr< GUII > gui, std::shared_ptr< SDFormatParserI > sdformatParser)
 Constructor for create fuke command objects.
 

Private Member Functions

bool Execute () override
 Implementation of interface method.
 
bool ExecuteUndo () override
 Implementation of interface method.
 
bool ExecuteRedo () override
 Implementation of interface method.
 
bool IsUndoable () override
 Implementation of interface method.
 
bool IsRedoable () override
 Implementation of interface method.
 
bool IsThreaded (bool &prevent_user_input) override
 Implementation of interface method.
 
bool ChangesProgramStateIrreversibly () override
 Implementation of interface method.
 

Private Attributes

std::shared_ptr< GUIIgui
 Pointer to the gui interface.
 
std::shared_ptr< SDFormatParserIsdformatParser
 Pointer to the sdformat parser interface.
 

Detailed Description

Create file command implementation of CommandI.

Constructor & Destructor Documentation

◆ CreateFileCommand()

CreateFileCommand::CreateFileCommand ( std::shared_ptr< GUII gui,
std::shared_ptr< SDFormatParserI sdformatParser 
)

Constructor for create fuke command objects.

Parameters
[in]guiPointer to the GUII object
[in]sdformatParserPointer to the SDFormatParserI object

Member Function Documentation

◆ ChangesProgramStateIrreversibly()

bool CreateFileCommand::ChangesProgramStateIrreversibly ( )
overrideprivatevirtual

Implementation of interface method.

Returns
Always true

Implements CommandI.

◆ Execute()

bool CreateFileCommand::Execute ( )
overrideprivatevirtual

Implementation of interface method.

Returns
True if the file has been successfully created in the specified directory

Implements CommandI.

◆ ExecuteRedo()

bool CreateFileCommand::ExecuteRedo ( )
overrideprivatevirtual

Implementation of interface method.

Returns
Always false

Implements CommandI.

◆ ExecuteUndo()

bool CreateFileCommand::ExecuteUndo ( )
overrideprivatevirtual

Implementation of interface method.

Returns
Always false

Implements CommandI.

◆ IsRedoable()

bool CreateFileCommand::IsRedoable ( )
overrideprivatevirtual

Implementation of interface method.

Returns
Always false

Implements CommandI.

◆ IsThreaded()

bool CreateFileCommand::IsThreaded ( bool &  prevent_user_input)
overrideprivatevirtual

Implementation of interface method.

Parameters
[out]prevent_user_inputindicates if user input should be prevented if this happens to be a threaded command
Returns
Always true

Implements CommandI.

◆ IsUndoable()

bool CreateFileCommand::IsUndoable ( )
overrideprivatevirtual

Implementation of interface method.

Returns
Always False

Implements CommandI.


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