blob: 558137b64d55d267302a33d31f9635410cab5e44 (
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
70
71
72
73
74
75
76
77
|
// -*- C++ -*-
//=============================================================================
/**
* @file StandardConfigurator_Impl.h
*
* $Id$
*
* This file contains implementation for the servant of
* Components::StandardConfigurator interface.
*
* @author Jules White <jules@dre.vanderbilt.edu>
*/
//=============================================================================
#ifndef CIAO_STANDARDCONFIGURATOR_IMPL_H
#define CIAO_STANDARDCONFIGURATOR_IMPL_H
# include /**/ "ace/pre.h"
#include "CCM_StandardConfiguratorS.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "CIAO_Server_Export.h"
#include "Servant_Impl_Base.h"
namespace CIAO
{
/**
* @class StandardConfigurator_Impl
*
* @brief Servant implementation for Components::StandardConfigurator
*
* This class implements the Components::StandardConfigurator
* interface as defined by the CCM spcification. This class aids
* in setting the initial values of component attributes that are
* defined in the meta data.
*/
class CIAO_SERVER_Export StandardConfigurator_Impl
: public virtual POA_Components::StandardConfigurator
{
public:
/// Constructor
StandardConfigurator_Impl (Servant_Impl_Base* toconfigure);
/// Destructor
virtual ~StandardConfigurator_Impl (void);
/// This method will call set_attributes on the component that is
/// being configured, i.e, the template method from
/// StandardConfigurator interface.
virtual void set_configuration (
const Components::ConfigValues & descr
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
void configure (
Components::CCMObject_ptr comp
ACE_ENV_ARG_DECL_WITH_DEFAULTS)
ACE_THROW_SPEC ((CORBA::SystemException,
Components::WrongComponentType));
private:
/// The component whose attributes are going to be configured via
/// set_attributes
Servant_Impl_Base* component_;
};
}
#include /**/ "ace/post.h"
#endif /* CIAO_STANDARDCONFIGURATOR_IMPL_H */
|