Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_model.h
Go to the documentation of this file.
1 // See the 'COPYING' file in the project root for licensing information.
2 /*
3  * Adaptive Framework model support
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
9 #ifndef __AFW_MODEL_H__
10 #define __AFW_MODEL_H__
11 
12 #include "afw_interface.h"
13 
29 
30 
34 
35 
37 typedef enum afw_model_adapt_e {
38  afw_model_adapt_to_adaptor,
39  afw_model_adapt_from_adaptor,
40  afw_model_adapt_to_requestor,
41  afw_model_adapt_from_requestor
43 
44 
54  const afw_object_t *properties,
55  const afw_pool_t *p, afw_xctx_t *xctx);
56 
57 
58 
69  const afw_utf8_t *adaptor_id,
70  const afw_object_t *model_object,
71  const afw_pool_t *p, afw_xctx_t *xctx);
72 
73 
74 
84  const afw_utf8_t *object_type_id, afw_xctx_t *xctx);
85 
86 
87 AFW_END_DECLARES
88 
91 #endif /* __AFW_MODEL_H__ */
#define AFW_BEGIN_DECLARES
#define AFW_DECLARE(type)
Declare a public afw function.
Interfaceafw_interface header.
AFW_DECLARE_CONST_DATA(afw_utf8_t) afw_s_200
afw_utf8_t for string 200
struct afw_model_internal_s afw_model_t
const afw_adaptor_t * afw_model_adaptor_create_cede_p(const afw_object_t *properties, const afw_pool_t *p, afw_xctx_t *xctx)
Create a model adaptor.
afw_model_t * afw_model_compile(const afw_utf8_t *adaptor_id, const afw_object_t *model_object, const afw_pool_t *p, afw_xctx_t *xctx)
Compile a model and add object types to associative array.
afw_adaptor_factory_model
Definition: afw_model.h:33
const afw_model_object_type_t * afw_model_get_object_type(const afw_model_t *model, const afw_utf8_t *object_type_id, afw_xctx_t *xctx)
Get the model object type for an object type id from model.
Definition: afw_model.c:21
afw_model_adapt_e
Typedef for model adapt type enum.
Definition: afw_model.h:37
enum afw_model_adapt_e afw_model_adapt_t
Typedef for model adapt type enum.
Interface afw_adaptor_factory public struct.
Interface afw_adaptor public struct.
Struct for afw_model_object_type_t property_type_other member.
Interface afw_object public struct.
Interface afw_pool public struct.
NFC normalized UTF-8 string.
Definition: afw_common.h:545
Interface afw_xctx public struct.