|
RAVE
|
Provides support for reading and writing projections to and from an xml-file. More...
Go to the source code of this file.
Typedefs | |
| typedef struct _ProjectionRegistry_t | ProjectionRegistry_t |
| Defines the projection registry. | |
Functions | |
| ProjectionRegistry_t * | ProjectionRegistry_load (const char *filename) |
| Loads a registry from an xml file. | |
| int | ProjectionRegistry_add (ProjectionRegistry_t *self, Projection_t *proj) |
| Adds a projection to the registry. | |
| int | ProjectionRegistry_size (ProjectionRegistry_t *self) |
| Returns the number of projections in this registry. | |
| Projection_t * | ProjectionRegistry_get (ProjectionRegistry_t *self, int index) |
| Returns the projection at specified position. | |
| Projection_t * | ProjectionRegistry_getByName (ProjectionRegistry_t *self, const char *pcsid) |
| Returns the projection with the specified pcs id. | |
| void | ProjectionRegistry_remove (ProjectionRegistry_t *self, int index) |
| Removes the projection at the specified index. | |
| void | ProjectionRegistry_removeByName (ProjectionRegistry_t *self, const char *pcsid) |
| Removes the projection with the specified pcs id. | |
| int | ProjectionRegistry_write (ProjectionRegistry_t *self, const char *filename) |
| Writes the current registry to a xml file. | |
Variables | |
| RaveCoreObjectType | ProjectionRegistry_TYPE |
| Type definition to use when creating a rave object. | |
Provides support for reading and writing projections to and from an xml-file.
This object supports RAVE_OBJECT_CLONE.
| typedef struct _ProjectionRegistry_t ProjectionRegistry_t |
Defines the projection registry.
| int ProjectionRegistry_add | ( | ProjectionRegistry_t * | self, |
| Projection_t * | proj ) |
Adds a projection to the registry.
There will be no check if the projection already exists so it is up to the user to ensure that no duplicates are added.
| [in] | self | - self |
| [in] | proj | - the projection to add |
| Projection_t * ProjectionRegistry_get | ( | ProjectionRegistry_t * | self, |
| int | index ) |
Returns the projection at specified position.
| [in] | self | - self |
| [in] | index | - the position of the projection |
| Projection_t * ProjectionRegistry_getByName | ( | ProjectionRegistry_t * | self, |
| const char * | pcsid ) |
Returns the projection with the specified pcs id.
| [in] | self | - self |
| [in] | pcsid | - the projection id |
| ProjectionRegistry_t * ProjectionRegistry_load | ( | const char * | filename | ) |
Loads a registry from an xml file.
| [in] | filename | - the name of the xml file |
| void ProjectionRegistry_remove | ( | ProjectionRegistry_t * | self, |
| int | index ) |
Removes the projection at the specified index.
| [in] | self | - self |
| [in] | index | - the index of the projection to remove |
| void ProjectionRegistry_removeByName | ( | ProjectionRegistry_t * | self, |
| const char * | pcsid ) |
Removes the projection with the specified pcs id.
| [in] | self | - self |
| [in] | pcsid | - the projection id of the projection to remove |
| int ProjectionRegistry_size | ( | ProjectionRegistry_t * | self | ) |
Returns the number of projections in this registry.
| [in] | self | - self |
| int ProjectionRegistry_write | ( | ProjectionRegistry_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.