arduino / arduino/ArduinoCore-API

File base class

オープン
#114 コメント 2 件 リアクション 4 件 担当者 0 名 GitHub で見る
主要言語
C++
スター
306
フォーク
150
PR マージ指標
30日以内にマージされた PR はありません

説明

Similar to Print, Stream, Client, Server... we probably need a File base class.

Currently File is defined in the SD library, and also in the Bridge library for Yun. Most programs in the Arduino ecosystem which use files are tied to the SD library. Because they include SD.h in their headers, the SD library is automatically brought into the project.

But the SD library isn't the only possible source for files. Flash chips, USB mass storage, network filesystems can also provide files. Without a base class, each library using files needs to be edited.

Use of alternate SD card libraries, like SdFat, is also very difficult without a base class because so many libraries which consume files are SD.h included by their code.

Hopefully the time has come to move File out of the SD library and into an abstract base class?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

SD および Bridge ライブラリにある既存の File 定義を読み、関連する Print、Stream、Client、Server 基底クラスを比較します。共有 API を定義し、ファイルを提供するライブラリが、利用側で SD.h をインクルードせずにそれを使用できることを検証します。この issue では、テストや特定のエントリーポイントは指定されていません。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cpp
領域
api, embedded-iot
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。