Orxonox: orxonox::Script Class Reference

# orxonox::Script Class Reference

`#include <src/orxonox/objects/Script.h>`

Inheritance diagram for orxonox::Script:

List of all members.

## Public Member Functions

void | execute ()
| Script (BaseObject *creator)
void | XMLPort (Element &xmlelement, XMLPort::Mode mode)
| XML loading and saving.
| ~Script ()

## Private Attributes

std::string | code_

## Constructor & Destructor Documentation

orxonox::Script::Script | ( | BaseObject * | creator | ) |

References code_, and RegisterObject.

orxonox::Script::~Script | ( |  | ) |

## Member Function Documentation

void orxonox::Script::execute | ( | void |  | ) |

References code_, orxonox::LuaBind::getInstance(), orxonox::LuaBind::loadString(), and orxonox::LuaBind::run().

void orxonox::Script::XMLPort | ( | Element & | xmlelement,
|  | XMLPort::Mode | mode |
| ) |  |  | `[virtual]`

XML loading and saving.

Parameters:

  | xmlelement | The XML-element
  | loading | Loading (true) or saving (false)

Reimplemented from orxonox::BaseObject.

References code_, and orxonox::BaseObject::XMLPort().

## Member Data Documentation

std::string orxonox::Script::code_`[private]`

Referenced by execute(), Script(), and XMLPort().

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

- src/orxonox/objects/Script.h
- src/orxonox/objects/Script.cc