Urbi SDK Remote for C++  2.7.5
umachine.hh
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2009-2011, Gostai S.A.S.
00003  *
00004  * This software is provided "as is" without warranty of any kind,
00005  * either expressed or implied, including but not limited to the
00006  * implied warranties of fitness for a particular purpose.
00007  *
00008  * See the LICENSE file for more information.
00009  */
00010 
00011 #ifndef MACHINE_UMACHINE_HH
00012 # define MACHINE_UMACHINE_HH
00013 
00014 // Include the UObject declarations.
00015 # include <urbi/uobject.hh>
00016 
00017 // We wrap factories.
00018 # include "machine.hh"
00019 
00021 class UMachine
00022   : public urbi::UObject
00023 {
00024 public:
00027   UMachine(const std::string& name);
00028 
00033   int init(ufloat d);
00034 
00036   std::string assemble(std::list<std::string> components);
00037 
00041   int duration_set(urbi::UVar& v);
00042 
00043 private:
00045   urbi::UVar duration;
00046 
00048   Machine* machine;
00049 };
00050 #endif // ! MACHINE_UMACHINE_HH