19 :
CFCReleaser<CFBundleRef>(url ? CFBundleCreate(NULL, url) : NULL) {}
26 CFAllocatorRef alloc = kCFAllocatorDefault;
36 alloc, cf_path.get(), kCFURLPOSIXPathStyle,
true));
38 reset(::CFBundleCreate(alloc, bundle_url.get()));
44 CFBundleRef bundle = get();
47 if (bundle_url.get()) {
48 Boolean resolveAgainstBase = 0;
49 return ::CFURLGetFileSystemRepresentation(bundle_url.get(),
51 (UInt8 *)dst, dst_len) != 0;
58 CFBundleRef bundle = get();
60 return ::CFBundleGetIdentifier(bundle);
65 CFBundleRef bundle = get();
67 return ::CFBundleGetValueForInfoDictionaryKey(bundle, key);
72 CFBundleRef bundle = get();
74 return CFBundleCopyExecutableURL(bundle);
CFStringRef GetIdentifier() const
bool SetPath(const char *path)
CFURLRef CopyExecutableURL() const
CFCBundle(const char *path=NULL)
CFTypeRef GetValueForInfoDictionaryKey(CFStringRef key) const
bool GetPath(char *dst, size_t dst_len)
CFStringRef SetFileSystemRepresentation(const char *path)