Service_Gestalt.inl

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 //
00003 // $Id: Service_Gestalt.inl 81388 2008-04-23 14:02:05Z johnnyw $
00004 
00005 
00006 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
00007 
00008 
00009 // This is the primary entry point into the ACE_Service_Config (the
00010 // constructor just handles simple initializations).
00011 
00012 ACE_INLINE int
00013 ACE_Service_Gestalt::open (const ACE_TCHAR program_name[],
00014                           const ACE_TCHAR *logger_key,
00015                           bool ignore_static_svcs,
00016                           bool ignore_default_svc_conf,
00017                           bool ignore_debug_flag)
00018 {
00019   ACE_TRACE ("ACE_Service_Gestalt::open");
00020   this->no_static_svcs_ = ignore_static_svcs;
00021 
00022   return this->open_i (program_name,
00023                        logger_key,
00024                        ignore_static_svcs,
00025                        ignore_default_svc_conf,
00026                        ignore_debug_flag);
00027 }
00028 
00029 ACE_INLINE int
00030 ACE_Service_Gestalt::open (int argc,
00031                           ACE_TCHAR *argv[],
00032                           const ACE_TCHAR *logger_key,
00033                           bool ignore_static_svcs,
00034                           bool ignore_default_svc_conf,
00035                           bool ignore_debug_flag)
00036 {
00037   ACE_TRACE ("ACE_Service_Gestalt::open");
00038 
00039   this->no_static_svcs_ = ignore_static_svcs;
00040 
00041   if (this->parse_args_i (argc,
00042                           argv,
00043                           ignore_default_svc_conf) == -1)
00044     return -1;
00045 
00046   return this->open_i (argv == 0 ? 0 : argv[0],
00047                        logger_key,
00048                        ignore_static_svcs,
00049                        ignore_default_svc_conf,
00050                        ignore_debug_flag);
00051 }
00052 
00053 /// Searches for a service object declaration in the local repo, only
00054 
00055 ACE_INLINE int
00056 ACE_Service_Gestalt::find (const ACE_TCHAR name[],
00057                            const ACE_Service_Type **srp,
00058                            bool ignore_suspended) const
00059 {
00060   // Closing the gestalt will have disassociated it from the
00061   // repository. If the repository used to be owned by the gestalt, it
00062   // will also have been destroyed - so just check for repo_ before
00063   // doing anything with it.
00064   if (this->repo_ != 0)
00065     return this->repo_->find (name, srp, ignore_suspended);
00066 
00067   return 0;
00068 }
00069 
00070 ACE_INLINE ACE_Service_Repository*
00071 ACE_Service_Gestalt::current_service_repository (void)
00072 {
00073   return this->repo_;
00074 }
00075 
00076 ACE_END_VERSIONED_NAMESPACE_DECL

Generated on Tue Feb 2 17:18:42 2010 for ACE by  doxygen 1.4.7