Interface ObjectFile
access this type via: util.ObjectFile (provides, requires or uses)
Utility to inspect compiled Dana components. This is primarily used to examine and modify 'info sections' in these components such as the list of interfaces that a component has.
Transfer fields
char objectPath[]
Functions
ObjectFile(char path[])
ObjectInfo getInfo()
InfoSection[] getInfoSections()
InfoSection getInfoSection(char type[], char cType[])
void addInfoSection(InfoSection newSection)
void deleteInfoSection(char type[], char cType[])
Transfer fields
objectPath The file path of the object file being operated on.
ObjectFile(char path[])
Create an ObjectFile for a given compiled component file.
ObjectInfo getInfo()
Get general information about the object file.
InfoSection[] getInfoSections()
Get the list of info section names contained in the object file (excluding their content).
InfoSection getInfoSection(char type[], char cType[])
Get the details (including contents) of a specific info section from the object file.
type The section type to search for.
cType The content type to search for (if null, the first matching section type is returned).
void addInfoSection(InfoSection newSection)
Add a new info section to the object file. Note that the name and type fields are a maximum of 4 characters (any additional characters are truncated).
void deleteInfoSection(char type[], char cType[])
Delete the first occurence of an info section from the object file.
type The section type to search for.
cType The content type to search for (if null, the first matching section type is deleted).