Input/Output class. More...
#include <ilviews/gadmgr/gadmgr.h>
Public Member Functions | |
IlvGadgetManagerInputFile (std::istream &stream, IlvGadgetManager *manager=0) | |
Initializes a new IlvGadgetManagerInputFile . More... | |
IlvGadgetManager * | getGadgetManager () const |
Returns the gadget manager. More... | |
virtual void | readAll (IlvManager *) |
Reads an object description file. More... | |
virtual IlvGraphic * | readObject () |
Reads a graphic object. More... | |
Public Member Functions inherited from IlvManagerInputFile | |
IlvManagerInputFile (std::istream &stream, IlvManager *manager=0) | |
Constructor. More... | |
IlvManager * | getManager () const |
Returns a pointer to the manager reading the objects. 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 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: ilvgadmgr
This class is used in the same way as IlvManagerInputFile
. It allows you to restore the contents of an IlvGadgetManager
: the set of gadgets, the panel size, the background, the attachments, and the focus chain.
IlvGadgetManager
, IlvGadgetManagerOutputFile
. IlvGadgetManagerInputFile::IlvGadgetManagerInputFile | ( | std::istream & | stream, |
IlvGadgetManager * | manager = 0 |
||
) |
Initializes a new IlvGadgetManagerInputFile
.
stream | A valid input stream. |
manager | The gadget manager to store the graphic objects read from the stream. |
IlvGadgetManager* IlvGadgetManagerInputFile::getGadgetManager | ( | ) | const |
Returns the gadget manager.
readAll()
(inherited from IlvManagerInputFile
) has been done.
|
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 from IlvManagerInputFile.
|
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 IlvManagerInputFile.