157 JSON+=
"'event': '"+evtJSON+
"'";
231 JSON+=
"'MO_IODEVICE_CONSOLE',";
239 JSON+=
"'MO_ACTION_MOLDEOAPI_EVENT_SEND',";
241 JSON+=
"'MO_ACTION_MOLDEOAPI_EVENT_RECEIVE',";
249 JSON+=
"'MO_MESSAGE',";
251 JSON+=
"'MO_DATAMESSAGE',";
336 }
else if (
Last!=NULL) {
410 }
else if(ev==
Last) {
444 }
else if(ev==
Last) {
485 sendInterval = p_sendInterval;
486 maxEventNum = p_maxEventNum;
489 pointer = (
void*)buffer_events;
498 if (buffer_events != NULL)
500 delete[] buffer_events;
501 buffer_events = NULL;
507 for(
int i=0;i<maxEventNum;i++) buffer_events[i] = empty_event;
527 if ( num_events < maxEventNum )
529 buffer_events[num_events] = new_event;
543 return (sendInterval <= time1 - time0) || packet_full;
moMoldeoObjectType
Tipos de objetos en Moldeo.
void SetText(moText ptext)
virtual ~moEvent()
Destructor.
virtual const moText & ToJSON()
#define MO_ACTION_MOLDEOAPI_EVENT_SEND
MOboolean Delete(moEvent *ev)
bool AddEvent(moEvent *e)
moDefineDynamicArray(moEventPacketArray)
moMoldeoObjectType m_TypeDest
MOboolean Finish()
Finaliza el objeto, libera recursos.
clase de para manejar textos
void Add(moMessage *p_Message)
Estructura base de un evento.
moMessage & operator=(const moMessage &src)
#define MO_IODEVICE_CONSOLE
virtual const moText & ToJSON()
MOboolean Init()
Inicializa el objeto.
moEventPacket(float p_sendInterval, int p_maxEventNum)
LIBMOLDEO_API moText0 IntToStr(int a)
moMoldeoObjectType m_TypeSrc
#define MO_ACTION_MOLDEOAPI_EVENT_RECEIVE
MOulong moGetTicks()
Devuelve en milisegundos el valor del reloj de Moldeo.