summaryrefslogtreecommitdiff
path: root/ace/Dynamic_Service_Base.h
blob: ac774f7a4ebe6fb552b9ea44851f7f785d91f4a2 (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
/* -*- C++ -*- */

//=============================================================================
/**
 *  @file Dynamic_Service_Base.h
 *
 *  $Id$
 *
 *  @author Prashant Jain
 *  @author Doug Schmidt
 */
//=============================================================================

#ifndef ACE_DYNAMIC_SERVICE_BASE_H
#define ACE_DYNAMIC_SERVICE_BASE_H
#include "ace/pre.h"

#include "ace/OS.h"

/**
 * @class ACE_Dynamic_Service_Base
 *
 * @brief Base class for all ACE_Dynamic_Service instantiations.
 *
 * Factors out common code shared by all ACE_Dynamic_Service
 * instantiations, this avoid code bloat.
 */
class ACE_Export ACE_Dynamic_Service_Base
{
public:
  /// Dump the current static of the object
  void dump (void) const;

protected:
  /// Return instance using <name> to search the Service_Repository.
  static void* instance (const ACE_TCHAR *name);
};

#include "ace/post.h"
#endif /* ACE_DYNAMIC_SERVICE_BASE_H */