rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Prototypes Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvGroupOutputFile Class Reference

Main class for writing groups to a stream. More...

#include <ilviews/protos/groupio.h>

Inheritance diagram for IlvGroupOutputFile:
IlvGroupFile

List of all members.

Public Member Functions

void addIndent (int d)
 Adds d to the current indentation level of the output context.
ostream & getStream ()
 Returns the output stream associated with this context.
void indent ()
 Outputs blank characters corresponding to the current indentation level of the output context.
void writeValue (const char *string)
 Lets you safely write strings that may contain special characters.
void writeValue (const IlSymbol *s)
 See below.

Friends

class IlvGroup
class IlvGroupNode
class IlvSubGroupNode

Detailed Description

Main class for writing groups to a stream.

Library: ilvproto

Group files should not be created directly by the application. They are generated internally by methods of other prototypes library classes. You will never need to use this class directly, unless you write new IlvGroupNode subclasses.

See also:
IlvGroupInputFile, IlvGroupNode.

Member Function Documentation

void IlvGroupOutputFile::addIndent ( int  d  ) 

Adds d to the current indentation level of the output context.

Parameters:
d Current indent level.
ostream& IlvGroupOutputFile::getStream (  ) 

Returns the output stream associated with this context.

Returns:
The output stream associated with this context.
void IlvGroupOutputFile::writeValue ( const char *  string  ) 

Lets you safely write strings that may contain special characters.

These member functions allow you to safely write a character string to an IlvGroupFile. The string is placed between quotation marks if it contains special characters. The accessor parameters should be saved using this method rather than the ostream::operator <<(const char*) operator. This lets you read them back in.

Parameters:
s Symbol whose name is written.
string String to write.

© Copyright 2012, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.