Sygaldry
Toggle main menu visibility
Main Page
Related Pages
Topics
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
c
d
e
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Functions
a
c
d
e
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Variables
Typedefs
Files
File List
▼
Sygaldry
►
Quick Motivation Summary
Quick Start
►
Project Motivation
►
Library Overview
Licenses
►
Design Concepts
►
Developer Environment Setup
►
Making a New Instrument
►
Making a New Component
►
Contributors' Guide
►
Implementation Documentation
►
Sygaldry Authors Directory
►
Convenience Scripts
Literate Programming with Doxygen
Literate Programming with lili
Bibliography
►
Topics
►
Concepts
►
Classes
▼
Files
▼
File List
▼
sygaldry
►
sygac-components
►
sygac-endpoints
►
sygac-functions
►
sygac-metadata
►
sygac-mimu
►
sygac-runtime
►
sygac-tuple
►
sygah-consteval
►
sygah-endpoints
►
sygah-metadata
►
sygah-mimu
►
sygah-string_literal
►
sygbe-runtime
►
sygbe-spiffs
►
sygbe-wifi
►
sygbp-cli
▼
sygbp-cstdio_reader
sygbp-cstdio_reader.hpp
►
sygbp-liblo
►
sygbp-osc_match_pattern
►
sygbp-osc_string_constants
►
sygbp-output_logger
►
sygbp-rapid_json
►
sygbp-session_data
►
sygbp-spelling
►
sygbr-cli
►
sygbr-runtime
►
sygsa-max17055
►
sygsa-trill_craft
►
sygsa-two_wire
►
sygsa-two_wire_serif
►
sygse-adc
►
sygse-button
►
sygse-gpio
►
sygse-max17055
►
sygsp-button
►
sygsp-complementary_mimu_fusion
►
sygsp-delay
►
sygsp-icm20948
►
sygsp-micros
►
sygsp-mimu_units
►
sygsr-adc
►
sygsr-button
►
sygup-basic_logger
►
sygup-cstdio_logger
►
sygup-debug_printer
•
All
Classes
Functions
Variables
Typedefs
Enumerations
Modules
Pages
Concepts
Loading...
Searching...
No Matches
sygbp-cstdio_reader.hpp
1
#pragma once
2
/*
3
Copyright 2023 Travis J. West, https://traviswest.ca, Input Devices and Music
4
Interaction Laboratory (IDMIL), Centre for Interdisciplinary Research in Music
5
Media and Technology (CIRMMT), McGill University, Montréal, Canada, and Univ.
6
Lille, Inria, CNRS, Centrale Lille, UMR 9189 CRIStAL, F-59000 Lille, France
7
8
SPDX-License-Identifier: MIT
9
*/
10
11
12
#include <stdio.h>
13
#include <stdlib.h>
14
15
namespace
sygaldry {
namespace
sygbp {
20
33
struct
CstdioReader
34
{
35
int
last_read;
36
bool
ready()
37
{
38
last_read = getc(stdin);
39
return
last_read != EOF;
40
}
41
42
char
getchar()
43
{
44
return
last_read;
45
}
46
};
33
struct
CstdioReader
{
…
};
47
50
} }
sygaldry::sygbp::CstdioReader
Command line input reader using standard IO calls.
Definition
sygbp-cstdio_reader.hpp:34
sygaldry
sygbp-cstdio_reader
sygbp-cstdio_reader.hpp
Generated by
1.9.8