00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef ACE_FRAMEWORK_COMPONENT_T_H
00014 #define ACE_FRAMEWORK_COMPONENT_T_H
00015 #include "ace/pre.h"
00016 #include "ace/Framework_Component.h"
00017
00018 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00019 # pragma once
00020 #endif
00021
00022 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 template <class Concrete>
00038 class ACE_Framework_Component_T : public ACE_Framework_Component
00039 {
00040 public:
00041
00042
00043
00044 ACE_Framework_Component_T (Concrete *concrete);
00045
00046
00047 ~ACE_Framework_Component_T (void);
00048
00049
00050 void close_singleton (void);
00051 };
00052
00053 ACE_END_VERSIONED_NAMESPACE_DECL
00054
00055
00056
00057
00058 #define ACE_REGISTER_FRAMEWORK_COMPONENT(CLASS, INSTANCE) \
00059 ACE_Framework_Repository::instance ()->register_component \
00060 (new ACE_Framework_Component_T<CLASS> (INSTANCE));
00061
00062 #if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
00063 #include "ace/Framework_Component_T.cpp"
00064 #endif
00065
00066 #if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
00067 #pragma implementation ("Framework_Component_T.cpp")
00068 #endif
00069
00070 #include "ace/post.h"
00071 #endif