RAVE
|
Provides functionality for creating composites. More...
#include "compositegenerator.h"
#include "cartesian.h"
#include "compositearguments.h"
#include "compositefactorymanager.h"
#include "compositefilter.h"
#include "compositegeneratorfactory.h"
#include "polarvolume.h"
#include "rave_attribute.h"
#include "rave_list.h"
#include "rave_object.h"
#include "raveobject_hashtable.h"
#include "raveobject_list.h"
#include "rave_types.h"
#include "rave_debug.h"
#include "rave_alloc.h"
#include "rave_utilities.h"
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include "rave_simplexml.h"
#include "legacycompositegeneratorfactory.h"
#include "acqvacompositegeneratorfactory.h"
Classes | |
struct | _CompositeGenerator_t |
Represents the cartesian product. More... | |
struct | CompositeFactoryEntry_t |
The object entry that is stored inside the arguments. More... | |
Typedefs | |
typedef struct CompositeFactoryEntry_t | CompositeFactoryEntry_t |
The object entry that is stored inside the arguments. | |
Functions | |
CompositeGenerator_t * | CompositeGenerator_create (CompositeFactoryManager_t *manager, const char *filename) |
Creates a composite generator containing both factory manager and intialized with a factory filter. | |
int | CompositeGenerator_setProperties (CompositeGenerator_t *generator, RaveProperties_t *properties) |
Sets properties to the generator. | |
RaveProperties_t * | CompositeGenerator_getProperties (CompositeGenerator_t *generator) |
int | CompositeGenerator_register (CompositeGenerator_t *generator, const char *id, CompositeGeneratorFactory_t *factory, RaveObjectList_t *filters) |
Registers a generator factory in the the generator. | |
RaveList_t * | CompositeGenerator_getFactoryIDs (CompositeGenerator_t *generator) |
Returns a list of registered factory ids. | |
void | CompositeGenerator_unregister (CompositeGenerator_t *generator, const char *id) |
Removes the factory with specified id. | |
CompositeGeneratorFactory_t * | CompositeGenerator_identify (CompositeGenerator_t *generator, CompositeArguments_t *arguments) |
Will identify the candidate factory from the provided arguments. | |
CompositeGeneratorFactory_t * | CompositeGenerator_createFactory (CompositeGenerator_t *generator, CompositeArguments_t *arguments) |
Will identify the factory, create a new instance of this factory and set the properties before returning it. | |
Cartesian_t * | CompositeGenerator_generate (CompositeGenerator_t *generator, CompositeArguments_t *arguments) |
Generates a composite according to the configured parameters in the composite structure. | |
Variables | |
RaveCoreObjectType | CompositeFactoryEntry_TYPE |
RaveCoreObjectType | CompositeGenerator_TYPE |
Type definition to use when creating a rave object. | |
Provides functionality for creating composites.
typedef struct CompositeFactoryEntry_t CompositeFactoryEntry_t |
The object entry that is stored inside the arguments.
CompositeGenerator_t * CompositeGenerator_create | ( | CompositeFactoryManager_t * | manager, |
const char * | filename ) |
Creates a composite generator containing both factory manager and intialized with a factory filter.
[in] | manager | - the factory manager. May be NULL and then the default factory manager will be created |
[in] | filename | - the filename to load. May be NULL and then no filters will be set |
CompositeGeneratorFactory_t * CompositeGenerator_createFactory | ( | CompositeGenerator_t * | generator, |
CompositeArguments_t * | arguments ) |
Will identify the factory, create a new instance of this factory and set the properties before returning it.
[in] | generator | - self |
[in] | arguments | - the arguments |
Cartesian_t * CompositeGenerator_generate | ( | CompositeGenerator_t * | generator, |
CompositeArguments_t * | arguments ) |
Generates a composite according to the configured parameters in the composite structure.
[in] | generator | - self |
[in] | arguments | - the arguments |
RaveList_t * CompositeGenerator_getFactoryIDs | ( | CompositeGenerator_t * | generator | ) |
Returns a list of registered factory ids.
NOTE: Remember to use RaveList_freeAndDestroy to release all memory in the returned RaveList_t.
[in] | generator | - self |
RaveProperties_t * CompositeGenerator_getProperties | ( | CompositeGenerator_t * | generator | ) |
CompositeGeneratorFactory_t * CompositeGenerator_identify | ( | CompositeGenerator_t * | generator, |
CompositeArguments_t * | arguments ) |
Will identify the candidate factory from the provided arguments.
[in] | generator | - self |
[in] | arguments | - the arguments |
int CompositeGenerator_register | ( | CompositeGenerator_t * | generator, |
const char * | id, | ||
CompositeGeneratorFactory_t * | factory, | ||
RaveObjectList_t * | filters ) |
Registers a generator factory in the the generator.
[in] | generator | - self |
[in] | id | - the id of the factory |
[in] | facgtory | - the actual factory |
[in] | filters | - the filters matching this factory |
int CompositeGenerator_setProperties | ( | CompositeGenerator_t * | generator, |
RaveProperties_t * | properties ) |
Sets properties to the generator.
NOTE! These properties will be passed to the used factory in the generate function using the initialize method.
[in] | generator | - self |
[in] | properties | - the properties |
void CompositeGenerator_unregister | ( | CompositeGenerator_t * | generator, |
const char * | id ) |
Removes the factory with specified id.
If id doesn't exist nothing will be done,
[in] | generator | - self |
[in] | id | - the id of the factory to remove |
RaveCoreObjectType CompositeFactoryEntry_TYPE |
RaveCoreObjectType CompositeGenerator_TYPE |
Type definition to use when creating a rave object.