|
#include "SingleState.h"
#include "sme.h"
#include <stdio.h>
#include "sme_cross_platform.h"
/* Test Case: A state machine with a single state. */
SME_HANDLER_CLASS_DEF(CSingleState)
/* Define Root (Composite-state) of Player*/
SME_BEGIN_ROOT_COMP_STATE_DEF(SingleState, SingleStateEntry, SingleStateExit)
SME_END_STATE_DEF
SME_END_COMP_STATE_DEF(SingleState)
SME_OBJ_DEF(SingleState1, SingleState)
BOOL CSingleState::SingleStateEntry(SME_OBJ_T *pDestObj, SME_EVENT_T *pEvent)
{
printf("SingleStateEntry\n");
return TRUE;
}
BOOL CSingleState::SingleStateExit(SME_OBJ_T *pDestObj, SME_EVENT_T *pEvent)
{
printf("SingleStateExit\n");
return TRUE;
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.