Rogue Wave Views
Manager Package API Reference Guide
Product Documentation:

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

Input/Output class. More...

#include <ilviews/gadmgr/gadmgr.h>

Inheritance diagram for IlvGadgetManagerInputFile:
IlvManagerInputFile IlvInputFile

Public Member Functions

 IlvGadgetManagerInputFile (std::istream &stream, IlvGadgetManager *manager=0)
 Constructor. More...
 
IlvGadgetManagergetGadgetManager () const
 Returns the gadget manager. More...
 
virtual void readAll (IlvManager *mgr)
 Reads an object description file. More...
 
virtual IlvGraphicreadObject ()
 Reads a graphic object. More...
 
virtual const char * typeOf () const
 Returns the name of this class. More...
 
- Public Member Functions inherited from IlvManagerInputFile
 IlvManagerInputFile (std::istream &stream, IlvManager *manager=0)
 Constructor. More...
 
IlvManagergetManager () const
 Returns a pointer to the manager reading the objects. 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...
 

Detailed Description

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.

See also
IlvGadgetManager, IlvGadgetManagerOutputFile.

Constructor & Destructor Documentation

IlvGadgetManagerInputFile::IlvGadgetManagerInputFile ( std::istream &  stream,
IlvGadgetManager manager = 0 
)

Constructor.

Initializes a new IlvGadgetManagerInputFile.

Parameters
streamA valid input stream.
managerThe gadget manager to store the graphic objects read from the stream.

Member Function Documentation

IlvGadgetManager* IlvGadgetManagerInputFile::getGadgetManager ( ) const

Returns the gadget manager.

Returns
The gadget manager currently being read. This pointer is only valid after a call to readAll() (inherited from IlvManagerInputFile) has been done.
virtual void IlvGadgetManagerInputFile::readAll ( IlvManager manager)
virtual

Reads an object description file.

Reads a 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.

Parameters
managerPointer to the manager in which the graphic objects must be stored.

Reimplemented from IlvManagerInputFile.

virtual IlvGraphic* IlvGadgetManagerInputFile::readObject ( )
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.

Returns
A pointer to the graphic object read.

Reimplemented from IlvManagerInputFile.

virtual const char* IlvGadgetManagerInputFile::typeOf ( ) const
virtual

Returns the name of this class.

Returns
A pointer to the string "IlvManagerInput".

Reimplemented from IlvManagerInputFile.


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