Granada  1.54.0
Structured layer on top of C++ REST SDK for building server applications in C++. Granada implements sessions, server side plug-in framework, C++ OAuth 2.0 server, data storage access, server script running, server browsing.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
granada::runner::Runner Class Reference

#include <runner.h>

Inheritance diagram for granada::runner::Runner:
granada::runner::SpiderMonkeyJavascriptRunner

Public Member Functions

 Runner ()
 
virtual ~Runner ()
 
virtual std::string Run (const std::string &script)
 
virtual std::shared_ptr
< granada::Functions
functions ()
 
virtual std::vector< std::string > extensions ()
 

Detailed Description

Interface for running scripts or executables.

Constructor & Destructor Documentation

granada::runner::Runner::Runner ( )
inline

Constructor

virtual granada::runner::Runner::~Runner ( )
inlinevirtual

Destructor

Member Function Documentation

virtual std::vector<std::string> granada::runner::Runner::extensions ( )
inlinevirtual

Returns a vector with the extensions of the scripts/executables Extensions examples: ["js"], ["sh"], ["exe"], ["js","sh"]

Returns
Vector with the extensions.

Reimplemented in granada::runner::SpiderMonkeyJavascriptRunner.

virtual std::shared_ptr<granada::Functions> granada::runner::Runner::functions ( )
inlinevirtual

Returns a pointer to the collection of functions that can be called from the script/executable.

Returns
Pointer to the collection of functions that can be called from the script/executable.

Reimplemented in granada::runner::SpiderMonkeyJavascriptRunner.

virtual std::string granada::runner::Runner::Run ( const std::string &  script)
inlinevirtual

Run script or executable.

Parameters
scriptScript/executable or path to script/executable
Returns
Result or response in form of string.

Reimplemented in granada::runner::SpiderMonkeyJavascriptRunner.


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