added main

This commit is contained in:
black
2025-07-04 21:53:52 +02:00
parent cfaacbd26f
commit 551da48a29
2 changed files with 7 additions and 1 deletions

View File

@@ -4,6 +4,8 @@
#include "CommandParser.h"
#include <sstream>
CommandParser & CommandParser::getInstance() {
static CommandParser instance;
return instance;
@@ -12,7 +14,7 @@ CommandParser & CommandParser::getInstance() {
std::vector<std::string> CommandParser::parseLine(const std::string &input) {
std::vector<std::string> output{};
/// Konvertiere den Input String in einen IStringStream, damit dieser bei Leerzeichen gesplittet werden kann
std::istringstream<char> iss(input);
std::istringstream iss(input);
std::string out;
do {
/// Trenne den IStringStream bei jedem Leerzeichen und füge die Befehl(e)/-sargumente dem Output hinzu

View File

@@ -1,3 +1,7 @@
//
// Created by black on 12.06.25.
//
int main() {
return 0;
}