aboutsummaryrefslogtreecommitdiffstats
path: root/music/pokeredmusicdisasm/Console.h
diff options
context:
space:
mode:
authorKuroiIeWa5Da <tyuki@adu.me>2012-01-23 01:41:05 -0600
committerKuroiIeWa5Da <tyuki@adu.me>2012-01-23 01:41:05 -0600
commit4d0797bc3a6ae0ea4b44e8b6463339d662f5d669 (patch)
tree03b824a1bb511bbb8c57ea378c1d27ea04c27ef7 /music/pokeredmusicdisasm/Console.h
parentFinished PkmnHealed music data - all 3 channels (diff)
downloadpokeyellow-4d0797bc3a6ae0ea4b44e8b6463339d662f5d669.tar.gz
pokeyellow-4d0797bc3a6ae0ea4b44e8b6463339d662f5d669.tar.xz
pokeyellow-4d0797bc3a6ae0ea4b44e8b6463339d662f5d669.zip
made changes in repo
hg-commit-id: 1145e088ee27
Diffstat (limited to 'music/pokeredmusicdisasm/Console.h')
-rw-r--r--music/pokeredmusicdisasm/Console.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/music/pokeredmusicdisasm/Console.h b/music/pokeredmusicdisasm/Console.h
new file mode 100644
index 00000000..c6fe1833
--- /dev/null
+++ b/music/pokeredmusicdisasm/Console.h
@@ -0,0 +1,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