RAVE
|
Provides support for reading and writing areas to and from an xml-file. More...
Go to the source code of this file.
Typedefs | |
typedef struct _AreaRegistry_t | AreaRegistry_t |
Defines the area registry. | |
Functions | |
AreaRegistry_t * | AreaRegistry_load (const char *filename, ProjectionRegistry_t *pRegistry) |
Simplified loading function, takes filename and a projection registry. | |
int | AreaRegistry_add (AreaRegistry_t *self, Area_t *area) |
Adds an area to the registry. | |
int | AreaRegistry_size (AreaRegistry_t *self) |
Returns the number of registered areas. | |
Area_t * | AreaRegistry_get (AreaRegistry_t *self, int index) |
Returns the area at specified index. | |
Area_t * | AreaRegistry_getByName (AreaRegistry_t *self, const char *id) |
Returns the area with the specified id. | |
void | AreaRegistry_remove (AreaRegistry_t *self, int index) |
Removes the area at the specified index. | |
void | AreaRegistry_removeByName (AreaRegistry_t *self, const char *id) |
Removes the area with the specified id. | |
void | AreaRegistry_setProjectionRegistry (AreaRegistry_t *self, ProjectionRegistry_t *registry) |
Sets a projection registry to be able to fetch projections. | |
ProjectionRegistry_t * | AreaRegistry_getProjectionRegistry (AreaRegistry_t *self) |
Sets a projection registry to be able to fetch projections. | |
int | AreaRegistry_write (AreaRegistry_t *self, const char *filename) |
Writes the current registry to a xml file. | |
Variables | |
RaveCoreObjectType | AreaRegistry_TYPE |
Type definition to use when creating a rave object. | |
Provides support for reading and writing areas to and from an xml-file.
This object supports RAVE_OBJECT_CLONE.
typedef struct _AreaRegistry_t AreaRegistry_t |
Defines the area registry.
int AreaRegistry_add | ( | AreaRegistry_t * | self, |
Area_t * | area ) |
Adds an area to the registry.
There will be no check if the area already exists so it is up to the user to ensure that no duplicates are added.
[in] | self | - self |
[in] | area | - the area to add |
Area_t * AreaRegistry_get | ( | AreaRegistry_t * | self, |
int | index ) |
Returns the area at specified index.
[in] | self | - self |
[in] | index | - the index |
Area_t * AreaRegistry_getByName | ( | AreaRegistry_t * | self, |
const char * | id ) |
Returns the area with the specified id.
[in] | self | - self |
[in] | id | - the area id |
ProjectionRegistry_t * AreaRegistry_getProjectionRegistry | ( | AreaRegistry_t * | self | ) |
Sets a projection registry to be able to fetch projections.
[in] | self | - self |
AreaRegistry_t * AreaRegistry_load | ( | const char * | filename, |
ProjectionRegistry_t * | pRegistry ) |
Simplified loading function, takes filename and a projection registry.
[in] | filename | - the area file name |
[in] | pRegistry | - the projection registry |
void AreaRegistry_remove | ( | AreaRegistry_t * | self, |
int | index ) |
Removes the area at the specified index.
[in] | self | - self |
[in] | index | - the index of the area to remove |
void AreaRegistry_removeByName | ( | AreaRegistry_t * | self, |
const char * | id ) |
Removes the area with the specified id.
[in] | self | - self |
[in] | id | - the id of the area to remove |
void AreaRegistry_setProjectionRegistry | ( | AreaRegistry_t * | self, |
ProjectionRegistry_t * | registry ) |
Sets a projection registry to be able to fetch projections.
[in] | self | - self |
[in] | registry | - the projection registry |
int AreaRegistry_size | ( | AreaRegistry_t * | self | ) |
Returns the number of registered areas.
[in] | self | - self |
int AreaRegistry_write | ( | AreaRegistry_t * | self, |
const char * | filename ) |
Writes the current registry to a xml file.
[in] | self | - self |
[in] | filename | - the name of the file |
|
extern |
Type definition to use when creating a rave object.