blob: 8f8f06772b5f67d62f1d30d209b4e115f1d219f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
// -*- 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 "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/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_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 */
|