component.h
fiftyoneDegreesString * fiftyoneDegreesComponentGetName(fiftyoneDegreesCollection *stringsCollection, fiftyoneDegreesComponent *component, fiftyoneDegreesCollectionItem *item, fiftyoneDegreesException *exception)
Returns the string name of the component using the item provided.
void * fiftyoneDegreesComponentReadFromFile(const fiftyoneDegreesCollectionFile *file, uint32_t offset, fiftyoneDegreesData *data, fiftyoneDegreesException *exception)
Read a component from the file collection provided and store in the data pointer.
const int32_t nameOffset
Offset in the strings data structure to the name.
Definition: component.h:81
Used to store a handle to the underlying item that could be used to release the item when it's finish...
Definition: collection.h:308
uint32_t fiftyoneDegreesComponentGetDefaultProfileId(fiftyoneDegreesCollection *profiles, fiftyoneDegreesComponent *component, fiftyoneDegreesException *exception)
Get the default profile id for the component provided.
Type of collection where the collection is streamed from file.
Definition: collection.h:445
Key value pair contained in each component.
Definition: component.h:69
const fiftyoneDegreesComponentKeyValuePair * fiftyoneDegreesComponentGetKeyValuePair(fiftyoneDegreesComponent *component, uint16_t index, fiftyoneDegreesException *exception)
Get a pointer to the key value pair at the specified index within the component's key value pairs lis...
Data structure used for reusing memory which may have been allocated in a previous operation.
Definition: data.h:101
const byte componentId
The unique Id of the component.
Definition: component.h:80
void fiftyoneDegreesComponentInitList(fiftyoneDegreesCollection *components, fiftyoneDegreesList *list, uint32_t count, fiftyoneDegreesException *exception)
Initialises the list of components.
const uint16_t keyValuesCount
The number of key value pairs at firstKeyValuePair.
Definition: component.h:85
const fiftyoneDegreesComponentKeyValuePair firstKeyValuePair
The first key value pair.
Definition: component.h:87
Structure used to represent a 51Degrees exception and passed into methods that might generate excepti...
Definition: exceptions.h:111
const int32_t defaultProfileOffset
Offset in the profiles data structure to the default profile.
Definition: component.h:83
All the shared methods and fields required by file, memory and cached collections.
Definition: collection.h:408