Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / orbsvcs / performance-tests / RTEvent / lib / ORB_Task.h
blobcd19e3a4acc4208cc81f62961f66c14d1f8c0311
1 /**
2 * @file ORB_Task.h
4 * @author Carlos O'Ryan <coryan@uci.edu>
5 */
7 #ifndef TAO_PERF_RTEC_ORB_TASK_H
8 #define TAO_PERF_RTEC_ORB_TASK_H
10 #include "rtec_perf_export.h"
11 #include "tao/ORB.h"
12 #include "ace/Task.h"
14 #if !defined (ACE_LACKS_PRAGMA_ONCE)
15 # pragma once
16 #endif /* ACE_LACKS_PRAGMA_ONCE */
18 /**
19 * @class ORB_Task
21 * @brief Implement a simple ACE_Task to send the events
23 class TAO_RTEC_Perf_Export ORB_Task : public ACE_Task_Base
25 public:
26 /// Constructor
27 ORB_Task (CORBA::ORB_ptr orb);
29 /// Run the event loop
30 int svc ();
32 /// Smart-pointer operator
33 CORBA::ORB_ptr operator-> () const;
35 private:
36 CORBA::ORB_var orb_;
39 #if defined(__ACE_INLINE__)
40 #include "ORB_Task.inl"
41 #endif /* __ACE_INLINE__ */
43 #endif /* TAO_PERF_RTEC_ORB_TASK_H */