cta_model_factory.h

Go to the documentation of this file.
00001 /*
00002 COSTA: Problem solving environment for data assimilation
00003 Copyright (C) 2005  Nils van Velzen
00004 
00005 This library is free software; you can redistribute it and/or
00006 modify it under the terms of the GNU Lesser General Public
00007 License as published by the Free Software Foundation; either
00008 version 2.1 of the License, or (at your option) any later version.
00009 
00010 This library is distributed in the hope that it will be useful,
00011 but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013 Lesser General Public License for more details.
00014 
00015 You should have received a copy of the GNU Lesser General Public
00016 License along with this library; if not, write to the Free Software
00017 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 */
00019 
00020 /**
00021 \file  cta_model.h
00022 \brief Interface description of the COSTA default model component. For user implementation see cta_usr_model.h.
00023 
00024 Functions for creating and working with models. CTA_Model is the default class implementation for models.
00025 */
00026 
00027 #ifndef CTA_MODEL_FACTORY_H
00028 #define CTA_MODEL_FACTORY_H
00029 
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034  
00035  
00036 /** \brief Create a COSTA modell class from XML input file
00037 *          (load from methods from dynamic load library)
00038 *
00039 *  \param fName  I  XML-configuration file
00040 *  \return          Model class handle
00041 */
00042 CTAEXPORT int CTA_ModelFactory_New(const char *fName, CTA_ModelClass* modelClass );
00043 
00044 
00045 /** \brief Create a COSTA modell class from XML
00046 *          (load from methods from dynamic load library). 
00047 *
00048 *  \param cur_node  I  Current XML node 
00049 *  \return             Handle to create or CTA_NULL in case of an error.
00050 */
00051 CTAEXPORT CTA_ModelClass CTAI_XML_CreateModelClass(xmlNode *cur_node);
00052 
00053 /** \brief Define a new class (=implementation) of a COSTA model component
00054  *
00055  * \param name     I  name of the new model class
00056  * \param h_func   I  COSTA function handles for functions that implement class,
00057  *                    missing functions must have value CTA_NULL
00058  * \param hmodcl   O  receives handle of new model class
00059  * \return error status: CTA_OK if successful
00060  */
00061 CTAEXPORT int CTA_Model_DefineClass(const char *name, const CTA_Func h_func[CTA_MODEL_NUMFUNC], CTA_ModelClass *hmodcl);
00062 
00063 const char *CTAI_ModelFac_GetImplements(CTA_ModelClass hmodcl);
00064 
00065 
00066 
00067 #ifdef __cplusplus
00068 }
00069 #endif
00070 
00071 
00072 #endif
00073 

Generated on Mon Apr 6 14:05:58 2009 for COSTA by  doxygen 1.5.2