summaryrefslogtreecommitdiff
path: root/modules/CIAO/DAnCE/NodeApplication/NodeApplication_Core.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules/CIAO/DAnCE/NodeApplication/NodeApplication_Core.h')
-rw-r--r--modules/CIAO/DAnCE/NodeApplication/NodeApplication_Core.h70
1 files changed, 70 insertions, 0 deletions
diff --git a/modules/CIAO/DAnCE/NodeApplication/NodeApplication_Core.h b/modules/CIAO/DAnCE/NodeApplication/NodeApplication_Core.h
new file mode 100644
index 00000000000..aceef49209c
--- /dev/null
+++ b/modules/CIAO/DAnCE/NodeApplication/NodeApplication_Core.h
@@ -0,0 +1,70 @@
+// -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file NodeApplication_Core.h
+ *
+ * $Id$
+ *
+ * An ACE_Task subclass that manages the NodeApplication runtime. We
+ * can run this class as a separate thread, as in the case of RT
+ * support, or as a event driven ORB.
+ *
+ * @author Nanbor Wang <nanbor@cs.wustl.edu>
+ */
+//=============================================================================
+
+
+#ifndef CIAO_NODEAPPLICATION_CORE_H
+#define CIAO_NODEAPPLICATION_CORE_H
+#include /**/ "ace/pre.h"
+
+#include "CIAO_NodeApplication_export.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "tao/ORB_Core.h"
+#include "tao/ORB.h"
+#include "ace/Task.h"
+#include "ace/Auto_Ptr.h"
+#include "Configurator_Factory.h"
+#include "NoOp_Configurator.h"
+
+namespace CIAO
+{
+ /**
+ * @class NodeApplication_Core
+ *
+ * @brief An ACE_Task subclass that allow the ORB thread to be run
+ * as separate thread when RT behaviors are needed.
+ */
+ class NODEAPPLICATION_Export NodeApplication_Core
+ : public virtual ACE_Task_Base
+ {
+ public:
+ NodeApplication_Core (NodeApplication_Options &opts);
+
+ virtual int svc (void);
+
+ int startup (int argc, char *argv[]);
+
+ int run_orb (void);
+
+ protected:
+ CORBA::ORB_var orb_;
+
+ NodeApplication_Options &options_;
+
+ auto_ptr<NodeApp_Configurator> configurator_;
+ };
+
+}
+
+#if defined (__ACE_INLINE__)
+# include "NodeApplication_Core.inl"
+#endif /* __ACE_INLINE__ */
+
+#include /**/ "ace/post.h"
+#endif /* CIAO_NODEAPPLICAITON_CORE_H */