00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef ACE_DYNAMIC_SERVICE_BASE_H
00015 #define ACE_DYNAMIC_SERVICE_BASE_H
00016
00017 #include "ace/pre.h"
00018
00019 #include "ace/ACE_export.h"
00020
00021 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00022 # pragma once
00023 #endif
00024
00025 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00026
00027 class ACE_Service_Gestalt;
00028 class ACE_Service_Type;
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 class ACE_Export ACE_Dynamic_Service_Base
00039 {
00040
00041 public:
00042
00043 void dump (void) const;
00044
00045 protected:
00046
00047 static void* instance (const ACE_TCHAR *name);
00048
00049 static void* instance (const ACE_TCHAR *name, bool no_global);
00050
00051
00052 static void* instance (const ACE_Service_Gestalt* repo,
00053 const ACE_TCHAR *name);
00054
00055 static void* instance (const ACE_Service_Gestalt* repo,
00056 const ACE_TCHAR *name,
00057 bool no_global);
00058
00059
00060 ACE_Dynamic_Service_Base (void);
00061 ~ACE_Dynamic_Service_Base (void);
00062 const ACE_Dynamic_Service_Base& operator= (const ACE_Dynamic_Service_Base&);
00063
00064 private:
00065
00066
00067 static const ACE_Service_Type *find_i (const ACE_Service_Gestalt* &repo,
00068 const ACE_TCHAR *name,
00069 bool no_global);
00070
00071
00072
00073 friend class ACE_Dynamic_Service_Dependency;
00074 };
00075
00076 ACE_END_VERSIONED_NAMESPACE_DECL
00077
00078 #include "ace/post.h"
00079 #endif