template_type.h
Go to the documentation of this file.
1#ifndef ERT_TEMPLATE_TYPE_H
2#define ERT_TEMPLATE_TYPE_H
3
4#include <ert/util/ert_api_config.hpp>
5
6#include <ert/util/subst_list.hpp>
7
8#ifdef ERT_HAVE_REGEXP
9#include <regex.h>
10#endif //ERT_HAVE_REGEXP
11
12#define TEMPLATE_TYPE_ID 7781045
13
16 char * template_file; /* The template file - if internalize_template == false this filename can contain keys which will be replaced at instantiation time. */
17 char * template_buffer; /* The content of the template buffer; only has valid content if internalize_template == true. */
18 bool internalize_template; /* Should the template be loadad and internalized at template_alloc(). */
19 subst_list_type * arg_list; /* Key-value mapping established at alloc time. */
20 char * arg_string; /* A string representation of the arguments - ONLY used for a _get_ function. */
21 #ifdef ERT_HAVE_REGEXP
22 regex_t start_regexp;
23 regex_t end_regexp;
24 #endif
25};
26
27#ifdef ERT_HAVE_REGEXP
28typedef struct loop_struct loop_type;
29void template_init_loop_regexp( struct template_struct* );
30int template_eval_loop( const struct template_struct* , buffer_type * buffer , int global_offset , struct loop_struct * );
31void template_eval_loops( const struct template_struct* template , buffer_type * buffer );
32#endif //ERT_HAVE_REGEXP
33
34#endif //ERT_TEMPLATE_TYPE_H
struct buffer_struct buffer_type
Definition: buffer.hpp:37
char * buffer
Definition: cJSON.h:161
Definition: template_type.h:14
char * template_file
Definition: template_type.h:16
char * template_buffer
Definition: template_type.h:17
char * arg_string
Definition: template_type.h:20
subst_list_type * arg_list
Definition: template_type.h:19
bool internalize_template
Definition: template_type.h:18
UTIL_TYPE_ID_DECLARATION
Definition: template_type.h:15