StuBS
command.cc File Reference
#include "fs/tool/command.h"
#include <unistd.h>
#include <cstdlib>
#include <cstdio>
#include <algorithm>
#include <iterator>
#include <iostream>
#include <sstream>
#include "fs/tool/parameter.h"
#include "fs/tool/imagefile.h"
#include "fs/tool/fs_image.h"
#include "fs/tool/fs_host.h"
#include "fs/tool/util.h"
Include dependency graph for command.cc:

Typedefs

typedef const std::vector< std::string > & param
 

Functions

static std::vector< std::string > split (const std::string &in)
 
std::ostream & operator<< (std::ostream &stream, const Command &c)
 

Constants

FileSystemImage image
 
FileSystemHost host
 
Command::callback undefined
 
Command commands []
 

Typedef Documentation

◆ param

typedef const std::vector<std::string>& param

Function Documentation

◆ split()

static std::vector< std::string > split ( const std::string &  in)
static

◆ operator<<()

std::ostream & operator<< ( std::ostream &  stream,
const Command c 
)

Variable Documentation

◆ image

FileSystemImage image
extern

◆ host

FileSystemHost host
extern

◆ undefined

Command::callback undefined
Initial value:
= []( const std::vector<std::string> & p) {
std::cerr << "Befehl kann nicht ausgeführt werden, da er noch nicht implementiert wurde!" << std::endl;
return false;
}

◆ commands

Command commands[]