Rogue Wave Views
Prototypes Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions | Friends
IlvGroupOutputFile Class Reference

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

#include <ilviews/protos/groupio.h>

Inheritance diagram for IlvGroupOutputFile:
IlvGroupFile

Public Member Functions

void addIndent (int d)
 Adds d to the current indentation level of the output context. More...
 
ostream & getStream ()
 Returns the output stream associated with this context. More...
 
void indent ()
 Outputs blank characters corresponding to the current indentation level of the output context.
 
void writeValue (const IlSymbol *s)
 See below. More...
 
void writeValue (const char *string)
 Lets you safely write strings that may contain special characters. More...
 
- Public Member Functions inherited from IlvGroupFile
IlFloat getVersion ()
 Returns the file version. More...
 
void setVersion (IlFloat v)
 Lets you set the version of an output file in order to write files compatible with previous versions of the prototypes library. More...
 

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

§ addIndent()

void IlvGroupOutputFile::addIndent ( int  d)

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

Parameters
dCurrent indent level.

§ getStream()

ostream& IlvGroupOutputFile::getStream ( )

Returns the output stream associated with this context.

Returns
The output stream associated with this context.

§ writeValue() [1/2]

void IlvGroupOutputFile::writeValue ( const IlSymbol s)

See below.

Parameters
sSymbol to write.

§ writeValue() [2/2]

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
stringString to write.

© Copyright 2017, 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.