83 (
const char *name, SdsCodeType type,
DcppVoidPnt value,
112 enum StateEnum { INIT, WAIT_ID, ACTIVE } state;
116 const char *StateString(StateEnum state)
const;
118 StatusType * status);
122 StatusType * status);
128 void FormatArg(
int count,
194 const bool SendCurrent,
195 const int count, StatusType *
const status, ...);
227 const bool SendCurrent,
228 const int count, StatusType *
const status, ...);
258 const char *
const MTask,
259 const char *
const Action,
262 const bool SendCurrent,
263 const int count, StatusType *
const status, ...);
295 const char *
const MTask,
296 const char *
const Action,
300 const bool SendCurrent,
301 const int count, StatusType *
const status, ...);
330 const char *
const MTask,
331 const char *
const Action,
334 const bool SendCurrent,
335 const int count, StatusType *
const status, ...);
367 const char *
const MTask,
368 const char *
const Action,
372 const bool SendCurrent,
373 const int count, StatusType *
const status, ...);
406 const char *
const name,
407 StatusType *
const status,
442 const char *
const name,
443 StatusType *
const status,
478 StatusType *
const status,
488 return (state == INIT);
496 return (state == WAIT_ID);
503 return (state == ACTIVE);
A C++ Interface to the SDS Arg library.
Definition arg.h:263
void ForwardForget(const char *const MTask, const char *const Action, const DcppHandlerRoutine CompletedHandler, const DcppVoidPnt ClientData, const bool SendCurrent, const int count, StatusType *const status,...)
Start a monitor forward operation but orphan it.
bool IsInitial()
Returns true if the monitor operation has not yet been started.
Definition dcppmonitor.h:487
void Forward(const char *const MTask, const char *const Action, const DcppHandlerRoutine StartedHandler, const DcppHandlerRoutine CompletedHandler, const DcppVoidPnt ClientData, const bool SendCurrent, const int count, StatusType *const status,...)
Start a monitor forward operation, with started handler.
void Delete(const char *const name, StatusType *const status, const DcppHandlerRoutine SuccessHandler=0, const DcppHandlerRoutine ErrorHandler=0, const DcppVoidPnt ClientData=0) const
Delete a parameter from the list of parameters being monitored.
void Reset()
Reset the state of the monitor.
Definition dcppmonitor.h:508
DcppTask * Task() const
Return the associated task object.
Definition dcppmonitor.h:161
bool IsActive()
Returns true if the monitor operation is active.
Definition dcppmonitor.h:502
void Cancel(StatusType *const status, const DcppHandlerRoutine SuccessHandler=0, const DcppHandlerRoutine ErrorHandler=0, const DcppVoidPnt ClientData=0) const
Trigger the cancelling of a monitor operation.
void ForwardStartForget(const char *const MTask, const char *const Action, const DcppHandlerRoutine StartHandler, const DcppHandlerRoutine CompletedHandler, const DcppVoidPnt ClientData, const bool SendCurrent, const int count, StatusType *const status,...)
Start a monitor forward operation but orphan it after starting.
void Monitor(const DcppMonChangedRoutine ChangedHandler, const DcppHandlerRoutine CompletedHandler, const DcppVoidPnt ClientData, const bool SendCurrent, const int count, StatusType *const status,...)
Start a monitor operation.
bool IsStarting()
Returns true if the monitor operation is currently starting.
Definition dcppmonitor.h:495
void Add(const char *const name, StatusType *const status, const DcppHandlerRoutine SuccessHandler=0, const DcppHandlerRoutine ErrorHandler=0, const DcppVoidPnt ClientData=0) const
Add a parameter to the list of parameters being monitored.
void Forward(const char *const MTask, const char *const Action, const DcppHandlerRoutine CompletedHandler, const DcppVoidPnt ClientData, const bool SendCurrent, const int count, StatusType *const status,...)
Start a monitor forward operation.
DcppMonitor(DcppTask *Task)
Construct a parameter monitor controller for the specified task.
Definition dcppmonitor.h:155
void MonitorForget(const DcppMonChangedRoutine ChangedHandler, const DcppHandlerRoutine CompletedHandler, const DcppVoidPnt ClientData, const bool SendCurrent, const int count, StatusType *const status,...)
Start a monitor operation but orphan it.
A class which runs DRAMA parameter monitoring transactions.
Definition dcppmonitor.h:105
A Class which provides access to DRAMA's message sending facilities.
Definition dcpptask.h:132
void * DcppVoidPnt
A pointer to void
Definition dcpp.h:59
DcppHandlerRet(* DcppHandlerRoutine)(DcppVoidPnt ClientData, StatusType *status)
Type for call backs when messages arrive.
Definition dcpp.h:92
DcppHandlerRet
Type returns by various routines to indicate what is to happen next.
Definition dcpp.h:75
void(* DcppMonChangedRoutine)(const char *name, SdsCodeType type, DcppVoidPnt value, DcppVoidPnt ClientData, StatusType *status)
Type for monitor changed callbacks.
Definition dcppmonitor.h:83