User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - OS - Text Processing - TemplateComplexBodyC
 

  PUBLIC
TemplateComplexBodyC::TemplateComplexBodyC(TextFileC &)
TemplateComplexBodyC::TemplateComplexBodyC(const StringC &)
TemplateComplexBodyC::SetupPresets(const HSetC &)
TemplateComplexBodyC::Scan(StringC &)
TemplateComplexBodyC::Scan(TextFileC &)
TemplateComplexBodyC::Build(StringC &)
TemplateComplexBodyC::BuildSub(TextFileC &)
TemplateComplexBodyC::Lookup(const StringC &,StringC &)
TemplateComplexBodyC::InitCommands(void)
TemplateComplexBodyC::Interpret(const StringC &)
TemplateComplexBodyC::DoSet(StringC &)
TemplateComplexBodyC::DoFor(StringC &)
TemplateComplexBodyC::DoIf(StringC &)
TemplateComplexBodyC::DoIfSet(StringC &)
TemplateComplexBodyC::DoElse(StringC &)
TemplateComplexBodyC::DoInclude(StringC &)
TemplateComplexBodyC::DoSub(StringC &)
TemplateComplexBodyC::DoSubCopy(StringC &)
TemplateComplexBodyC::DoSubst(StringC &)
TemplateComplexBodyC::DoDefine(StringC &)
TemplateComplexBodyC::DoMacro(StringC &,StringC &)
TemplateComplexBodyC::DoUpperCase(StringC &)
TemplateComplexBodyC::DoLowerCase(StringC &)
TemplateComplexBodyC::DoSilent(StringC &)
TemplateComplexBodyC::DoErrPrint(StringC &)
TemplateComplexBodyC::DoBefore(StringC &)
TemplateComplexBodyC::DoAfter(StringC &)
TemplateComplexBodyC::HtmlSafe(StringC &)
TemplateComplexBodyC::MakeHtml(const StringC &)
TemplateComplexBodyC::MakeHtml(const SubStringC &)
TemplateComplexBodyC::SetVar(const StringC &,const StringC &)
TemplateComplexBodyC::GetVar(const StringC &)
TemplateComplexBodyC::SetupCommand(const StringC &,ObjT &,bool (*func)(StringC & arg) )
TemplateComplexBodyC::Output(void)
TemplateComplexBodyC::CheckCondition(const SubStringC &)
RCBodyVC::Save(ostream &) const
RCBodyVC::Save(BinOStreamC &) const
RCBodyVC::Copy(void) const
RCBodyVC::DeepCopy(UIntT) const
RCBodyC::References(void) const
RCBodyC::Copy(void) const
RCBodyC::DeepCopy(UIntT) const
RCBodyC::IncRefCounter(void)
RCBodyC::DecRefCounter(void)

   TemplateComplexBodyC   
 
Complex template body.
 
include "Ravl/Text/TemplateComplex.hh"
Created:23/02/2000 
User Level:Develop
Library:RavlOS
In Scope:RavlN

Parent Classes: Derived Classes: Variables:
Methods:
TemplateComplexBodyC(TextFileC & templFile)
Constructor.

TemplateComplexBodyC(const StringC & templFile)
Constructor.

void SetupPresets(const HSetC<StringC> & nameset)
Setup preset variables.

bool Scan(StringC & templ)
Scan template file for preset variables.
The key, and values are added to the vars list.

bool Scan(TextFileC & templ)
Scan template file for preset variables.
The key, and values are added to the vars list.

bool Build(StringC & fn)
Start build of document.

bool BuildSub(TextFileC & templ)
Start build of document.

bool Lookup(const StringC & varname,StringC & buff)
Lookup variable.
if found put value into 'buff' and return true. otherwise return false.

void InitCommands()
Setup default commands.

StringC Interpret(const StringC & str)
Interpret string 'str' and return the result.

bool DoSet(StringC & txt)
Set variable.

bool DoFor(StringC & txt)
Look over a list.

bool DoIf(StringC & txt)
If condition.

bool DoIfSet(StringC & txt)
If a variable is set.

bool DoElse(StringC & txt)
If a variable is set.

bool DoInclude(StringC & txt)
Include another template file.

bool DoSub(StringC & txt)
Make a sub context.

bool DoSubCopy(StringC & txt)
Make a sub context, copy old context.

bool DoSubst(StringC & txt)
Substution

bool DoDefine(StringC & txt)
Make a sub context, copy old context.

bool DoMacro(StringC & txt,StringC & macro)
Make a sub context, copy old context.

bool DoUpperCase(StringC & txt)
Make all text upper case.

bool DoLowerCase(StringC & txt)
Make all text lower case.

bool DoSilent(StringC & txt)
Make all text lower case.
Redirect output to /dev/null

bool DoErrPrint(StringC & txt)
Print a message to stderr.
Put the text on the stderr.

bool DoBefore(StringC & txt)
Return text before a string.

bool DoAfter(StringC & txt)
Return text after a string.

bool HtmlSafe(StringC & txt)
Make sure text will be taken literally in html.

StringC MakeHtml(const StringC & name)
Make string suitable for use in plain html.

StringC MakeHtml(const SubStringC & name)
Make string suitable for use in plain html.

void SetVar(const StringC & var,const StringC & val)
Set value of a variable.

StringC GetVar(const StringC & var)
Get value of a variable.

void SetupCommand(const StringC & cmd,ObjT & obj,bool (*func)(StringC & arg) )
Setup new command.
NB. Obj is used as a reference, it is assumed to be a derived instance of this class.

OStreamC & Output()
Access current output stream.

bool CheckCondition(const SubStringC & cond)
Check if a condition is met.

#include "Ravl/RCHandleV.hh"
bool Save(ostream & out) const
Save to stream 'out'.

bool Save(BinOStreamC & out) const
Save to binary stream 'out'.

RCBodyVC & Copy() const
Make copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

RCBodyC & DeepCopy(UIntT levels = ((UIntT))) const
Make a deep copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

#include "Ravl/RefCounter.hh"
UIntT References() const
Access count of handles open to this object.

RCBodyC & Copy() const
Make copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

RCBodyC & DeepCopy(UIntT levels = ((UIntT))) const
Make a deep copy of body.
This should be provided in derived classes. this funtion will issue an assertion failure if called.

void IncRefCounter()
Increment reference counter.

bool DecRefCounter()
Decrement reference counter.


Maintainer:Charles Galambos, Created: 23/02/2000, Documentation by CxxDoc: Tue Aug 13 09:59:02 2002