Inheritance diagram for CP_Bundle:
Public Member Functions | |
OSType | GetPackageCreator () const |
Get the creator signature for the bundle. | |
OSType | GetPackageType () const |
Get the package type for the bundle. | |
CP_FileSystemSpec | GetBundleFileSpec () const |
Get the bundle's location on disk. | |
CP_FileSystemSpec | GetBundleExecutableFileSpec () const |
Locate the bundle's executable on disk. | |
CP_String | GetShortVersionString () const |
Get the short version string from the bundle's Info dictionary. | |
UInt32 | GetVersionNumber () const |
Get the bundle version as a number. | |
CP_String | GetCopyrightString () const |
Get the copyright notice from the bundle's Info dictionary. | |
CP_String | GetIdentifier () const |
Get the bundle identifier. | |
CP_FileSystemSpec | LocateResourcesFolder () const |
Locate the resources folder inside the bundle. | |
CP_FileSystemSpec | LocatePluginsFolder () const |
Locate the plug ins folder inside the bundle. | |
CP_FileSystemSpec | LocateSharedSupportFolder () const |
Locate the shared support folder inside the bundle. | |
CP_FileSystemSpec | LocateContentsFolder () const |
Locate the contents folder inside the bundle. | |
CP_FileSystemSpec | LocateResourceFile (const CP_String &inResourcename, const CP_String &inResourcetype) const |
Locate a resource file within the bundle. | |
const CP_PropertyList::Node * | GetValueForDictionaryKey (const CP_String &inKey, CP_PropertyList::NodeType_t inRequestedValueType=CP_PropertyList::NodeType_Any) const |
Get a value from the bundle's info dictionary. | |
CP_Bundle & | operator= (const CP_Bundle &inBundle) |
assignment - make this bundle refer to the same package as inBundle. | |
Constructor / Destructor | |
CP_Bundle () | |
Default constructor. | |
CP_Bundle (const CP_Bundle &inBundle) | |
Copy constructor. | |
CP_Bundle (const CP_FileSystemSpec &inBundleFileSpec) | |
Constructor for bundle given bundle filespec. | |
CP_Bundle (const CP_String &inBundleIdentifier) | |
Constructor for bundle given bundle identifier. | |
virtual | ~CP_Bundle () throw () |
Destructor. | |
Constructor / Destructor | |
CP_Bundle (CFBundleRef inBundleRef) | |
Construct with CoreFoundation BundleRef. | |
Static Public Member Functions | |
static CP_Bundle & | MainBundle () |
Get the main (usually application) bundle. | |
Public Attributes | |
CP_FileSystemSpec | fBundleContents |
keep the bundle contents directory (the one that contains the Windows directory) | |
CP_SmartRef< CP_PropertyList::Dictionary > | fDictionary |
keep the dictionary readed from info.plist | |
Protected Member Functions | |
CP_PropertyList::Dictionary * | LoadInfoDictionary () const |
Getters | |
CP_CFURL | GetURL () const |
CP_CFURL | GetResourceURL () const |
CP_CFURL | GetResourceURL (const CP_String &inFileName, const CP_String &inExtension) const |
CFBundleRef | GetOSBundle () const |
CFTypeRef | GetValueForDictionaryKey (const CP_String &inKey) const |
Tester | |
bool | IsValid () |
Tester | |
bool | IsValid () |
Protected Attributes | |
CFBundleRef | fBundleRef |
OSType | fCreator |
OSType | fType |
|
Creates an empty CP_Bundle object |
|
Copy constructor |
|
Constructor for bundle given bundle file spec
|
|
Constructor for bundle given bundle identifier The current implementation will compare this new id with the one from the MainBundle and if they are not the same it will raise an exception
|
|
|
|
|
|
Create a CP_Bundle object for the current application
|
|
Get the creator signature for the bundle If the signature is not found in the info.plist file, 0 is returned
Reimplemented from CP_CFBundle. |
|
Get the package type for the bundle If the package type is not found in the info.plist file, 0 is returned
Reimplemented from CP_CFBundle. |
|
Get the bundle's location on the disk
|
|
Get the bundle's executable on disk
|
|
Get the short version string from the bundle's Info dictionary If the string is not found in the bundle info plist file, an empty string is returned.
Reimplemented from CP_CFBundle. |
|
Get the bundle version as a number If the verison is not in the bundle info plist file, 0 is returned
|
|
Get the copyright notice from the bundles' Info directory. If the notice is not in the bundle info plist file, an empty string is returned.
Reimplemented from CP_CFBundle. |
|
Get the bundle identifier. If the identifier is not present in the bundle info plist file, an empty string is returned.
|
|
Get the resources folder inside the bundle
|
|
Get the plug ins folder inside the bundle
|
|
Get the shared support folder inside the bundle
|
|
Get the contents folder inside the bundle
|
|
Locate the resource file inside the bundle
|
|
Get a value from the bundle's info dictionary. If the value is not found NULL is returned. If an expected value type is specified (other than CP_PropertyList::NodeType_Any) and the found value's type does not match, an exception is raised.
|
|
Assignement operator |
|
|
|
Returns a CP_CFURL object that points to this bundle.
|
|
Returns a CP_CFURL object that points to the resources URL inn the bundle.
|
|
Returns a CP_CFURL object that points to a file in the resource folder of the main bundle.
|
|
Return the MacOS CFBundleRef for this bundle.
|
|
Returns the value for the passed in dictionary key.
|
|
Returns true if the object represents a bundled object in the MacOS system.
|
|
|
|
|
|
|
|
The bundle we manage. |
|
Creator code of the bundle. |