/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Gem-graph client * * * * Base header * * * * Copyright © 2021 Libre en Communs * * Copyright © 2021 Adrien Bourmault * * Copyright © 2021 Jean Sirmai * * * * This file is part of Gem-graph. * * * * This program is free software: you can redistribute it and/or modify it * * under the terms of the GNU Affero General Public License * * as published by the Free Software Foundation, * * either version 3 of the License, * * or (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; * * without even the implied warranty of MERCHANTABILITY * * or FITNESS FOR A PARTICULAR PURPOSE. * * See the GNU Affero General Public License for more details. * * * * You should have received a copy of the GNU Affero General Public License * * along with this program. If not, see . * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #pragma once #include /******************************************************************************/ /* S T A T E M A C H I N E */ /******************************************************************************/ enum choice_EXEC_EDIT { EXEC, EDIT }; // xor enum choice_STATE_RULES_DATA { STATE, RULES, DATA }; // xor int fsm_get_EXEC_EDIT (); int fsm_get_STATE_RULES_DATA (); int fsm_get_OBJECTS_box_RESET_VALUE (); int fsm_get_SITUATIONS_box_RESET_VALUE (); void fsm_set_EXEC_EDIT (int value); void fsm_set_STATE_RULES_DATA (int value); void fsm_set_OBJECTS_box_RESET_VALUE (int value); void fsm_set_SITUATIONS_box_RESET_VALUE (int value);