RAVE
compositefactorymanager.h
Go to the documentation of this file.
1/* --------------------------------------------------------------------
2Copyright (C) 2025 Swedish Meteorological and Hydrological Institute, SMHI,
3
4This file is part of RAVE.
5
6RAVE is free software: you can redistribute it and/or modify
7it under the terms of the GNU Lesser General Public License as published by
8the Free Software Foundation, either version 3 of the License, or
9(at your option) any later version.
10
11RAVE is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU Lesser General Public License for more details.
15
16You should have received a copy of the GNU Lesser General Public License
17along with RAVE. If not, see <http://www.gnu.org/licenses/>.
18------------------------------------------------------------------------*/
25#ifndef COMPOSITEFACTORYMANAGER_H
26#define COMPOSITEFACTORYMANAGER_H
27
29#include "rave_object.h"
30#include "rave_types.h"
32
33
38
43
52
60
67
73void CompositeFactoryManager_remove(CompositeFactoryManager_t* manager, const char* name);
74
82
89
97
98#endif /* COMPOSITE_H */
RaveCoreObjectType CompositeFactoryManager_TYPE
Type definition to use when creating a rave object.
Definition compositefactorymanager.c:197
void CompositeFactoryManager_remove(CompositeFactoryManager_t *manager, const char *name)
Removes the factory with specified id.
Definition compositefactorymanager.c:162
int CompositeFactoryManager_isRegistered(CompositeFactoryManager_t *manager, const char *name)
Returns if the specified factory class is registered or not.
Definition compositefactorymanager.c:187
RaveList_t * CompositeFactoryManager_getRegisteredFactoryNames(CompositeFactoryManager_t *manager)
Returns a list of registered factory names.
Definition compositefactorymanager.c:150
struct _CompositeFactoryManager_t CompositeFactoryManager_t
Defines a Composite generator.
Definition compositefactorymanager.h:37
RaveObjectList_t * CompositeFactoryManager_getRegisteredFactories(CompositeFactoryManager_t *manager)
Returns the registered factories.
Definition compositefactorymanager.c:156
int CompositeFactoryManager_add(CompositeFactoryManager_t *manager, CompositeGeneratorFactory_t *factory)
Adds generator factory in the manager.
Definition compositefactorymanager.c:133
int CompositeFactoryManager_size(CompositeFactoryManager_t *manager)
Returns the number of registered factories.
Definition compositefactorymanager.c:181
CompositeGeneratorFactory_t * CompositeFactoryManager_get(CompositeFactoryManager_t *manager, const char *name)
Returns the factory with specified name.
Definition compositefactorymanager.c:173
Interface for defining your own compositing factory.
struct _CompositeGeneratorFactory_t CompositeGeneratorFactory_t
The basic composite algorithm that can be cast into a subclassed processor.
struct _RaveList_t RaveList_t
Defines a list.
Definition rave_list.h:33
Generic implementation of an object that is used within rave.
struct _raveobjecttype RaveCoreObjectType
The rave object type definition.
Type definitions for RAVE.
Implementation of a rave object hashtable that maps between strings and rave core objects.
struct _RaveObjectList_t RaveObjectList_t
Defines a list.
Definition raveobject_list.h:38
Represents the composite manager product.
Definition compositefactorymanager.c:43