<commit_before>#pragma once
//=====================================================================//
/*!	@file
	@brief	ルート・メニュー・クラス
			Copyright 2017 <NAME>
	@author	平松邦仁 (<EMAIL>)
*/
//=====================================================================//
#include "main.hpp"

namespace app {

	//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
	/*!
		@brief	ルート・メニュー・クラス
	*/
	//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
	class root_menu {

	public:
		//-------------------------------------------------------------//
		/*!
			@brief	コンストラクター
		*/
		//-------------------------------------------------------------//
		root_menu() { }


		//-------------------------------------------------------------//
		/*!
			@brief	初期化
		*/
		//-------------------------------------------------------------//
		void init()
		{
			auto& core = at_core();

			core.menu_.set_space(4);
			core.menu_.add(core_t::MENU::type::PROP, "Logging");
			core.menu_.add(core_t::MENU::type::PROP, "Recall");
			core.menu_.add(core_t::MENU::type::PROP, "Setup");
		}


		//-------------------------------------------------------------//
		/*!
			@brief	サービス
		*/
		//-------------------------------------------------------------//
		void service()
		{
			auto& core = at_core();

			core.bitmap_.frame(0, 0, 128, 64, 1);
			core.menu_.render();

			// 衛星数の表示
			core.bitmap_.draw_text(2, 1, core.nmea_.get_satellite());

			int n = core.menu_pos_;
			switch(n) {
			case 0:
				select_scene(app::scene_id::logging);
				core.menu_.clear();
				break;
			case 1:
				select_scene(app::scene_id::recall);
				core.menu_.clear();
				break;
			case 2:
				select_scene(app::scene_id::setup);<commit_msg>update sdc mount status<commit_after>#pragma once
//=====================================================================//
/*!	@file
	@brief	ルート・メニュー・クラス
			Copyright 2017 <NAME>
	@author	平松邦仁 (<EMAIL>)
*/
//=====================================================================//
#include "main.hpp"

namespace app {

	//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
	/*!
		@brief	ルート・メニュー・クラス
	*/
	//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
	class root_menu {

	public:
		//-------------------------------------------------------------//
		/*!
			@brief	コンストラクター
		*/
		//-------------------------------------------------------------//
		root_menu() { }


		//-------------------------------------------------------------//
		/*!
			@brief	初期化
		*/
		//-------------------------------------------------------------//
		void init()
		{
			auto& core = at_core();

			core.menu_.set_space(4);
			core.menu_.add(core_t::MENU::type::PROP, "Logging");
			core.menu_.add(core_t::MENU::type::PROP, "Recall");
			core.menu_.add(core_t::MENU::type::PROP, "Setup");
		}


		//-------------------------------------------------------------//
		/*!
			@brief	サービス
		*/
		//-------------------------------------------------------------//
		void service()
		{
			auto& core = at_core();

			core.bitmap_.frame(0, 0, 128, 64, 1);
			core.menu_.render();

			// 衛星数の表示
			core.bitmap_.draw_text(2, 1, core.nmea_.get_satellite());

			// マウント状態の表示
			if(core.sdc_.get_mount()) {
				core.bitmap_.draw_font(128 - 8, 1, '*'); 
			}

			int n = core.menu_pos_;
			switch(n) {
			case 0:
				select_scene(app::scene_id::logging);
				core.menu_.clear();
				break;
			case 1:
				select_scene(app::scene_id::recall);
				core.menu_.clear();
				break;
			case 2:
				select_scene(app::scene_id::setup);
{'fraction_non_alphanumeric': 0.49226006191950467, 'fraction_numerical': 0.011539544047283985, 'mean_word_length': 1.5313390313390314, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3798425', 'n_tokens_mistral': 1345, 'n_tokens_neox': 1068, 'n_words': 149}