00001
00002
00003
00004
00005
00006
00007
00008
00009
00011
00012 #include <CvmService.h>
00013 #include "ace/Service_Repository.h"
00014 #include "ace/Service_Types.h"
00015 #include "ace/Dynamic_Service.h"
00016
00017 using namespace cvm;
00018
00019 const ACE_TCHAR * CvmService::rtrv_name (void)
00020 {
00021 ACE_Service_Repository_Iterator iter
00022 (*ACE_Service_Repository::instance (), 0);
00023
00024 for (const ACE_Service_Type *st;
00025 iter.next (st) != 0; iter.advance()) {
00026 const ACE_Service_Type_Impl *type = st->type();
00027 if (type == 0) continue;
00028 if (((ACE_Service_Object *)this) == type->object ())
00029 return st->name ();
00030 }
00031
00032 return "Unamed Object";
00033 }