libdodo: dodo::data::tpl::processor Class Reference

dodo::data::tpl::processor Class Reference

parses template More...

#include <dataTplProcessor.h>

Collaboration diagram for dodo::data::tpl::processor:

List of all members.

Public Member Functions

 processor ()
 constructor
 ~processor ()
 destructor
void processFile (const dodoString &path, io::channel &tpl)
void processString (const dodoString &buffer, io::channel &tpl)
void assign (dodoString varName, const dodoString &varVal)
 set variable
void assign (dodoString varName, const dodoStringArray &varVal)
 set variable
void assign (dodoString varName, const dodoStringMap &varVal)
 set variable
void assign (dodoString varName, const dodoArray< dodoStringMap > &varVal)
 set variable
void clear ()
 clear internal data[assigned vars, etc.

Public Attributes

dodoString basePath
 base path for templates[if empty - full/relative path must be defined in preProcess/include]

Detailed Description

parses template

Definition at line 48 of file dataTplProcessor.h.


Constructor & Destructor Documentation

dodo::data::tpl::processor::processor (  ) 

constructor

dodo::data::tpl::processor::~processor (  ) 

destructor


Member Function Documentation

void dodo::data::tpl::processor::assign ( dodoString  varName,
const dodoArray< dodoStringMap > &  varVal 
)

set variable

Parameters:
varName defines name of variable
varVal defines value of variable(array of hashes)
void dodo::data::tpl::processor::assign ( dodoString  varName,
const dodoStringMap varVal 
)

set variable

Parameters:
varName defines name of variable
varVal defines value of variablee(hash)
void dodo::data::tpl::processor::assign ( dodoString  varName,
const dodoStringArray varVal 
)

set variable

Parameters:
varName defines name of variable
varVal defines value of variable(array)
void dodo::data::tpl::processor::assign ( dodoString  varName,
const dodoString &  varVal 
)

set variable

Parameters:
varName defines name of variable
varVal defines value of variable
void dodo::data::tpl::processor::clear (  ) 

clear internal data[assigned vars, etc.

]

void dodo::data::tpl::processor::processFile ( const dodoString &  path,
io::channel tpl 
)
Parameters:
path defines path of template
tpl defines stream for outputting parsed template
void dodo::data::tpl::processor::processString ( const dodoString &  buffer,
io::channel tpl 
)
Parameters:
buffer defines buffer where template is stored
tpl defines stream for outputting parsed template

Member Data Documentation

base path for templates[if empty - full/relative path must be defined in preProcess/include]

Definition at line 112 of file dataTplProcessor.h.


The documentation for this class was generated from the following file:

Generated on Sun Nov 8 03:44:48 2009 for libdodo by  doxygen 1.6.1