Lomse library. API documentation  0.30.0
CmdInsert Class Reference

#include <lomse_command.h>

Inheritance diagram for CmdInsert:
DocCmdSimple DocCommand CmdInsertBlockLevelObj CmdInsertManyStaffObjs CmdInsertStaffObj

Detailed Description

Abstract class, base for all insertion commands.

Public Member Functions

ImoId last_inserted_id ()
 
- Public Member Functions inherited from DocCmdSimple
virtual ~DocCmdSimple ()
 
bool is_composite () override
 
- Public Member Functions inherited from DocCommand
virtual ~DocCommand ()
 
virtual int get_cursor_update_policy ()=0
 
virtual int get_undo_policy ()=0
 
virtual int get_selection_update_policy ()=0
 
std::string get_name ()
 
bool is_reversible ()
 
bool is_recordable ()
 
std::string get_error ()
 

Additional Inherited Members

- Public Types inherited from DocCommand
enum  ECmdCursorPolicy
 
enum  ECmdUndoPolicy
 
enum  ECmdSelectionPolicy
 

Member Function Documentation

◆ last_inserted_id()

ImoId CmdInsert::last_inserted_id ( )
inline

Once the command is executed, invoking this method returns the ID assigned to the new inserted object. If the command inserts several objects this method only returns the ID of the last inserted object.

Remarks
If this method is invoked and the command has not yet been executed, it will return value k_no_imoid.