Main Page | Data Structures | File List | Data Fields | Globals

etl_template.h File Reference

Functions for manipulating ETL template files. More...

#include <apr.h>
#include <apr_hash.h>
#include <apr_tables.h>
#include <apr_buckets.h>
#include "etl_error.h"
#include "etl_resolver.h"

Go to the source code of this file.

Defines

#define ETL_TEMPLATE_MAJOR_VERSION   0
#define ETL_TEMPLATE_MINOR_VERSION   1
#define ETL_TEMPLATE_PATCH_VERSION   0

Typedefs

typedef etl_template_t etl_template_t
 A parsed template.

Functions

etl_error_tetl_template_parse (etl_template_t **tmpl, apr_bucket_brigade *input, apr_pool_t *pool)
 Parse a bucket brigade input that contains ETL Template Language.
etl_error_tetl_template_parse_file (etl_template_t **tmpl, const char *fname, apr_pool_t *pool)
 Parse a file fname, which contains ETL Template Language, returning it in *tmpl and allocating it in pool.
etl_error_tetl_template_execute (etl_template_t *tmpl, etl_resolver_t *resolver, apr_hash_t *environment, apr_bucket_brigade *out, apr_pool_t *pool)
 Execute tmpl in the context of environment sending output to out and using pool for temporary allocations.


Detailed Description

Functions for manipulating ETL template files.

Definition in file etl_template.h.


Function Documentation

etl_error_t* etl_template_execute etl_template_t tmpl,
etl_resolver_t resolver,
apr_hash_t *  environment,
apr_bucket_brigade *  out,
apr_pool_t *  pool
 

Execute tmpl in the context of environment sending output to out and using pool for temporary allocations.

resolver is used to find included templates.

environment is a hash mapping char *'s to etl_template_variable_t's.

etl_error_t* etl_template_parse etl_template_t **  tmpl,
apr_bucket_brigade *  input,
apr_pool_t *  pool
 

Parse a bucket brigade input that contains ETL Template Language.

Return a template in *tmpl, allocated in pool.


Generated on Sat Jun 3 10:17:28 2006 for ETL by  doxygen 1.4.4