summaryrefslogtreecommitdiff
path: root/music/pokeredwavptnvis/Console.h
blob: c6fe1833484e0c5c95c13b4056a7fec8a946d84c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef CONSOLE_H
#define CONSOLE_H

#include <iostream>
#include <string>

// Just a Console Utility Library
class Console
{
public:
    // Basic
    static void Get(char* value);
    static void Get(std::string& value);
    static void Print(const char* value);
    static void Error(const char* value);

    // Upper-Basic
    static void PrintLn(const char* value);
    static void ErrorLn(const char* value);

    // Higher
    static void Ask(const char* question, char* answer);
    static void Ask(const char* question, std::string& answer);

    // Better Error Handling
    static int atoi_ex(const char* input, bool supress = false);
};

#endif // CONSOLE_H