RAVE
|
Provides support for reading and writing projections to and from an xml-file. More...
#include "projectionregistry.h"
#include "rave_debug.h"
#include "rave_alloc.h"
#include "raveobject_list.h"
#include "rave_simplexml.h"
#include <string.h>
Classes | |
struct | _ProjectionRegistry_t |
Represents the registry. More... | |
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.
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 |
RaveCoreObjectType ProjectionRegistry_TYPE |
Type definition to use when creating a rave object.