1 //===-- CFBundle.h ----------------------------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 //  Created by Greg Clayton on 1/16/08.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef __CFBundle_h__
15 #define __CFBundle_h__
16 
17 #include "CFUtils.h"
18 
19 class CFBundle : public CFReleaser<CFBundleRef>
20 {
21 public:
22     //------------------------------------------------------------------
23     // Constructors and Destructors
24     //------------------------------------------------------------------
25     CFBundle(const char *path = NULL);
26     CFBundle(const CFBundle& rhs);
27     CFBundle& operator=(const CFBundle& rhs);
28     virtual ~CFBundle();
29 
30         bool SetPath (const char *path);
31         CFStringRef GetIdentifier () const;
32 
33 protected:
34         CFReleaser<CFURLRef> m_bundle_url;
35 };
36 
37 #endif // #ifndef __CFBundle_h__
38