Pārlūkot izejas kodu

added more files

Nicolas Winkler 8 gadi atpakaļ
vecāks
revīzija
e816178457
3 mainītis faili ar 42 papildinājumiem un 0 dzēšanām
  1. 15 0
      src/UciParser.cpp
  2. 18 0
      src/UciParser.h
  3. 9 0
      src/main.cpp

+ 15 - 0
src/UciParser.cpp

@@ -0,0 +1,15 @@
+#include "UciParser.h"
+#include <string>
+
+using namespace std;
+
+int UciParser::parse(istream& in, ostream& out)
+{
+    string line;
+
+    getline(in, line);
+
+    out << "Thanks for the input: " << line;
+
+    return 0;
+}

+ 18 - 0
src/UciParser.h

@@ -0,0 +1,18 @@
+#ifndef UCIPARSER_H
+#define UCIPARSER_H
+
+#include <iostream>
+
+/*!
+ * manages the communication with a UCI connection
+ */
+class UciParser
+{
+public:
+    UciParser(void) = default;
+    ~UciParser(void) = default;
+
+    auto parse(std::istream& in, std::ostream& out) -> int;
+};
+
+#endif // UCIPARSER_H

+ 9 - 0
src/main.cpp

@@ -0,0 +1,9 @@
+//#include <iostream>
+
+
+
+auto main() -> int
+{
+    int a;
+    return a >= 3;
+}