VISH  0.2
Public Types | Public Member Functions
Vish::Input Class Reference

An input slot for Vish Objects, bound to a specific type. More...

#include </home/werner/origo/vish/ocean/plankton/Vish.hpp>

List of all members.

Public Types

Public Member Functions


Detailed Description

An input slot for Vish Objects, bound to a specific type.

The typical usage is

class MyObject : public Vish::Object
{
        Vish::Input<int>        MyInteger;

        MyObject()
        : MyInteger(this, "myvalue", 42)
        {}
};

Constructor & Destructor Documentation

Vish::Input::Input ( VObject *  that,
const string &  s,
const T &  initialValue,
int  EL = 0 
) [inline]

Constructing an input.

Parameters:
thatThe VObject to which this slot is bound.
ELthe Expert level of this slot, which might be used for a GUI.
initialValueThe intial value of this slot's parameter.

Member Function Documentation

Vish::Input::TypedSlot ( VObject *  that,
const string &  s,
const RefPtr< VCreationPreferences > &  VP,
int  prior 
)

Construct a typed slot with Creation Preferences, but no initialization of the value.

Note:
Requires template VValueParameter<T>::VValueParameter(string, const RefPtr<VCreationPreferences>&) to be specialized!!
Vish::Input::TypedSlot ( VObject *  that,
const string &  s,
const VSlot::Empty &  ,
int  prior = 0 
)

Special constructor that does not initialize the value of this input slot.

Rarely to be used, only for specific cases where initialization of a slot's type is non-trivial.

Note:
Requires template VValueParameter<T>::VValueParameter() to be specialized!!
Vish::Input::TypedSlot ( VObject *  that,
const string &  s,
const T &  initialValue,
const RefPtr< VCreationPreferences > &  VP,
int  prior = 0 
)

Declaration of constructor with creation preferences.

Note:
This constructor is defined in VObject.hpp
Parameters:
initialValueThe intial value of this slot's parameter.

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