2 #ifndef JAWS_EVENT_RESULT_H
3 #define JAWS_EVENT_RESULT_H
5 #include "ace/OS_NS_errno.h"
6 #include "ace/os_include/os_stddef.h" /* Needed for size_t */
8 #include "jaws3/Export.h"
10 class JAWS_Event_Result
;
12 class JAWS_Export JAWS_Event_Result
63 JAWS_Event_Result ( size_t bytes
= 0
64 , JE_STATUS status
= JE_IDLE
65 , JE_REASON reason
= JE_NO_REASON
66 , int error_number
= -1
72 , error_number_ (error_number
)
75 if (this->error_number_
== -1)
76 this->error_number_
= errno
;
79 size_t bytes () const { return this->bytes_
; }
81 int status () const { return this->status_
; }
82 int reason () const { return this->reason_
; }
84 int error_number () const { return (errno
= this->error_number_
); }
86 void * data () const { return this->data_
; }
99 #endif /* JAWS_EVENT_RESULT_H */