Developer Documentation
RAVL, Recognition And Vision Library
USER HOME PAGE CLASS LIST CONTENTS
Ravl - OS - Configuration Files - ConfigFileBodyC
 

  PUBLIC
ConfigFileBodyC::ConfigFileBodyC(void)
ConfigFileBodyC::ConfigFileBodyC(TextFileC &,const StringC &)
ConfigFileBodyC::Load(StringC,bool)
ConfigFileBodyC::Load(TextFileC &,bool)
ConfigFileBodyC::Name(void) const
ConfigFileBodyC::CheckTag(StringC)
ConfigFileBodyC::Value(const StringC &)
ConfigFileBodyC::Value(const StringC &) const
ConfigFileBodyC::Order(const StringC &)
ConfigFileBodyC::operator [](const StringC &)
ConfigFileBodyC::operator [](const StringC &) const
ConfigFileBodyC::IsDefined(const StringC &)
ConfigFileBodyC::Section(const StringC &)
ConfigFileBodyC::IterVars(void)
ConfigFileBodyC::ListSections(void)
ConfigFileBodyC::Dump(ostream &,int)
ConfigFileBodyC::SetVar(const StringC &,const StringC &,const TextFragmentC &)
ConfigFileBodyC::AddVar(const StringC &,const StringC &,const TextFragmentC &)
ConfigFileBodyC::AddSection(const StringC &,ConfigFileC &,const TextFragmentC &)
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)

   ConfigFileBodyC   
 
Iterate variables. Config file body.
 
include "Ravl/Text/ConfigFile.hh"
Created:14/05/1998 
Source file:Ravl/OS/Text/ConfigFile.hh
User Level:Develop
Library:RavlOS
Example:exConfigFile.cc
In Scope:RavlN

Parent Classes: Variables:
StringC name;
Name of config. Used

HashC tab;

HashC order;
Order elements are found in.

HashC frags;

HashC sec;
Sub sections.

UIntT ordCount;

Methods:
ConfigFileBodyC()
Default constructor.

ConfigFileBodyC(TextFileC & af,const StringC & name)
Sub-section. constructor.

bool Load(StringC fn,bool doCheck = true)
Load a def file.

bool Load(TextFileC & af,bool doCheck = true)
Read from a buffer.

const StringC & Name() const
Get name of configuration.
In sections it will be the name of the current section, otherwise it will be set to the name of the file.

bool CheckTag(StringC tag)
Check if a tag is valid.
Returns false by default.

StringC Value(const StringC & tag)
Get value of tag.

StringC Value(const StringC & tag) const
Get value of tag.

UIntT Order(const StringC & tag)
Get the order no for tagged object.
This gets number of elements read before 'tag' in the config file.

StringC & operator [](const StringC & tag)
Get value of tag.

const StringC & operator [](const StringC & tag) const
Get value of tag.

bool IsDefined(const StringC & tag)
Is tag defined ?

ConfigFileC Section(const StringC & tag)
Look for sub-section.
If none found an invalid handle is returned.

ConfigFileIterVarC IterVars()
Iterate variables.

DListC<StringC> ListSections()
Make a list of sections.

void Dump(ostream & out,int depth = 0)
Dump contents of file to 'out'.

void SetVar(const StringC & str,const StringC & val,const TextFragmentC & frag)
Set a new variable.

void AddVar(const StringC & tag,const StringC & data,const TextFragmentC & nf)
Add text to a variable.

void AddSection(const StringC & tag,ConfigFileC & cf,const TextFragmentC & nf)
Add section.

#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: 14/05/1998, Documentation by CxxDoc: Tue Aug 13 09:59:30 2002