Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

rt::FrontendPlugin Class Reference

A plugin which extends Frontends. More...

#include <robfrontend.h>

Inheritance diagram for rt::FrontendPlugin:

Inheritance graph
[legend]
List of all members.

Public Methods

virtual FpInterpretePos getInterpretePos ()=0
 Return when your plugin should be called to interprete the params. More...

virtual String getName ()=0
 Return a short, but specific name for your plugin.

virtual String getHelpText ()=0
 Return a String describing your plugin's parameters, or an empty string if you don't have any.

virtual bool interpreteParams (const Array< String > &params, Array< bool > &used)=0
 Return true if you want to continue creating a sim, using these params, or false if they're somehow invalid. More...

virtual void fillOptions (SimOptions &options)=0
 In this method, you can add your own SimSupervisors and TourDisplayer to the tournament.

void setActive (bool a)
 You should always check if your plugin is active before doing any action. More...

bool isActive ()
virtual ~FrontendPlugin ()

Protected Methods

 FrontendPlugin (Frontend *parent)
 Requires the parent frontend.


Protected Attributes

bool active
 Should the plugin be used? Normally false.

Frontend * parent
 For accessing the frontend.


Detailed Description

A plugin which extends Frontends.


Member Function Documentation

virtual FpInterpretePos rt::FrontendPlugin::getInterpretePos (    )  [pure virtual]
 

Return when your plugin should be called to interprete the params.

See also:
FpInterpretePos

Implemented in rt::ProfilePlugin.

virtual bool rt::FrontendPlugin::interpreteParams (  const Array< String > &    params,
Array< bool > &    used
)  [pure virtual]
 

Return true if you want to continue creating a sim, using these params, or false if they're somehow invalid.

For each parameter which is unique to your plugin and which doesn't have to be interpreted by the main Frontend, set used[i] to true.

Parameters:
used  Note: Size is one larger than params. (to make your life easier)

Implemented in rt::ProfilePlugin.

void rt::FrontendPlugin::setActive (  bool    a )  [inline]
 

You should always check if your plugin is active before doing any action.

This method is intended for using your plugin without parameters. If the plugin determines from parameters that it is active, you need to setup active yourself.


The documentation for this class was generated from the following file:
This is the RoboTour API documentation version 0.1 • Copyright (C) by Florian Fischer