20#ifndef _USAGE_ENVIRONMENT_HH
21#define _USAGE_ENVIRONMENT_HH
23#ifndef _USAGEENVIRONMENT_VERSION_HH
45#define _setmode setmode
46#define _O_BINARY O_BINARY
111 void* clientData) = 0;
125 int64_t microseconds,
TaskFunc* proc,
135 #define SOCKET_READABLE (1<<1)
136 #define SOCKET_WRITABLE (1<<2)
137 #define SOCKET_EXCEPTION (1<<3)
void TaskFunc(void *clientData)
virtual void unscheduleDelayedTask(TaskToken &prevTask)=0
void turnOnBackgroundReadHandling(int socketNum, BackgroundHandlerProc *handlerProc, void *clientData)
virtual void deleteEventTrigger(EventTriggerId eventTriggerId)=0
virtual void triggerEvent(EventTriggerId eventTriggerId, void *clientData=NULL)=0
virtual void internalError()
virtual void setBackgroundHandling(int socketNum, int conditionSet, BackgroundHandlerProc *handlerProc, void *clientData)=0
void BackgroundHandlerProc(void *clientData, int mask)
virtual EventTriggerId createEventTrigger(TaskFunc *eventHandlerProc)=0
virtual void moveSocketHandling(int oldSocketNum, int newSocketNum)=0
virtual void rescheduleDelayedTask(TaskToken &task, int64_t microseconds, TaskFunc *proc, void *clientData)
virtual void doEventLoop(char volatile *watchVariable=NULL)=0
virtual TaskToken scheduleDelayedTask(int64_t microseconds, TaskFunc *proc, void *clientData)=0
void disableBackgroundHandling(int socketNum)
void turnOffBackgroundReadHandling(int socketNum)
virtual void internalError()
virtual void reportBackgroundError()=0
virtual UsageEnvironment & operator<<(void *p)=0
virtual void setResultErrMsg(MsgString msg, int err=0)=0
virtual int getErrno() const =0
virtual ~UsageEnvironment()
virtual void appendToResultMsg(MsgString msg)=0
virtual MsgString getResultMsg() const =0
virtual void setResultMsg(MsgString msg1, MsgString msg2)=0
TaskScheduler & fScheduler
virtual UsageEnvironment & operator<<(double d)=0
virtual void setResultMsg(MsgString msg)=0
virtual void setResultMsg(MsgString msg1, MsgString msg2, MsgString msg3)=0
virtual UsageEnvironment & operator<<(int i)=0
TaskScheduler & taskScheduler() const
virtual UsageEnvironment & operator<<(char const *str)=0
UsageEnvironment(TaskScheduler &scheduler)
virtual UsageEnvironment & operator<<(unsigned u)=0