blob: 84bf95005dd593d9d38c65a74de46a0fa6072c62 (
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
|
// This may look like C, but it's really -*- C++ -*-
//=============================================================================
/*
* @file Codeset_Manager_Factory_Base.h
*
* $Id$
*
* Interface for the TAO CodeSet Manager.
*
* @author Mahesh Vedantam <mahesh#ociweb.com>
*/
//=============================================================================
#ifndef TAO_CODESET_MANAGER_FACTORY_BASE_H
#define TAO_CODESET_MANAGER_FACTORY_BASE_H
#include /**/ "ace/pre.h"
#include "ace/Service_Object.h"
#include "ace/Service_Config.h"
#include "TAO_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
class TAO_ORB_Core;
class TAO_Codeset_Manager;
/**
* @class TAO_Codeset_Manager_Factory_Base
*
* @brief Base class for creating instances of the codeset manager.
*
* @description The base also provides a default implementation which
* instantiates nothing. This default impl is replaced by the actual
* implementation is libTAO_Codeset is loaded.
*
*/
class TAO_Export TAO_Codeset_Manager_Factory_Base : public ACE_Service_Object
{
public:
virtual ~TAO_Codeset_Manager_Factory_Base ();
/// Create makes a new instance of the codeset manager for every
/// call. This allows multiple ORBs to have their own (or none).
/// This default implementation returns a null pointer only.
virtual TAO_Codeset_Manager *create(TAO_ORB_Core *orb_core);
/// Is_default is called by the ORB Core to determine if it needs
/// to reload the factory with a dynamically linked libTAO_Codeset.
/// Statically linked applications get derive implementation by
/// including "tao/Codeset/Codeset.h" somewhere in their source code.
virtual int is_default (void) const;
/// Static initializer ensures the factory is loaded
static int initialize (void);
};
ACE_STATIC_SVC_DECLARE (TAO_Codeset_Manager_Factory_Base)
ACE_FACTORY_DECLARE (TAO, TAO_Codeset_Manager_Factory_Base)
#include /**/ "ace/post.h"
#endif /* TAO_CODESET_MANAGER_FACTORY_BASE_H */
|