Orxonox  0.0.5 Codename: Arcturus
Namespaces | Functions
ConsoleCommandCompilation.cc File Reference

Implementation of some console commands. More...

#include "ConsoleCommandCompilation.h"
#include <fstream>
#include <set>
#include <string>
#include "util/Output.h"
#include "util/ExprParser.h"
#include "util/StringUtils.h"
#include "ConsoleCommandIncludes.h"
#include "CommandExecutor.h"

Namespaces

 orxonox
 Die Wagnis Klasse hat die folgenden Aufgaben:
 

Functions

void orxonox::append (const std::string &filename, const std::string &text)
 Appends text to a file. More...
 
float orxonox::calculate (const std::string &calculation)
 Parses the mathematical expression and returns the result. More...
 
void orxonox::debug (const std::string &text)
 Prints debug output with verbose level. More...
 
std::string orxonox::echo (const std::string &text)
 Simply returns the arguments. More...
 
void orxonox::error (const std::string &text)
 Prints output with error level. More...
 
std::map< std::string, OutputLevel > orxonox::getOutputLevelsMap ()
 Builds a map that maps the levels of all output levels to their ID. More...
 
void orxonox::info (const std::string &text)
 Prints output with info level. More...
 
void orxonox::log (const std::string &text)
 Prints text to the console and the logfile. More...
 
void orxonox::orxout_level (const std::string &level_name, const std::string &text)
 Prints text to the console. More...
 
void orxonox::orxout_level_context (const std::string &level_name, const std::string &context_name, const std::string &text)
 Prints text to the console. More...
 
std::string orxonox::read (const std::string &filename)
 Reads text from a file. More...
 
 orxonox::SetConsoleCommand ("echo", echo)
 
 orxonox::SetConsoleCommand ("orxout", orxout_level)
 
 orxonox::SetConsoleCommand ("orxout_context", orxout_level_context)
 
 orxonox::SetConsoleCommand ("log", log)
 
 orxonox::SetConsoleCommand ("error", error).hide()
 
 orxonox::SetConsoleCommand ("warning", warning).hide()
 
 orxonox::SetConsoleCommand ("status", status).hide()
 
 orxonox::SetConsoleCommand ("info", info).hide()
 
 orxonox::SetConsoleCommand ("debug", debug).hide()
 
 orxonox::SetConsoleCommand ("calculate", calculate)
 
void orxonox::source (const std::string &filename)
 Reads the content of a file and executes the commands in it line by line. More...
 
void orxonox::status (const std::string &text)
 Prints output with status level. More...
 
void orxonox::warning (const std::string &text)
 Prints output with warning level. More...
 
void orxonox::write (const std::string &filename, const std::string &text)
 Writes text to a file. More...
 

Detailed Description

Implementation of some console commands.