Inter4ql  5.2
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Inter4ql::Application Class Reference

Application class - class that merges all modules and creates interpreter. More...

#include <Application.h>

Public Member Functions

 Application (std::istream *i=0, std::ostream *o=0, std::ostream *e=0)
 constructor used to build program and set input and outputs More...
 
 ~Application ()
 destructor
 
void start ()
 main interpreter loop
 
int parse_line ()
 function that parses a line More...
 
Outputget_output ()
 getter for output module More...
 
void set_input (std::istream *i)
 setter for default input More...
 
VariableSpacepublic_get_vs ()
 getter for global variable space More...
 
ModuleGenericpublic_get_module (std::string v)
 getter for single module from global modules list More...
 
std::vector< ModuleGeneric * > * public_get_modules ()
 getter for all modules from global modules list More...
 
std::vector< ModuleGeneric * > * public_get_actions ()
 getter for all actions from global action list More...
 

Public Attributes

bool debug_evaluation = false
 
bool debug_planning = false
 
bool debug_planning_composite = false
 
bool debug_constraints = false
 
bool debug_disposable = false
 
bool debug_database = false
 
bool debug_probing = false
 
bool debug_warning = false
 

Static Public Attributes

static Applicationapp_instance
 

Detailed Description

Application class - class that merges all modules and creates interpreter.

Constructor & Destructor Documentation

◆ Application()

Inter4ql::Application::Application ( std::istream *  i = 0,
std::ostream *  o = 0,
std::ostream *  e = 0 
)

constructor used to build program and set input and outputs

Parameters
idefault interpreter input (default is standard input)
odefault interpreter output (default is standard output)
edefault interpreter error pipe (default is standard error)

Member Function Documentation

◆ get_output()

Inter4ql::Output * Inter4ql::Application::get_output ( )

getter for output module

Returns
output module

◆ parse_line()

int Inter4ql::Application::parse_line ( )

function that parses a line

Returns
zero if it is the end of parsing, positive otherwise

◆ public_get_actions()

std::vector<ModuleGeneric *>* Inter4ql::Application::public_get_actions ( )
inline

getter for all actions from global action list

Returns
actions list

◆ public_get_module()

ModuleGeneric* Inter4ql::Application::public_get_module ( std::string  v)
inline

getter for single module from global modules list

Returns
module

◆ public_get_modules()

std::vector<ModuleGeneric *>* Inter4ql::Application::public_get_modules ( )
inline

getter for all modules from global modules list

Returns
module list

◆ public_get_vs()

VariableSpace* Inter4ql::Application::public_get_vs ( )
inline

getter for global variable space

Returns
variable space

◆ set_input()

void Inter4ql::Application::set_input ( std::istream *  i)

setter for default input

Parameters
iinput stream

The documentation for this class was generated from the following files: