Rogue Wave Views
Manager Package API Reference Guide
Product Documentation:

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

Input/output class. More...

#include <ilviews/gadmgr/gadmgr.h>

Inheritance diagram for IlvGadgetManagerOutputFile:
IlvManagerOutputFile IlvOutputFile

Public Member Functions

 IlvGadgetManagerOutputFile (std::ostream &stream, const IlvGadgetManager *manager=0)
 Initializes a new IlvGadgetManagerOutputFile. More...
 
const IlvGadgetManagergetGadgetManager () const
 Returns the gadget manager. More...
 
virtual const char * typeOf () const
 Returns the name of the class. More...
 
virtual void writeObject (const IlvGraphic *)
 Save a graphic object. More...
 
- Public Member Functions inherited from IlvManagerOutputFile
 IlvManagerOutputFile (std::ostream &stream, const IlvManager *manager=0)
 Constructor. More...
 
const IlvManagergetManager () const
 Returns a pointer to the manager saving the objects. More...
 
IlBoolean isSavingLayers () const
 Status of the ability to save layers. More...
 
IlBoolean isSavingViews () const
 Status of the ability to save views. More...
 
virtual void saveAll (const IlvManager *manager, IlUInt count=0, IlvGraphic *const *objects=0)
 Writes an object description file. More...
 
void saveLayers (IlBoolean s)
 Turns on or off the ability to save layers. More...
 
void saveViews (IlBoolean s)
 Turns on or off the ability to save views. More...
 

Detailed Description

Input/output class.

Library: ilvgadmgr
This class is used in the same way as IlvManagerOutputFile. It allows you to save the contents of an IlvGadgetManager: the set of gadgets, the panel size, the background, the background bitmap, the attachments, and the focus chain.

See also
IlvGadgetManager, IlvGadgetManagerInputFile.

Constructor & Destructor Documentation

§ IlvGadgetManagerOutputFile()

IlvGadgetManagerOutputFile::IlvGadgetManagerOutputFile ( std::ostream &  stream,
const IlvGadgetManager manager = 0 
)

Initializes a new IlvGadgetManagerOutputFile.

Parameters
streamThe output stream to save to.
managerThe gadget manager to save.

Member Function Documentation

§ getGadgetManager()

const IlvGadgetManager* IlvGadgetManagerOutputFile::getGadgetManager ( ) const

Returns the gadget manager.

Returns
The gadget manager currently being saved. This pointer is valid only after a call to saveAll (inherited from IlvManagerOutputFile) has been done.

§ typeOf()

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

Returns the name of the class.

Returns
A pointer to the string "\c IlvManagerOutput".

Reimplemented from IlvManagerOutputFile.

§ writeObject()

virtual void IlvGadgetManagerOutputFile::writeObject ( const IlvGraphic object)
virtual

Save a graphic object.

Writes the exact description of a graphic object in the output stream. It overloads the member function of the IlvOutputFile class to add manager-specific information for this object, such as layer information.
Do not directly call this member function. The saving mechanism is internally performed by saveAll().

Parameters
objectThe graphic object.

Reimplemented from IlvManagerOutputFile.


© 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.