FACT++  1.0
InterpreterV8 Class Reference

#include <InterpreterV8.h>

+ Inheritance diagram for InterpreterV8:
+ Collaboration diagram for InterpreterV8:

Public Member Functions

 InterpreterV8 ()
virtual ~InterpreterV8 ()
std::vector< std::string > JsGetCommandList (const char *, int) const
virtual void JsLoad (const std::string &="")
virtual void JsStart (const std::string &)
virtual void JsEnd (const std::string &="")
virtual void JsPrint (const std::string &="")
virtual void JsAlarm (const std::string &="")
virtual void JsOut (const std::string &)
virtual void JsWarn (const std::string &)
virtual void JsResult (const std::string &)
virtual void JsException (const std::string &)
virtual bool JsSend (const std::string &)
virtual State JsState (const std::string &)
virtual void * JsSubscribe (const std::string &)
virtual bool JsUnsubscribe (const std::string &)
virtual bool JsNewState (int, const std::string &, const std::string &)
virtual bool JsSetState (int)
virtual bool JsHasState (int) const
virtual bool JsHasState (const std::string &) const
virtual int JsGetState (const std::string &) const
virtual State JsGetCurrentState () const
virtual std::vector< StateJsGetStates (const std::string &)
virtual std::set< ServiceJsGetServices ()
virtual std::vector< DescriptionJsGetDescription (const std::string &)
virtual std::vector< DescriptionJsDescription (const std::string &)
virtual std::pair< uint64_t, EventImp * > JsGetEvent (const std::string &)
int JsHandleInterrupt (const EventImp &)
void JsHandleEvent (const EventImp &, uint64_t, const std::string &)
void JsHandleState (const std::string &, const State &)
void AddFormatToGlobal ()
bool JsRun (const std::string &, const std::map< std::string, std::string > &=std::map< std::string, std::string >())

Static Public Member Functions

static void JsStop ()

Private Member Functions

v8::Handle< v8::Value > HandleInterruptImp (std::string, uint64_t)

Private Attributes

int fThreadId
std::set< int > fThreadIds
std::map< std::string, v8::Persistent< v8::Object > > fReverseMap
std::map< std::string, v8::Persistent< v8::Object > > fStateCallbacks
std::vector< std::thread > fThreads
std::vector< std::pair< int, std::string > > fStates
v8::Persistent< v8::Object > fInterruptCallback

Static Private Attributes

static InterpreterV8This = 0
static v8::Handle< v8::FunctionTemplate > fTemplateLocal
static v8::Handle< v8::FunctionTemplate > fTemplateSky
static v8::Handle< v8::FunctionTemplate > fTemplateEvent
static v8::Handle< v8::FunctionTemplate > fTemplateDescription

Detailed Description

Definition at line 25 of file InterpreterV8.h.

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