Libmacro  0.2
Libmacro is an extensible macro and hotkey library.
mcr::Interrupt Class Reference
Inheritance diagram for mcr::Interrupt:
mcr::ISignalMember mcr::IInterrupt mcr::IDataMember

Public Member Functions

 Interrupt (IInterrupt *iintercept=nullptr, const char *target="All", int type=Macro::INTERRUPT_ALL)
 
 Interrupt (const Interrupt &)
 
Interruptoperator= (const Interrupt &)
 
virtual int compare (const IDataMember &rhs) const override
 
virtual void copy (const IDataMember *copytron) override
 
virtual const char * name () const override
 
virtual void send (mcr_Signal *signalPt) override
 
virtual int type () const override
 
virtual void setType (int val) override
 
virtual const char * target () const override
 
virtual void setTarget (const char *val) override
 
virtual IInterruptiinterrupt () const override
 
virtual void setIInterrupt (IInterrupt *val) override
 
virtual void interrupt (const char *target, int type) override
 
- Public Member Functions inherited from mcr::ISignalMember
bool operator== (const ISignalMember &rhs)
 
bool operator< (const ISignalMember &rhs)
 
bool operator> (const ISignalMember &rhs)
 
void operator() (mcr_Signal *signalPt=nullptr)
 
- Public Member Functions inherited from mcr::IDataMember
bool operator== (const IDataMember &rhs)
 
bool operator< (const IDataMember &rhs)
 
bool operator> (const IDataMember &rhs)
 
virtual size_t addNameCount () const
 
virtual void addNames (const char **, size_t) const
 

Static Public Attributes

static IInterruptdefaultInterrupt
 

Friends

class InterruptPrivate
 

Detailed Description

Definition at line 49 of file interrupt.h.

Constructor & Destructor Documentation

§ Interrupt()

mcr::Interrupt::Interrupt ( IInterrupt iintercept = nullptr,
const char *  target = "All",
int  type = Macro::INTERRUPT_ALL 
)

Set of Macros to do interrupt actions on

Member Function Documentation

§ compare()

virtual int mcr::Interrupt::compare ( const IDataMember rhs) const
overridevirtual

§ copy()

virtual void mcr::Interrupt::copy ( const IDataMember copytron)
overridevirtual

mcr_Instance_copy

Parameters
copytronopt

Implements mcr::IDataMember.

§ name()

virtual const char* mcr::Interrupt::name ( ) const
inlineoverridevirtual

mcr_Interface_set_name

Implements mcr::IDataMember.

Definition at line 66 of file interrupt.h.

§ send()

virtual void mcr::Interrupt::send ( mcr_Signal signalPt)
overridevirtual

mcr_send We highly suggest you inline this function, as it will be called as the fully quallified class from SignalType.send.

Inline is only suggested if the send function is not complex. Can get C++ Context with mcr_Interface::context and Libmacro.self

Implements mcr::ISignalMember.

§ target()

virtual const char* mcr::Interrupt::target ( ) const
overridevirtual

Null, empty, or name of macro.

All, case insensitive, is reserved to interrupt all macros.

Implements mcr::IInterrupt.

§ type()

virtual int mcr::Interrupt::type ( ) const
inlineoverridevirtual

How interrupt is processed

Macro::Interrupt

Implements mcr::IInterrupt.

Definition at line 75 of file interrupt.h.

Member Data Documentation

§ defaultInterrupt

IInterrupt* mcr::Interrupt::defaultInterrupt
static

Set this to iintercept if none is provided

Definition at line 54 of file interrupt.h.


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