Urbi SDK Remote for C++  2.7.5
UMachine Class Reference

A UObject wrapping a machine object. More...

#include <umachine.hh>

Inheritance diagram for UMachine:
Collaboration diagram for UMachine:

List of all members.

Public Member Functions

 UMachine (const std::string &name)
 C++ contructor.
int init (ufloat d)
 Urbi constructor.
std::string assemble (std::list< std::string > components)
 Wrapper around Machine::operator().
int duration_set (urbi::UVar &v)
 Function notified when the duration is changed.

Private Attributes

urbi::UVar duration
 The duration of the assembly process.
Machinemachine
 The actual machine, wrapped in this UObject.

Detailed Description

A UObject wrapping a machine object.

Definition at line 21 of file umachine.hh.


Constructor & Destructor Documentation

UMachine::UMachine ( const std::string &  name)

C++ contructor.

Parameters:
namename given to the instance.

Definition at line 17 of file umachine.cc.

References init(), and UBindFunction.


Member Function Documentation

std::string UMachine::assemble ( std::list< std::string >  components)

Wrapper around Machine::operator().

Definition at line 72 of file umachine.cc.

References machine.

Referenced by init().

int UMachine::duration_set ( urbi::UVar v)

Function notified when the duration is changed.

Parameters:
vthe UVar being modified (i.e., UMachine::duration).
Returns:
0 on success.

Definition at line 55 of file umachine.cc.

References Machine::duration, and machine.

Referenced by init().

int UMachine::init ( ufloat  d)

Urbi constructor.

Parameters:
dthe duration of the assembly process. Must be positive.
Returns:
0 on success.

Definition at line 27 of file umachine.cc.

References assemble(), duration, duration_set(), urbi::LOCK_FUNCTION, machine, UBindFunction, UBindThreadedFunctionRename, UBindVar, and urbi::UObject::UNotifyChange().

Referenced by UMachine().


Member Data Documentation

The duration of the assembly process.

Definition at line 45 of file umachine.hh.

Referenced by init().

The actual machine, wrapped in this UObject.

Definition at line 48 of file umachine.hh.

Referenced by assemble(), duration_set(), and init().


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