Input/output class. More...
#include <ilviews/manager/io.h>
Public Member Functions | |
IlvManagerInputFile (std::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 | readCssFile (IlUInt currentNViews, IlvView **currentViews) |
Reads css styling information and applies it to stylists. 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... | |
const char * | typeOf () const override |
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 | ( | std::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.
stream | The input stream to read from. |
manager | The manager. |
IlvManager* IlvManagerInputFile::getManager | ( | ) | const |
Returns a pointer to the manager reading the objects.
readAll()
.
|
virtual |
Reads an object description file.
Reads a 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. Read success status must be checked in the manager's holder. The file is properly loaded if manager->getHolder()->getError() == 0.
manager | Pointer to the manager in which the graphic objects must be stored. |
Reimplemented in IlvGadgetManagerInputFile.
|
virtual |
Reads css styling information and applies it to stylists.
currentNViews | The number of views in the array. |
currentViews | The array of current views. |
|
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. |
|
overridevirtual |
Returns the name of this class.
"IlvManagerInput"
. Reimplemented from IlvInputFile.