summaryrefslogtreecommitdiff
path: root/TAO/CIAO/DAnCE/RTNodeApplication/NodeApplication_Task.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/CIAO/DAnCE/RTNodeApplication/NodeApplication_Task.h')
-rw-r--r--TAO/CIAO/DAnCE/RTNodeApplication/NodeApplication_Task.h82
1 files changed, 82 insertions, 0 deletions
diff --git a/TAO/CIAO/DAnCE/RTNodeApplication/NodeApplication_Task.h b/TAO/CIAO/DAnCE/RTNodeApplication/NodeApplication_Task.h
new file mode 100644
index 00000000000..5b14a2b5ab5
--- /dev/null
+++ b/TAO/CIAO/DAnCE/RTNodeApplication/NodeApplication_Task.h
@@ -0,0 +1,82 @@
+// -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file NodeApplication_Task.h
+ *
+ * $Id$
+ *
+ * An ACE_Task subclass that manages the RT-ORB thread for CIAO's RT
+ * NodeApplication.
+ *
+ * @author Nanbor Wang <nanbor@cs.wustl.edu>
+ */
+//=============================================================================
+
+
+#ifndef CIAO_NODEAPPLICATION_TASK_H
+#define CIAO_NODEAPPLICATION_TASK_H
+#include /**/ "ace/pre.h"
+
+#include "tao/ORB_Core.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "tao/ORB.h"
+#include "ace/Task.h"
+#include "ace/SString.h"
+
+namespace CIAO
+{
+ /**
+ * @class NodeApplication_task
+ *
+ * @brief An ACE_Task subclass that manages the RT-ORB therad
+ */
+ class NodeApplication_Task
+ : public virtual ACE_Task_Base
+ {
+ public:
+ // We can add a rt-task configuration facility here.
+ typedef struct _options
+ {
+ // default ctor.
+ _options () : use_callback_ (1) {}
+
+ // The name of the file to write stringified IOR to.
+ ACE_CString ior_output_filename_;
+
+ // Stringified IOR of a CIAO's callback object.
+ ACE_CString callback_ior_;
+
+ // CIAO ComponentServer uses the callback object to pass it's
+ // own object reference back to NodeApplicationManager.
+ int use_callback_;
+
+ // RTCAD extension filename.
+ ACE_CString rtcad_filename_;
+ } Options;
+
+ NodeApplication_Task (ACE_Thread_Manager &thread_manager,
+ CORBA::ORB_ptr orb,
+ Options &opts);
+
+ int svc (void);
+
+ protected:
+ CORBA::ORB_var orb_;
+
+ // ComponentServer config options.
+ Options options_;
+ };
+
+}
+
+#if defined (__ACE_INLINE__)
+# include "NodeApplication_Task.inl"
+#endif /* __ACE_INLINE__ */
+
+#include /**/ "ace/post.h"
+#endif /* CIAO_NODEAPPLICAITON_TASK_H */