|
RAVE
|
Interface for defining your own compositing factory. More...
#include "compositearguments.h"#include "cartesian.h"#include "rave_object.h"#include "rave_types.h"#include "raveobject_list.h"#include "rave_field.h"#include "rave_properties.h"Go to the source code of this file.
Classes | |
| struct | _CompositeGeneratorFactory_t |
| The basic composite algorithm that can be cast into a subclassed processor. More... | |
Macros | |
| #define | COMPOSITE_GENERATOR_FACTORY_HEAD |
| The head part for a CompositeGeneratorFactory subclass. | |
| #define | CompositeGeneratorFactory_getName(self) |
| Macro expansion for calling the name function. | |
| #define | CompositeGeneratorFactory_getDefaultId(self) |
| Macro expansion for calling the default id function. | |
| #define | CompositeGeneratorFactory_canHandle(self, args) |
| Macro expansion if this plugin supports generate or not. | |
| #define | CompositeGeneratorFactory_setProperties(self, properties) |
| Macro expansion for calling the set properties function. | |
| #define | CompositeGeneratorFactory_getProperties(self) |
| Macro expansion for calling the get properties function. | |
| #define | CompositeGeneratorFactory_generate(self, args) |
| Macro expansion for calling the generate function. | |
| #define | CompositeGeneratorFactory_create(self) |
| Macro expansion for initializing the plugin. | |
Interface for defining your own compositing factory.
If CompositeGeneratorFactory_canHandle(...) returns true, then CompositeGeneratorFactory_generate(....) will be called.
NOTE! It is essential that the factory implements the copy constructor since the factory will be set in the manager and the manager keeps a list of instances.
| #define COMPOSITE_GENERATOR_FACTORY_HEAD |
The head part for a CompositeGeneratorFactory subclass.
Should be placed directly under RAVE_OBJECT_HEAD like in CompositeGeneratorFactory_t.
| #define CompositeGeneratorFactory_canHandle | ( | self, | |
| args ) |
Macro expansion if this plugin supports generate or not.
| #define CompositeGeneratorFactory_create | ( | self | ) |
Macro expansion for initializing the plugin.
| [in] | self | - self |
| #define CompositeGeneratorFactory_generate | ( | self, | |
| args ) |
Macro expansion for calling the generate function.
| [in] | self | - self |
| #define CompositeGeneratorFactory_getDefaultId | ( | self | ) |
Macro expansion for calling the default id function.
| [in] | self | - self |
| #define CompositeGeneratorFactory_getName | ( | self | ) |
Macro expansion for calling the name function.
| [in] | self | - self |
| #define CompositeGeneratorFactory_getProperties | ( | self | ) |
Macro expansion for calling the get properties function.
| [in] | self | - self |
| #define CompositeGeneratorFactory_setProperties | ( | self, | |
| properties ) |
Macro expansion for calling the set properties function.
| [in] | self | - self |
| [in] | properties | - properties |
| typedef int(* composite_generator_factory_canHandle_fun) (struct _CompositeGeneratorFactory_t *self, CompositeArguments_t *arguments) |
| typedef struct _CompositeGeneratorFactory_t *(* composite_generator_factory_create_fun) (struct _CompositeGeneratorFactory_t *self) |
The factory creation method for the generator.
Should return a (new) instance of the factory. After a factory has been registered in the composite generator it will create a new factory of this same instance each time a call to generate is called.
| typedef Cartesian_t *(* composite_generator_factory_generate_fun) (struct _CompositeGeneratorFactory_t *self, CompositeArguments_t *arguments) |
| typedef const char *(* composite_generator_factory_getDefaultId_fun) (struct _CompositeGeneratorFactory_t *self) |
| typedef const char *(* composite_generator_factory_getName_fun) (struct _CompositeGeneratorFactory_t *self) |
| typedef RaveProperties_t *(* composite_generator_factory_getProperties_fun) (struct _CompositeGeneratorFactory_t *self) |
| typedef int(* composite_generator_factory_setProperties_fun) (struct _CompositeGeneratorFactory_t *self, RaveProperties_t *properties) |
Sets properties in the factory.
| typedef struct _CompositeGeneratorFactory_t CompositeGeneratorFactory_t |
The basic composite algorithm that can be cast into a subclassed processor.