Rogue Wave Views 5.6 |
Rogue Wave Views |
Rogue Wave Views Documentation Home |
Input/output class. More...
#include <ilviews/manager/io.h>
Public Member Functions | |
IlvManagerInputFile (ILVSTDPREF istream &stream, IlvManager *manager=0) | |
Constructor. More... | |
IlvManager * | getManager () const |
Returns a pointer to the manager reading the objects. More... | |
virtual void | readAll (IlvManager *manager) |
Reads an object description file. More... | |
virtual void | readLayer (int layer) |
Reads the properties of a layer. More... | |
virtual IlvGraphic * | readObject () |
Reads a graphic object. More... | |
virtual void | readView (IlUInt currentNViews, IlvView **currentViews) |
Reads transformer information for a view. More... | |
virtual const char * | typeOf () const |
Returns the name of this class. More... | |
Input/output class.
Library: ilvmgr
Manager objects and their properties can be read from particular streams. To make it easy to restore a set of IlvGraphic
objects, Rogue Wave Views defines the IlvManagerInputFile
class. This class is a subtype of IlvInputFile
. It adds only manager-specific information to the object description blocks. To read a full Rogue Wave Views file in a given manager, call the member function readAll
.
IlvGraphic
, IlvManager
, IlvManagerOutputFile
. IlvManagerInputFile::IlvManagerInputFile | ( | ILVSTDPREF istream & | stream, |
IlvManager * | manager = 0 |
||
) |
Constructor.
The constructor is the same as for the IlvInputFile
class. stream must be a valid input stream from which you are able to read information.
IlvManager* IlvManagerInputFile::getManager | ( | ) | const |
Returns a pointer to the manager reading the objects.
readAll
.
|
virtual |
Reads an object description file.
Reads an Rogue Wave Views object description file and stores the created objects in the manager parameter. It calls the member function readObjects
and reads specific object properties, such as object names.
manager | Pointer to the manager in which the graphic objects must be stored. |
Reimplemented in IlvGadgetManagerInputFile.
|
virtual |
Reads the properties of a layer.
layer | The index of the layer. |
|
virtual |
Reads a graphic object.
Overloads the member function of IlvInputFile
to add specific layer information in the description block of each object. Is called internally by readAll
and should never be called directly by the programmer.
Reimplemented from IlvInputFile.
Reimplemented in IlvGadgetManagerInputFile.
|
virtual |
Reads transformer information for a view.
Reads specific information for one view (name and transformer). If a view with the same name is found in the array of current views, the transformer is set on this view.
currentNViews | The number of views in the array. |
currentViews | The array of current views. |
|
virtual |
Returns the name of this class.
Reimplemented from IlvInputFile.
Reimplemented in IlvGadgetManagerInputFile.
© 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.