1 //===-- CFCBundle.h ---------------------------------------------*- C++ -*-===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_SOURCE_HOST_MACOSX_CFCPP_CFCBUNDLE_H
10 #define LLDB_SOURCE_HOST_MACOSX_CFCPP_CFCBUNDLE_H
12 #include "CFCReleaser.h"
14 class CFCBundle
: public CFCReleaser
<CFBundleRef
> {
16 // Constructors and Destructors
17 CFCBundle(const char *path
= NULL
);
18 CFCBundle(CFURLRef url
);
20 ~CFCBundle() override
;
22 CFURLRef
CopyExecutableURL() const;
24 CFStringRef
GetIdentifier() const;
26 CFTypeRef
GetValueForInfoDictionaryKey(CFStringRef key
) const;
28 bool GetPath(char *dst
, size_t dst_len
);
30 bool SetPath(const char *path
);
33 // Disallow copy and assignment constructors
34 CFCBundle(const CFCBundle
&) = delete;
36 const CFCBundle
&operator=(const CFCBundle
&) = delete;
39 #endif // LLDB_SOURCE_HOST_MACOSX_CFCPP_CFCBUNDLE_H