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

etl_variables.h File Reference

Functions and data structures for working with ETL variables. More...

#include <apr.h>
#include <apr_hash.h>
#include <apr_tables.h>

Go to the source code of this file.

Data Structures

struct  etl_variable_t
 A variable that can be accessed inside a template. More...

Enumerations

enum  etl_variable_type_t {
  ETL_VARIABLE_STRING,
  ETL_VARIABLE_INTEGER,
  ETL_VARIABLE_ARRAY,
  ETL_VARIABLE_HASH
}
 The types of variables that can appear in a template. More...

Functions

etl_variable_tetl_variable_make_int (apr_int64_t i, apr_pool_t *pool)
 Helper function to turn an apr_int64_t into a template variable, the variable is allocated in pool.
etl_variable_tetl_variable_make_str (const char *str, apr_pool_t *pool)
 Helper function to turn a string str into a template variable, the variable is allocated in pool.
etl_variable_tetl_variable_make_array (int nitems, apr_pool_t *pool)
 Helper function to create a template variable wrapped around an empty array.
etl_variable_tetl_variable_make_hash (apr_pool_t *pool)
 Helper function to create a template variable wrapped around an empty hash.


Detailed Description

Functions and data structures for working with ETL variables.

Definition in file etl_variables.h.


Enumeration Type Documentation

enum etl_variable_type_t
 

The types of variables that can appear in a template.

Enumerator:
ETL_VARIABLE_STRING  char *
ETL_VARIABLE_INTEGER  apr_int64_t
ETL_VARIABLE_ARRAY  apr_array_header_t of etl_variable_t's
ETL_VARIABLE_HASH  apr_hash_t of char * to variable

Definition at line 33 of file etl_variables.h.


Function Documentation

etl_variable_t* etl_variable_make_array int  nitems,
apr_pool_t *  pool
 

Helper function to create a template variable wrapped around an empty array.

The array is initially sized to hold nitems and is allocated in pool.

etl_variable_t* etl_variable_make_hash apr_pool_t *  pool  ) 
 

Helper function to create a template variable wrapped around an empty hash.

The array is allocated in pool.


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