3 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
6 // This is the primary entry point into the ACE_Service_Config (the
7 // constructor just handles simple initializations).
10 ACE_Service_Gestalt::open (const ACE_TCHAR program_name[],
11 const ACE_TCHAR *logger_key,
12 bool ignore_static_svcs,
13 bool ignore_default_svc_conf,
14 bool ignore_debug_flag)
16 ACE_TRACE ("ACE_Service_Gestalt::open");
17 this->no_static_svcs_ = ignore_static_svcs;
19 return this->open_i (program_name,
22 ignore_default_svc_conf,
27 ACE_Service_Gestalt::open (int argc,
29 const ACE_TCHAR *logger_key,
30 bool ignore_static_svcs,
31 bool ignore_default_svc_conf,
32 bool ignore_debug_flag)
34 ACE_TRACE ("ACE_Service_Gestalt::open");
36 // Parsing argv may change no_static_svcs_ so set the default here, then
37 // parse, then pass the final value to open_i().
38 this->no_static_svcs_ = ignore_static_svcs;
40 if (this->parse_args_i (argc,
42 ignore_default_svc_conf) == -1)
45 return this->open_i (argv == 0 ? 0 : argv[0],
47 this->no_static_svcs_,
48 ignore_default_svc_conf,
52 /// Searches for a service object declaration in the local repo, only
55 ACE_Service_Gestalt::find (const ACE_TCHAR name[],
56 const ACE_Service_Type **srp,
57 bool ignore_suspended) const
59 // Closing the gestalt will have disassociated it from the
60 // repository. If the repository used to be owned by the gestalt, it
61 // will also have been destroyed - so just check for repo_ before
62 // doing anything with it.
64 return this->repo_->find (name, srp, ignore_suspended);
69 ACE_INLINE ACE_Service_Repository*
70 ACE_Service_Gestalt::current_service_repository ()
75 ACE_END_VERSIONED_NAMESPACE_DECL