yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::test::TestEditor Class Reference

#include <test_editor.h>

Inheritance diagram for yaze::test::TestEditor:
Collaboration diagram for yaze::test::TestEditor:

Public Member Functions

 TestEditor ()=default
 
 ~TestEditor ()=default
 
void Initialize () override
 
absl::Status Cut () override
 
absl::Status Copy () override
 
absl::Status Paste () override
 
absl::Status Undo () override
 
absl::Status Redo () override
 
absl::Status Find () override
 
absl::Status Update () override
 
absl::Status Save () override
 
absl::Status Load () override
 
- Public Member Functions inherited from yaze::editor::Editor
 Editor ()=default
 
virtual ~Editor ()=default
 
virtual absl::Status Clear ()
 
EditorType type () const
 
void set_context (EditorContext *context)
 
bool * active ()
 
void set_active (bool active)
 
virtual bool IsRomLoaded () const
 
virtual std::string GetRomStatus () const
 

Private Attributes

void * engine_
 

Additional Inherited Members

- Protected Member Functions inherited from yaze::editor::Editor
std::string MakeCardTitle (const std::string &base_title) const
 
template<typename T >
absl::StatusOr< T > SafeRomAccess (std::function< T()> accessor, const std::string &operation="") const
 
- Protected Attributes inherited from yaze::editor::Editor
bool active_ = false
 
EditorType type_
 
EditorContextcontext_ = nullptr
 

Detailed Description

Definition at line 14 of file test_editor.h.

Constructor & Destructor Documentation

◆ TestEditor()

yaze::test::TestEditor::TestEditor ( )
default

◆ ~TestEditor()

yaze::test::TestEditor::~TestEditor ( )
default

Member Function Documentation

◆ Initialize()

void yaze::test::TestEditor::Initialize ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 18 of file test_editor.h.

◆ Cut()

absl::Status yaze::test::TestEditor::Cut ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 20 of file test_editor.h.

◆ Copy()

absl::Status yaze::test::TestEditor::Copy ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 23 of file test_editor.h.

◆ Paste()

absl::Status yaze::test::TestEditor::Paste ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 26 of file test_editor.h.

◆ Undo()

absl::Status yaze::test::TestEditor::Undo ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 30 of file test_editor.h.

◆ Redo()

absl::Status yaze::test::TestEditor::Redo ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 33 of file test_editor.h.

◆ Find()

absl::Status yaze::test::TestEditor::Find ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 37 of file test_editor.h.

◆ Update()

absl::Status yaze::test::TestEditor::Update ( )
overridevirtual

Implements yaze::editor::Editor.

Definition at line 23 of file test_editor.cc.

References engine_.

Referenced by yaze::test::RunIntegrationTest().

◆ Save()

absl::Status yaze::test::TestEditor::Save ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 43 of file test_editor.h.

◆ Load()

absl::Status yaze::test::TestEditor::Load ( )
inlineoverridevirtual

Implements yaze::editor::Editor.

Definition at line 46 of file test_editor.h.

Member Data Documentation

◆ engine_

void* yaze::test::TestEditor::engine_
private

Definition at line 58 of file test_editor.h.

Referenced by Update().


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