1 //===-- CFBundle.h ----------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // Created by Greg Clayton on 1/16/08.
12 //===----------------------------------------------------------------------===//
14 #ifndef __CFBundle_h__
15 #define __CFBundle_h__
19 class CFBundle : public CFReleaser<CFBundleRef> {
21 //------------------------------------------------------------------
22 // Constructors and Destructors
23 //------------------------------------------------------------------
24 CFBundle(const char *path = NULL);
25 CFBundle(const CFBundle &rhs);
26 CFBundle &operator=(const CFBundle &rhs);
28 bool SetPath(const char *path);
30 CFStringRef GetIdentifier() const;
32 CFURLRef CopyExecutableURL() const;
35 CFReleaser<CFURLRef> m_bundle_url;
38 #endif // #ifndef __CFBundle_h__