Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Service_Gestalt.inl
blob3add95108d6f872fb618234ed30a62b95e23856b
1 // -*- C++ -*-
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).
9 ACE_INLINE int
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,
20                        logger_key,
21                        ignore_static_svcs,
22                        ignore_default_svc_conf,
23                        ignore_debug_flag);
26 ACE_INLINE int
27 ACE_Service_Gestalt::open (int argc,
28                           ACE_TCHAR *argv[],
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,
41                           argv,
42                           ignore_default_svc_conf) == -1)
43     return -1;
45   return this->open_i (argv == 0 ? 0 : argv[0],
46                        logger_key,
47                        this->no_static_svcs_,
48                        ignore_default_svc_conf,
49                        ignore_debug_flag);
52 /// Searches for a service object declaration in the local repo, only
54 ACE_INLINE int
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.
63   if (this->repo_ != 0)
64     return this->repo_->find (name, srp, ignore_suspended);
66   return 0;
69 ACE_INLINE ACE_Service_Repository*
70 ACE_Service_Gestalt::current_service_repository ()
72   return this->repo_;
75 ACE_END_VERSIONED_NAMESPACE_DECL