libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
moIODevice Class Referenceabstract

#include <moIODevice.h>

Inheritance diagram for moIODevice:
moMoldeoObject moMoldeoObject moAbstract moScript moAbstract moScript moFileRead moFileWrite

Public Member Functions

 moIODevice ()
 
virtual ~moIODevice ()
 
virtual void Update (moEventList *)=0
 
virtual MOboolean Init ()=0
 
virtual MOswitch GetStatus (MOdevcode)=0
 
virtual void SetValue (MOdevcode, MOint)
 
virtual void SetValue (MOdevcode, MOfloat)
 
virtual void SetValue (MOdevcode, moData)
 
virtual void SetValue (MOdevcode, MOlong, MOpointer)
 
virtual MOpointer GetPointer (MOdevcode)
 
virtual MOint GetValue (MOdevcode)=0
 
virtual moData GetValue (MOdevcode, moDataType)
 
virtual MOint GetValue (MOdevcode, MOint)
 
virtual MOint GetNValues (MOdevcode)
 
virtual MOswitch SetStatus (MOdevcode, MOswitch)=0
 
virtual MOdevcode GetCode (moText)=0
 
virtual MOboolean Finish ()=0
 
MOint GetId ()
 
void SetId (MOint p_id)
 
 moIODevice ()
 
virtual ~moIODevice ()
 
virtual void Update (moEventList *)=0
 
virtual MOboolean Init ()=0
 
virtual MOswitch GetStatus (MOdevcode)=0
 
virtual void SetValue (MOdevcode, MOint)
 
virtual void SetValue (MOdevcode, MOfloat)
 
virtual void SetValue (MOdevcode, moData)
 
virtual void SetValue (MOdevcode, MOlong, MOpointer)
 
virtual MOpointer GetPointer (MOdevcode)
 
virtual MOint GetValue (MOdevcode devcode)=0
 
virtual moData GetValue (MOdevcode, moDataType)
 
virtual MOint GetValue (MOdevcode, MOint)
 
virtual MOint GetNValues (MOdevcode)
 
virtual MOswitch SetStatus (MOdevcode, MOswitch)=0
 
virtual MOdevcode GetCode (moText)=0
 
virtual MOboolean Finish ()=0
 
MOint GetId ()
 
void SetId (MOint p_id)
 
- Public Member Functions inherited from moMoldeoObject
 moMoldeoObject ()
 
 moMoldeoObject (moMoldeoObjectType p_type)
 
virtual ~moMoldeoObject ()
 
virtual MOboolean Init (moResourceManager *p_pResources)
 
virtual MOboolean CreateConnectors ()
 
virtual MOboolean UpdateConnectors ()
 
virtual MOboolean RefreshValue (moParam &param, int value_index)
 
virtual MOboolean ResolveValue (moParam &param, int value_index, bool p_refresh=false)
 
void SetResourceManager (moResourceManager *p_pResourceManager)
 
moResourceManagerGetResourceManager ()
 
MOint GetId () const
 
void SetId (MOint p_id)
 
moMoldeoObjectType GetType () const
 
void SetType (moMoldeoObjectType p_type)
 
void SetName (const moText &p_name)
 
void SetLabelName (const moText &p_labelname)
 
void SetKeyName (const moText &p_keyname)
 
const moTextGetKeyName () const
 
const moTextGetName () const
 
const moTextGetLabelName () const
 
moConfigGetConfig ()
 
void SyncConnections ()
 
virtual int Save (const moText &p_save_filename=moText(""))
 
void SetConfigName (const moText &p_configname)
 
const moTextGetConfigName () const
 
const moTextGetDescription () const
 Devuelve al descripción del objeto. More...
 
void SetDescription (const moText &p_Description)
 Fija la descripción de este objeto. More...
 
const moMobDefinitionGetMobDefinition () const
 
void SetMobDefinition (const moMobDefinition &p_MobDef)
 
virtual moConfigDefinitionGetDefinition (moConfigDefinition *p_configdefinition=NULL)
 
moOutlets * GetOutlets ()
 
moInlets * GetInlets ()
 
MOint GetInletIndex (moText p_connector_name) const
 
MOint GetOutletIndex (moText p_connector_name) const
 
virtual void RegisterFunctions ()
 beware ! call only once or die!!! More...
 
virtual int ScriptCalling (moLuaVirtualMachine &vm, int iFunctionNumber)
 
virtual void HandleReturns (moLuaVirtualMachine &vm, const char *strFunc)
 
virtual const moMobStateGetState () const
 
virtual bool SetState (const moMobState &p_MobState)
 
virtual void Activate ()
 
virtual void Deactivate ()
 
virtual bool Activated () const
 
virtual void Select ()
 
virtual void Unselect ()
 
virtual bool Selected () const
 
virtual void SetConsoleParamIndex (MOint p_paramindex)
 
virtual void SetConsoleValueIndex (MOint p_valueindex)
 
virtual const moTextToJSON ()
 
- Public Member Functions inherited from moAbstract
 moAbstract ()
 
virtual ~moAbstract ()
 
MOboolean Initialized ()
 Pregunta si está inicializado. More...
 
- Public Member Functions inherited from moScript
 moScript ()
 
virtual ~moScript (void)
 
void InitScript ()
 
void FinishScript ()
 
bool IsInitialized ()
 
bool CompileFile (const char *strFilename)
 
bool CompileBuffer (unsigned char *pbBuffer, size_t szLen)
 
int RegisterFunction (const char *strFuncName, moScript::Function &fun)
 
int RegisterFunction (const char *strFuncName)
 
int RegisterBaseFunction (const char *strFuncName)
 
bool SelectScriptFunction (const char *strFuncName)
 
void AddFunctionParam (int iInt)
 
void AddFunctionParam (float fFloat)
 
void AddFunctionParam (char *string)
 
bool RunSelectedFunction (int nReturns=0)
 
bool ScriptHasFunction (const char *strScriptName)
 
int methods (void)
 
virtual int ResetScriptCalling ()
 
virtual int NextScriptCalling ()
 
moLuaVirtualMachinemvm (void)
 

Protected Attributes

MOint m_DeviceId
 
- Protected Attributes inherited from moMoldeoObject
moText m_FullJSON
 
moText m_Script
 
moMobDefinition m_MobDefinition
 
moMobState m_MobState
 Moldeo Object State. More...
 
moConfig m_Config
 Configuración de parámetros del objeto. More...
 
moResourceManagerm_pResourceManager
 Puntero al administrador de recursos. More...
 
moOutlets m_Outlets
 Conectores de salida, Arreglo de moOutlet's. More...
 
moInlets m_Inlets
 Conectores de entrada, Arreglo de moInlet's. More...
 
moInletInletScreenWidth
 
moInletInletScreenHeight
 
moInletInletTimeabs
 
moInletInletPreconfig
 
MOboolean m_bConnectorsLoaded
 
int __iscript
 
- Protected Attributes inherited from moScript
bool m_initialized
 
int m_nMethods
 
int m_iThisRef
 
int m_nArgs
 
const char * m_strFunctionName
 
int m_iMethodBase
 
int m_iMethodBaseIterator
 actual class index method base More...
 
int m_iMethodBaseAncestors
 actual class iterator index method base More...
 
int m_MethodBases [256]
 increment on each call to RegisterFunctions More...
 

Additional Inherited Members

- Public Types inherited from moScript
typedef int(* Function )(moLuaVirtualMachine &vm)
 
- Public Attributes inherited from moAbstract
MOboolean m_bInitialized
 Valor de inicialización More...
 
- Public Attributes inherited from moScript
Function Functions [255]
 
- Static Public Attributes inherited from moAbstract
static moDebugMODebug2 = new moDebug()
 Clase de impresión de errores para depuración More...
 
static moTextHeapMODebug = new moTextHeap()
 Lista de textos. More...
 
- Protected Member Functions inherited from moMoldeoObject
virtual void LoadDefinition ()
 
virtual void ScriptExeInit ()
 Corre la funcion de script Run o Compila el nuevo script. More...
 
virtual void ScriptExeRun ()
 
virtual void ScriptExeUpdate ()
 
virtual void ScriptExeFinish ()
 
void SetScript (const moText &p_script)
 
int luaPushDebugString (moLuaVirtualMachine &vm)
 Función de impresión de cadena de carácteres cómoda para la depuración More...
 
int luaGetResourceManager (moLuaVirtualMachine &vm)
 Devuelve el objeto de moResourceManager para el manejo de recursos: texturas, videos, archivos, etc.. More...
 
int luaSetPreconf (moLuaVirtualMachine &vm)
 functions to access moConfig data More...
 
int luaGetPreconf (moLuaVirtualMachine &vm)
 
int luaGetParamIndex (moLuaVirtualMachine &vm)
 
int luaGetCurrentValue (moLuaVirtualMachine &vm)
 
int luaSetCurrentValue (moLuaVirtualMachine &vm)
 
int luaGetValuesCount (moLuaVirtualMachine &vm)
 
int luaGetInletIndex (moLuaVirtualMachine &vm)
 
int luaGetInletData (moLuaVirtualMachine &vm)
 
int luaSetInletData (moLuaVirtualMachine &vm)
 
int luaGetTrackerSystemData (moLuaVirtualMachine &vm)
 
int luaGetTrackerFeaturesCount (moLuaVirtualMachine &vm)
 
int luaGetTrackerValidFeatures (moLuaVirtualMachine &vm)
 
int luaGetTrackerFeature (moLuaVirtualMachine &vm)
 
int luaGetTrackerVariance (moLuaVirtualMachine &vm)
 
int luaGetTrackerBarycenter (moLuaVirtualMachine &vm)
 
int luaGetTrackerAcceleration (moLuaVirtualMachine &vm)
 
int luaGetTrackerVelocity (moLuaVirtualMachine &vm)
 
int luaGetTrackerZone (moLuaVirtualMachine &vm)
 
int luaGetTrackerHistory (moLuaVirtualMachine &vm)
 
int luaStartTrackerHistory (moLuaVirtualMachine &vm)
 devuelve la cantidad de records registrados?! More...
 
int luaPauseTrackerHistory (moLuaVirtualMachine &vm)
 arranca la grabacion More...
 
int luaContinueTrackerHistory (moLuaVirtualMachine &vm)
 
int luaStopTrackerHistory (moLuaVirtualMachine &vm)
 
int luaGetHistoryRecord (moLuaVirtualMachine &vm)
 Devuelve...el baricentro. More...
 
int luaGetHistoryBarycenter (moLuaVirtualMachine &vm)
 va de parametro el id del tracker, el id de la instancia More...
 
int luaGetHistoryVariance (moLuaVirtualMachine &vm)
 Devuelve las varianzas. More...
 
int luaGetHistoryBounding (moLuaVirtualMachine &vm)
 Devuelve los rectangulos. More...
 
int luaGetHistoryAverage (moLuaVirtualMachine &vm)
 Devuelve los promedios. More...
 
int luaGetHistoryMinMax (moLuaVirtualMachine &vm)
 Devuelve el rectangulo max, min. More...
 
- Static Protected Attributes inherited from moScript
static moLuaVirtualMachine m_vm
 
static moLuaDebugger m_dbg
 

Detailed Description

dispositivo de entrada salida (Input Output Device) ejemplos tpicos de estos objetos son el teclado (moKeyboard), el mouse (moMouse)

dispositivo de entrada salida (Input Output Device) ejemplos típicos de estos objetos son el teclado (moKeyboard), el mouse (moMouse)

Definition at line 41 of file moIODevice.h.

Constructor & Destructor Documentation

moIODevice::moIODevice ( )

constructor genrico de la clase.

moIODevice::~moIODevice ( )
virtual

constructor genrico de la clase.

Definition at line 41 of file moIODeviceManager.cpp.

moIODevice::moIODevice ( )

constructor genérico de la clase.

virtual moIODevice::~moIODevice ( )
virtual

constructor genérico de la clase.

Member Function Documentation

virtual MOboolean moIODevice::Finish ( )
pure virtual

constructor genrico de la clase.

Reimplemented from moMoldeoObject.

Implemented in moFileRead, and moFileWrite.

virtual MOboolean moIODevice::Finish ( )
pure virtual

constructor genérico de la clase.

Reimplemented from moMoldeoObject.

Implemented in moFileRead, and moFileWrite.

virtual MOdevcode moIODevice::GetCode ( moText  )
pure virtual

constructor genrico de la clase.

Implemented in moFileRead, and moFileWrite.

virtual MOdevcode moIODevice::GetCode ( moText  )
pure virtual

constructor genérico de la clase.

Implemented in moFileRead, and moFileWrite.

MOint moIODevice::GetId ( )
inline

constructor genrico de la clase.

Definition at line 139 of file moIODevice.h.

MOint moIODevice::GetId ( )
inline

constructor genérico de la clase.

Definition at line 141 of file moIODeviceManager.h.

MOint moIODevice::GetNValues ( MOdevcode  devcode)
virtual

constructor genrico de la clase.

Definition at line 80 of file moIODeviceManager.cpp.

virtual MOint moIODevice::GetNValues ( MOdevcode  )
virtual

constructor genérico de la clase.

MOpointer moIODevice::GetPointer ( MOdevcode  devcode)
virtual

constructor genrico de la clase.

Definition at line 85 of file moIODeviceManager.cpp.

virtual MOpointer moIODevice::GetPointer ( MOdevcode  )
virtual

constructor genérico de la clase.

virtual MOswitch moIODevice::GetStatus ( MOdevcode  )
pure virtual

constructor genrico de la clase.

Implemented in moFileRead, and moFileWrite.

virtual MOswitch moIODevice::GetStatus ( MOdevcode  )
pure virtual

constructor genérico de la clase.

Implemented in moFileRead, and moFileWrite.

virtual MOint moIODevice::GetValue ( MOdevcode  )
pure virtual

constructor genrico de la clase.

Implemented in moFileRead, and moFileWrite.

moData moIODevice::GetValue ( MOdevcode  cd,
moDataType  p_type 
)
virtual

constructor genrico de la clase.

Definition at line 67 of file moIODeviceManager.cpp.

virtual MOint moIODevice::GetValue ( MOdevcode  devcode)
pure virtual

constructor genérico de la clase.

Implemented in moFileRead, and moFileWrite.

virtual moData moIODevice::GetValue ( MOdevcode  ,
moDataType   
)
virtual

constructor genérico de la clase.

MOint moIODevice::GetValue ( MOdevcode  devcode,
MOint  i 
)
virtual

constructor genrico de la clase.

Definition at line 74 of file moIODeviceManager.cpp.

virtual MOint moIODevice::GetValue ( MOdevcode  ,
MOint   
)
virtual

constructor genérico de la clase.

virtual MOboolean moIODevice::Init ( )
pure virtual

constructor genrico de la clase.

Reimplemented from moMoldeoObject.

Implemented in moFileRead, and moFileWrite.

virtual MOboolean moIODevice::Init ( )
pure virtual

constructor genérico de la clase.

Reimplemented from moMoldeoObject.

Implemented in moFileRead, and moFileWrite.

void moIODevice::SetId ( MOint  p_id)
inline

constructor genérico de la clase.

Definition at line 146 of file moIODeviceManager.h.

void moIODevice::SetId ( MOint  p_id)
inline

constructor genrico de la clase.

Definition at line 147 of file moIODevice.h.

virtual MOswitch moIODevice::SetStatus ( MOdevcode  ,
MOswitch   
)
pure virtual

constructor genrico de la clase.

Implemented in moFileRead, and moFileWrite.

virtual MOswitch moIODevice::SetStatus ( MOdevcode  ,
MOswitch   
)
pure virtual

constructor genérico de la clase.

Implemented in moFileRead, and moFileWrite.

void moIODevice::SetValue ( MOdevcode  cd,
MOint  vl 
)
virtual

constructor genrico de la clase.

Definition at line 45 of file moIODeviceManager.cpp.

void moIODevice::SetValue ( MOdevcode  cd,
MOfloat  vl 
)
virtual

constructor genrico de la clase.

Definition at line 50 of file moIODeviceManager.cpp.

virtual void moIODevice::SetValue ( MOdevcode  ,
MOint   
)
virtual

constructor genérico de la clase.

void moIODevice::SetValue ( MOdevcode  cd,
moData  data 
)
virtual

constructor genrico de la clase.

Definition at line 55 of file moIODeviceManager.cpp.

virtual void moIODevice::SetValue ( MOdevcode  ,
MOfloat   
)
virtual

constructor genérico de la clase.

void moIODevice::SetValue ( MOdevcode  cd,
MOlong  s,
MOpointer  pt 
)
virtual

constructor genrico de la clase.

Definition at line 60 of file moIODeviceManager.cpp.

virtual void moIODevice::SetValue ( MOdevcode  ,
moData   
)
virtual

constructor genérico de la clase.

virtual void moIODevice::SetValue ( MOdevcode  ,
MOlong  ,
MOpointer   
)
virtual

constructor genérico de la clase.

virtual void moIODevice::Update ( moEventList )
pure virtual

constructor genrico de la clase.

Reimplemented from moMoldeoObject.

Implemented in moFileRead, and moFileWrite.

virtual void moIODevice::Update ( moEventList )
pure virtual

constructor genérico de la clase.

Reimplemented from moMoldeoObject.

Implemented in moFileRead, and moFileWrite.

Member Data Documentation

MOint moIODevice::m_DeviceId
protected

Definition at line 150 of file moIODevice.h.


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