This repository has been archived by the owner on Jan 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma once | ||
|
||
#ifndef SSR_INPUT_HPP | ||
#define SSR_INPUT_HPP | ||
|
||
// このライブラリが使う名前空間 | ||
namespace ssr { | ||
|
||
/** | ||
* 入力を受け取るもの全般の抽象型 | ||
* @tparam ResultT 読んだ値の型 | ||
*/ | ||
template<typename ResultT> class Input { | ||
public: | ||
/** | ||
* 値を読む | ||
* @return ResultT 読み取った値 | ||
*/ | ||
virtual ResultT read() = 0; | ||
}; | ||
|
||
} /* namespace ssr */ | ||
|
||
#endif /* SSR_INPUT_HPP */ |