SDFormat Editor
Loading...
Searching...
No Matches
file_editor_runner.h
1/*
2* sdformat-editor
3* Copyright 2025 sdformat-editor
4*
5* Licensed under the Apache License, Version 2.0 (the "License");
6* you may not use this file except in compliance with the License.
7* You may obtain a copy of the License at
8*
9* http://www.apache.org/licenses/LICENSE-2.0
10*
11* Unless required by applicable law or agreed to in writing, software
12* distributed under the License is distributed on an "AS IS" BASIS,
13* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14* See the License for the specific language governing permissions and
15* limitations under the License.
16*
17* Developer: Zaid Duraid, Ean Wheeler, Evan Vokey
18*/
19
20#ifndef SDFORMAT_EDITOR_MAIN_HH_
21#define SDFORMAT_EDITOR_MAIN_HH_
22
23#include <stdio.h>
24#include "gui.h"
25#include "sdformat_parser.h"
26#include "interfaces/command_interface.h"
27#include "file_operations.h"
28#include "model_viewer.h"
29#include <sys/stat.h>
30#include <fstream>
31#include <thread>
32
35{
38 public: FileEditorRunner(bool data_dir_created = false);
39
42 public: int RunProgram();
43
46
49
51 std::shared_ptr<SDFormatParserI> sdformatParser;
52
54 std::shared_ptr<GUII> gui;
55
57 std::shared_ptr<CommandFactoryI> command_factory;
58
60 std::shared_ptr<ModelViewerI> model_viewer;
61
62};
63
64#endif
Class to manage overall program operation.
Definition file_editor_runner.h:35
bool model_viewer_initalization_successful
Variable for checking if the model viewer was initilized successfully.
Definition file_editor_runner.h:48
std::shared_ptr< GUII > gui
Pointer to the GUI class instance.
Definition file_editor_runner.h:54
std::shared_ptr< SDFormatParserI > sdformatParser
Pointer to SDFormatParser which will be null until the user opens a file.
Definition file_editor_runner.h:51
bool gui_initalization_successful
Variable for checking if the gui was initilized successfully.
Definition file_editor_runner.h:45
std::shared_ptr< CommandFactoryI > command_factory
Pointer to the CommandFactory class instance.
Definition file_editor_runner.h:57
std::shared_ptr< ModelViewerI > model_viewer
Pointer to the model viewer object.
Definition file_editor_runner.h:60
int RunProgram()
Top level method that starts the program.
Definition file_editor_runner.cpp:79