Main Page | User's Guide | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members

Talos::ConfigStream Class Reference

Streams associated with configuration files. More...

#include <Files.hxx>

Inheritance diagram for Talos::ConfigStream:

Talos::ExtStream List of all members.

Public Member Functions

 ConfigStream ()
 Default constructor.
 ConfigStream (string file_name, string comments="#%", string delimiters=" \t:=|\n,;", string markup_tags="<>$")
 Main constructor.
void SetMarkupTags (string markup_tags)
 Sets the markup tags.
string GetMarkupTags () const
 Returns the markup tags.
virtual string GetElement ()
 Returns the next valid element.
virtual string GetLine ()
 Returns the next valid line.
virtual bool GetLine (string &line)
 Returns the next valid line.

Protected Attributes

string markup_tags_

Detailed Description

Streams associated with configuration files.


Constructor & Destructor Documentation

Talos::ConfigStream::ConfigStream  ) 
 

Default constructor.

Nothing is performed.

Talos::ConfigStream::ConfigStream string  file_name,
string  comments = "#%",
string  delimiters = " \t:=|\n,;",
string  markup_tags = "<>$"
 

Main constructor.

Opens a file.

Parameters:
file_name file to be opened.


Member Function Documentation

string Talos::ConfigStream::GetElement  )  [virtual]
 

Returns the next valid element.

Returns the next valid element, i.e. the next element that is not in a line to be discarded.

Returns:
The next valid element.
Note:
Markups are replaced with their values.

Reimplemented from Talos::ExtStream.

bool Talos::ConfigStream::GetLine string &  line  )  [virtual]
 

Returns the next valid line.

Returns the next valid line, i.e. the next line that is not a line to be discarded and from which comments have been extracted.

Parameters:
line (output) the next valid line.

Reimplemented from Talos::ExtStream.

string Talos::ConfigStream::GetLine  )  [virtual]
 

Returns the next valid line.

Returns the next valid line, i.e. the next line that is not a line to be discarded and from which comments have been extracted.

Returns:
The next valid line.

Reimplemented from Talos::ExtStream.

string Talos::ConfigStream::GetMarkupTags  )  const
 

Returns the markup tags.

Returns:
The markup tags.

void Talos::ConfigStream::SetMarkupTags string  markup_tags  ) 
 

Sets the markup tags.

Parameters:
markup_tags the new markup tags.


The documentation for this class was generated from the following files:
Generated on Sun Oct 3 19:22:04 2004 for Talos by doxygen 1.3.8