COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
BasicCommands Class Reference

Defines basic set of commands in the coolfluid shell. More...

#include <BasicCommands.hpp>

Public Types

typedef boost::program_options::options_description commands_description
 

Public Member Functions

 BasicCommands ()
 

Static Public Member Functions

static void exit (const std::vector< std::string > &)
 
static void pwd (const std::vector< std::string > &)
 
static void ls (const std::vector< std::string > &params)
 
static void rm (const std::string &cpath)
 
static void cd (const std::string &cpath)
 
static void find (const std::vector< std::string > &params)
 
static void tree (const std::string &cpath)
 
static void option_list (const std::string &cpath)
 
static void configure (const std::vector< std::string > &params)
 
static void version (const std::vector< std::string > &)
 
static void export_env (const std::vector< std::string > &params)
 
static void create (const std::vector< std::string > &params)
 
static void mv (const std::vector< std::string > &params)
 
static void call (const std::vector< std::string > &params)
 
static void echo (const std::vector< std::string > &params)
 
static void unrecognized (std::vector< std::string > &unrecognized_options)
 
static commands_description description ()
 
static std::string env_var (const std::string &var)
 
static std::string filter_env_vars (const std::string &line)
 

Static Public Attributes

static Handle< common::Componentcurrent_component = BasicCommands::tree_root
 
static Handle< common::Componenttree_root = Core::instance().root().handle<Component>()
 
static common::SignalDispatcherdispatcher = new LocalDispatcher()
 

Detailed Description

Defines basic set of commands in the coolfluid shell.

Commands include cd, ls, mv, exit, ...

Author
Willem Deconinck

Definition at line 25 of file BasicCommands.hpp.

Member Typedef Documentation

typedef boost::program_options::options_description commands_description

Definition at line 29 of file BasicCommands.hpp.

Constructor & Destructor Documentation

Definition at line 47 of file BasicCommands.cpp.

Member Function Documentation

void call ( const std::vector< std::string > &  params)
static

Definition at line 84 of file BasicCommands.cpp.

void cd ( const std::string &  cpath)
static

Definition at line 370 of file BasicCommands.cpp.

void configure ( const std::vector< std::string > &  params)
static

Definition at line 428 of file BasicCommands.cpp.

void create ( const std::vector< std::string > &  params)
static

Definition at line 484 of file BasicCommands.cpp.

BasicCommands::commands_description description ( )
static

Definition at line 59 of file BasicCommands.cpp.

void echo ( const std::vector< std::string > &  params)
static

Definition at line 467 of file BasicCommands.cpp.

static std::string env_var ( const std::string &  var)
static
void exit ( const std::vector< std::string > &  )
static

Definition at line 168 of file BasicCommands.cpp.

void export_env ( const std::vector< std::string > &  params)
static
Note
(QG) this will not work from the GUI

Definition at line 456 of file BasicCommands.cpp.

std::string filter_env_vars ( const std::string &  line)
static

Definition at line 148 of file BasicCommands.cpp.

void find ( const std::vector< std::string > &  params)
static

Definition at line 380 of file BasicCommands.cpp.

void ls ( const std::vector< std::string > &  params)
static

Definition at line 183 of file BasicCommands.cpp.

void mv ( const std::vector< std::string > &  params)
static

Definition at line 508 of file BasicCommands.cpp.

void option_list ( const std::string &  cpath)
static

Definition at line 412 of file BasicCommands.cpp.

void pwd ( const std::vector< std::string > &  )
static

Definition at line 176 of file BasicCommands.cpp.

void rm ( const std::string &  cpath)
static

Definition at line 362 of file BasicCommands.cpp.

void tree ( const std::string &  cpath)
static

Definition at line 402 of file BasicCommands.cpp.

void unrecognized ( std::vector< std::string > &  unrecognized_options)
static

Definition at line 122 of file BasicCommands.cpp.

void version ( const std::vector< std::string > &  )
static

Definition at line 477 of file BasicCommands.cpp.

Member Data Documentation

Handle< Component > current_component = BasicCommands::tree_root
static

Definition at line 75 of file BasicCommands.hpp.

SignalDispatcher * dispatcher = new LocalDispatcher()
static

Definition at line 79 of file BasicCommands.hpp.

Handle< Component > tree_root = Core::instance().root().handle<Component>()
static

Definition at line 77 of file BasicCommands.hpp.


The documentation for this class was generated from the following files:
Send comments to:
COOLFluiD Web Admin